{"about":{"non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","site":"https://codewithpapers.app","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page","syntology":{"site":"https://syntology.ai","developers":"https://syntology.ai/developers","mcp":{"server":"https://syntology.ai/mcp","transport":"streamable-http","server_card":"https://syntology.ai/.well-known/mcp/server-card.json","auth":{"type":"trial token, no account","trial_token":"https://syntology.ai/api/oauth/trial/token","method":"POST","docs":"https://syntology.ai/developers"}},"have":"https://syntology.ai/api/graph/have?x=<method, arXiv id or title> (free, answers coverage only)","paper_base":"https://syntology.ai/paper/","atlas_base":"https://app.syntology.ai/?focus="},"machine_readable":[{"url":"https://codewithpapers.app/llms.txt","what":"the machine catalog: every machine-readable file, counted"},{"url":"https://codewithpapers.app/index/manifest.json","what":"paper-to-code index by arXiv id, with Syntology's counts"},{"url":"https://codewithpapers.app/search/manifest.json","what":"site search index (titles, authors) and its files"},{"url":"https://codewithpapers.app/download","what":"bulk files: Syntology's layer, described there"},{"url":"https://codewithpapers.app/build_manifest.json","what":"the build record: inputs, counts, exclusions, probes"}]},"url":"/method/spatial-reduction-attention","slug":"spatial-reduction-attention","name":"Spatial-Reduction Attention","full_name":"Spatial-Reduction Attention","full_name_withheld":false,"description_markdown":"**Spatial-Reduction Attention**, or **SRA**, is a [multi-head attention](https://paperswithcode.com/method/multi-head-attention) module used in the [Pyramid Vision Transformer](https://paperswithcode.com/method/pvt) architecture which reduces the spatial scale of the key $K$ and value $V$ before the attention operation. This reduces the computational/memory overhead. Details of the SRA in the stage $i$ can be formulated as follows:\r\n\r\n$$\r\n\\text{SRA}(Q, K, V)=\\text { Concat }\\left(\\operatorname{head}\\_{0}, \\ldots \\text { head }\\_{N\\_{i}}\\right) W^{O} $$\r\n\r\n$$\\text{ head}\\_{j}=\\text { Attention }\\left(Q W\\_{j}^{Q}, \\operatorname{SR}(K) W\\_{j}^{K}, \\operatorname{SR}(V) W\\_{j}^{V}\\right)\r\n$$\r\n\r\nwhere Concat $(\\cdot)$ is the concatenation operation. $W\\_{j}^{Q} \\in \\mathbb{R}^{C\\_{i} \\times d\\_{\\text {head }}}$, $W\\_{j}^{K} \\in \\mathbb{R}^{C\\_{i} \\times d\\_{\\text {head }}}$, $W\\_{j}^{V} \\in \\mathbb{R}^{C\\_{i} \\times d\\_{\\text {head }}}$, and $W^{O} \\in \\mathbb{R}^{C\\_{i} \\times C\\_{i}}$ are linear projection parameters. $N\\_{i}$ is the head number of the attention layer in Stage $i$. Therefore, the dimension of each head (i.e. $\\left.d\\_{\\text {head }}\\right)$ is equal to $\\frac{C\\_{i}}{N\\_{i}} . \\text{SR}(\\cdot)$ is the operation for reducing the spatial dimension of the input sequence ($K$ or $V$ ), which is written as:\r\n\r\n$$\r\n\\text{SR}(\\mathbf{x})=\\text{Norm}\\left(\\operatorname{Reshape}\\left(\\mathbf{x}, R\\_{i}\\right) W^{S}\\right)\r\n$$\r\n\r\nHere, $\\mathbf{x} \\in \\mathbb{R}^{\\left(H\\_{i} W\\_{i}\\right) \\times C\\_{i}}$ represents a input sequence, and $R\\_{i}$ denotes the reduction ratio of the attention layers in Stage $i .$ Reshape $\\left(\\mathbf{x}, R\\_{i}\\right)$ is an operation of reshaping the input sequence $\\mathbf{x}$ to a sequence of size $\\frac{H\\_{i} W\\_{i}}{R\\_{i}^{2}} \\times\\left(R\\_{i}^{2} C\\_{i}\\right)$. $W\\_{S} \\in \\mathbb{R}^{\\left(R\\_{i}^{2} C\\_{i}\\right) \\times C\\_{i}}$ is a linear projection that reduces the dimension of the input sequence to $C\\_{i}$. $\\text{Norm}(\\cdot)$ refers to layer normalization.","description_state":"present","introduced_year":null,"introduced_by":{"title":"Pyramid Vision Transformer: A Versatile Backbone for Dense Prediction without Convolutions","paper":"/paper/pyramid-vision-transformer-a-versatile","first_author":"Wenhai Wang","n_authors":9,"url_abs":null,"archive_paper_url":"https://paperswithcode.com/paper/pyramid-vision-transformer-a-versatile"},"source":{"url":"https://arxiv.org/abs/2102.12122v2","title":"Pyramid Vision Transformer: A Versatile Backbone for Dense Prediction without Convolutions","url_on_a_paper_host":true},"code_snippet_url":null,"code_snippet_url_on_a_code_host":false,"categories":[{"area":"General","area_id":"general","collection":"Attention Modules","url":"/methods/category/attention-modules","pwc_aliases":[]}],"n_papers_tagged":29,"archive_num_papers":29,"papers_newest_first":[{"paper":null,"slug":"2505-11208","title":"GLOVA: Global and Local Variation-Aware Analog Circuit Design with Risk-Sensitive Reinforcement Learning","date":"2025-05-16","arxiv_id":"2505.11208","n_code_links":0,"syntology":null},{"paper":null,"slug":"crystal-oscillators-in-osnma-enabled","title":"Crystal Oscillators in OSNMA-Enabled Receivers: An Implementation View for Automotive Applications","date":"2025-01-25","arxiv_id":"2501.15123","n_code_links":0,"syntology":null},{"paper":null,"slug":"multipath-mitigation-technology-integrated","title":"Multipath Mitigation Technology-integrated GNSS Direct Position Estimation Plug-in Module","date":"2024-11-20","arxiv_id":"2411.13339","n_code_links":0,"syntology":null},{"paper":null,"slug":"hrpvt-high-resolution-pyramid-vision","title":"HRPVT: High-Resolution Pyramid Vision Transformer for medium and small-scale human pose estimation","date":"2024-10-29","arxiv_id":"2410.22079","n_code_links":0,"syntology":null},{"paper":null,"slug":"low-rank-continual-pyramid-vision-transformer","title":"Low-Rank Continual Pyramid Vision Transformer: Incrementally Segment Whole-Body Organs in CT with Light-Weighted Adaptation","date":"2024-10-07","arxiv_id":"2410.04689","n_code_links":0,"syntology":null},{"paper":null,"slug":"recasting-generic-pretrained-vision","title":"Recasting Generic Pretrained Vision Transformers As Object-Centric Scene Encoders For Manipulation Policies","date":"2024-05-24","arxiv_id":"2405.15916","n_code_links":0,"syntology":null},{"paper":"/paper/rethinking-attention-gated-with-hybrid-dual","slug":"rethinking-attention-gated-with-hybrid-dual","title":"Rethinking Attention Gated with Hybrid Dual Pyramid Transformer-CNN for Generalized Segmentation in Medical Imaging","date":"2024-04-28","arxiv_id":"2404.18199","n_code_links":1,"syntology":null},{"paper":"/paper/multi-layer-dense-attention-decoder-for-polyp","slug":"multi-layer-dense-attention-decoder-for-polyp","title":"Multi-Layer Dense Attention Decoder for Polyp Segmentation","date":"2024-03-27","arxiv_id":"2403.18180","n_code_links":1,"syntology":null},{"paper":"/paper/spectral-convolutional-transformer","slug":"spectral-convolutional-transformer","title":"Heracles: A Hybrid SSM-Transformer Model for High-Resolution Image and Time-Series Analysis","date":"2024-03-26","arxiv_id":"2403.18063","n_code_links":2,"syntology":{"ran":4,"of":4,"n_ran_checked":4,"n_instrument":0,"unverified":0,"pointer_only":4,"phrase":"4 ran (of which 0 constructed an object rather than computing a result; 4 with no instrument failure: 1 honoured, 0 violated, 3 with no contract checked; 0 where Syntology's instrument failed) · 0 unverified","official":{"repos":["badripatro/heracles","badripatro/sct"],"state":"official (archive's flag): 4 ran","n_ran":4,"n_constructed":0,"n_ran_no_instrument_failure":4,"n_unverified":0,"ran_from_kinds":["official"]}}},{"paper":null,"slug":"roi-aware-multiscale-cross-attention-vision","title":"ROI-Aware Multiscale Cross-Attention Vision Transformer for Pest Image Identification","date":"2023-12-28","arxiv_id":"2312.16914","n_code_links":0,"syntology":null},{"paper":null,"slug":"distilling-knowledge-from-cnn-transformer","title":"Distilling Knowledge from CNN-Transformer Models for Enhanced Human Action Recognition","date":"2023-11-02","arxiv_id":"2311.01283","n_code_links":0,"syntology":null},{"paper":null,"slug":"seunet-trans-a-simple-yet-effective-unet","title":"SeUNet-Trans: A Simple yet Effective UNet-Transformer Model for Medical Image Segmentation","date":"2023-10-16","arxiv_id":"2310.09998","n_code_links":0,"syntology":null},{"paper":"/paper/dat-spatially-dynamic-vision-transformer-with","slug":"dat-spatially-dynamic-vision-transformer-with","title":"DAT++: Spatially Dynamic Vision Transformer with Deformable Attention","date":"2023-09-04","arxiv_id":"2309.01430","n_code_links":1,"syntology":{"ran":8,"of":10,"n_ran_checked":6,"n_instrument":2,"unverified":2,"pointer_only":6,"phrase":"8 ran (of which 0 constructed an object rather than computing a result; 6 with no instrument failure: 1 honoured, 1 violated, 4 with no contract checked; 2 where Syntology's instrument failed) · 2 unverified","official":{"repos":["leaplabthu/dat"],"state":"official (archive's flag): 8 ran","n_ran":8,"n_constructed":0,"n_ran_no_instrument_failure":6,"n_unverified":2,"ran_from_kinds":["official"]}}},{"paper":"/paper/a-denoised-mean-teacher-for-domain-adaptive","slug":"a-denoised-mean-teacher-for-domain-adaptive","title":"A denoised Mean Teacher for domain adaptive point cloud registration","date":"2023-06-26","arxiv_id":"2306.14749","n_code_links":1,"syntology":null},{"paper":null,"slug":"a-3-step-low-latency-low-power-multichannel","title":"A 3-step Low-latency Low-Power Multichannel Time-to-Digital Converter based on Time Residual Amplifier","date":"2023-06-01","arxiv_id":"2306.00433","n_code_links":0,"syntology":null},{"paper":null,"slug":"neural-correlates-of-cognitive-ability-and","title":"Neural correlates of cognitive ability and visuo-motor speed: validation of IDoCT on UK Biobank Data","date":"2023-05-30","arxiv_id":"2305.18804","n_code_links":0,"syntology":null},{"paper":"/paper/pvt-ssd-single-stage-3d-object-detector-with","slug":"pvt-ssd-single-stage-3d-object-detector-with","title":"PVT-SSD: Single-Stage 3D Object Detector with Point-Voxel Transformer","date":"2023-05-11","arxiv_id":"2305.06621","n_code_links":1,"syntology":null},{"paper":null,"slug":"sector-patch-embedding-an-embedding-module","title":"Sector Patch Embedding: An Embedding Module Conforming to The Distortion Pattern of Fisheye Image","date":"2023-03-26","arxiv_id":"2303.14645","n_code_links":0,"syntology":null},{"paper":"/paper/chasing-clouds-differentiable-volumetric","slug":"chasing-clouds-differentiable-volumetric","title":"Chasing Clouds: Differentiable Volumetric Rasterisation of Point Clouds as a Highly Efficient and Accurate Loss for Large-Scale Deformable 3D Registration","date":"2023-01-01","arxiv_id":null,"n_code_links":1,"syntology":null},{"paper":null,"slug":"exploring-the-relationship-between-4","title":"Exploring the Relationship Between Architectural Design and Adversarially Robust Generalization","date":"2023-01-01","arxiv_id":null,"n_code_links":0,"syntology":null},{"paper":"/paper/efficienttrain-exploring-generalized","slug":"efficienttrain-exploring-generalized","title":"EfficientTrain: Exploring Generalized Curriculum Learning for Training Visual Backbones","date":"2022-11-17","arxiv_id":"2211.09703","n_code_links":1,"syntology":null},{"paper":null,"slug":"exploring-the-relationship-between-2","title":"Exploring the Relationship between Architecture and Adversarially Robust Generalization","date":"2022-09-28","arxiv_id":"2209.14105","n_code_links":0,"syntology":null},{"paper":"/paper/uniform-masking-enabling-mae-pre-training-for","slug":"uniform-masking-enabling-mae-pre-training-for","title":"Uniform Masking: Enabling MAE Pre-training for Pyramid-based Vision Transformers with Locality","date":"2022-05-20","arxiv_id":"2205.10063","n_code_links":1,"syntology":null},{"paper":null,"slug":"uncertainty-cognizant-model-predictive","title":"Uncertainty-Cognizant Model Predictive Control for Energy Management of Residential Buildings with PVT and Thermal Energy Storage","date":"2022-01-21","arxiv_id":"2201.08909","n_code_links":0,"syntology":null},{"paper":"/paper/vision-transformer-with-deformable-attention","slug":"vision-transformer-with-deformable-attention","title":"Vision Transformer with Deformable Attention","date":"2022-01-03","arxiv_id":"2201.00520","n_code_links":2,"syntology":{"ran":8,"of":10,"n_ran_checked":4,"n_instrument":4,"unverified":2,"pointer_only":0,"phrase":"8 ran (of which 4 constructed an object rather than computing a result; 4 with no instrument failure: 0 honoured, 0 violated, 4 with no contract checked; 4 where Syntology's instrument failed) · 2 unverified","official":{"repos":["leaplabthu/dat"],"state":"official (archive's flag): 2 ran","n_ran":2,"n_constructed":2,"n_ran_no_instrument_failure":2,"n_unverified":0,"ran_from_kinds":["listed","official"]}}},{"paper":"/paper/dynamic-token-normalization-improves-vision-1","slug":"dynamic-token-normalization-improves-vision-1","title":"Dynamic Token Normalization Improves Vision Transformers","date":"2021-12-05","arxiv_id":"2112.02624","n_code_links":1,"syntology":{"ran":1,"of":1,"n_ran_checked":1,"n_instrument":0,"unverified":0,"pointer_only":1,"phrase":"1 ran (of which 1 constructed an object rather than computing a result; 1 with no instrument failure: 0 honoured, 0 violated, 1 with no contract checked; 0 where Syntology's instrument failed) · 0 unverified; the one sample that ran constructed an object rather than computing a result","official":{"repos":["wqshao126/dtn"],"state":"official (archive's flag): 1 ran","n_ran":1,"n_constructed":1,"n_ran_no_instrument_failure":1,"n_unverified":0,"ran_from_kinds":["official"]}}},{"paper":null,"slug":"partial-variable-training-for-efficient-on","title":"Partial Variable Training for Efficient On-Device Federated Learning","date":"2021-10-11","arxiv_id":"2110.05607","n_code_links":0,"syntology":null},{"paper":"/paper/point-voxel-transformer-an-efficient-approach","slug":"point-voxel-transformer-an-efficient-approach","title":"PVT: Point-Voxel Transformer for Point Cloud Learning","date":"2021-08-13","arxiv_id":"2108.06076","n_code_links":2,"syntology":null},{"paper":"/paper/pyramid-vision-transformer-a-versatile","slug":"pyramid-vision-transformer-a-versatile","title":"Pyramid Vision Transformer: A Versatile Backbone for Dense Prediction without Convolutions","date":"2021-02-24","arxiv_id":"2102.12122","n_code_links":11,"syntology":{"ran":22,"of":30,"n_ran_checked":18,"n_instrument":4,"unverified":8,"pointer_only":1,"phrase":"22 ran (of which 16 constructed an object rather than computing a result; 18 with no instrument failure: 2 honoured, 0 violated, 16 with no contract checked; 4 where Syntology's instrument failed) · 8 unverified","official":{"repos":["whai362/PVT"],"state":"official (archive's flag): 4 ran","n_ran":4,"n_constructed":4,"n_ran_no_instrument_failure":4,"n_unverified":0,"ran_from_kinds":["listed","official"]}}}],"papers_shown":29,"papers_order":"date (newest first), then slug","paper_counts":{"archive_papers_tagged":29,"with_a_code_link":13,"where_syntology_ran_a_sample":5,"not_listed_spam_title":0,"listed":29,"listed_where_code_ran":5,"where_syntology_ran_a_sample_split":{"with_a_run_with_no_instrument_failure":5,"every_run_a_failure_of_syntologys_instrument":0,"listed_with_a_run_with_no_instrument_failure":5,"listed_every_run_a_failure_of_syntologys_instrument":0,"filter":{"states":["a run with no instrument failure","any run, instrument failures included"],"default":"a run with no instrument failure","note":"on the 'only where code ran' pages the default hides, in the browser, the rows where every run was a failure of Syntology's instrument; the second state shows them again. Rows are hidden, never re-ordered; these twins list every row"}},"definition":"distinct papers the archive tags; 'where Syntology ran a sample' counts papers with at least one harvested sample that ran, which is not a correctness claim"},"papers_where_code_ran":5,"papers_where_code_ran_first_page":"/method/spatial-reduction-attention/papers/ran/1","papers_where_code_ran_caption":"We ran code from the paper's repository; we did not isolate this method inside it.","pages":[{"order":"ran","page":1,"of":1,"url":"/method/spatial-reduction-attention/papers/ran/1","json":"/method/spatial-reduction-attention/papers/ran/1.json","rows":5}],"tasks":[{"task":"/task/semantic-segmentation","name":"Semantic Segmentation","papers":7},{"task":"/task/object-detection","name":"Object Detection","papers":6},{"task":"/task/segmentation","name":"Segmentation","papers":4},{"task":"/task/image-classification","name":"Image Classification","papers":3},{"task":"/task/instance-segmentation","name":"Instance Segmentation","papers":3},{"task":"/task/inductive-bias","name":"Inductive Bias","papers":2},{"task":"/task/medical-image-segmentation","name":"Medical Image Segmentation","papers":2},{"task":"/task/quantization","name":"Quantization","papers":2},{"task":"/task/self-supervised-learning","name":"Self-Supervised Learning","papers":2},{"task":"/task/image-classification","name":"image-classification","papers":2},{"task":"/task/object-detection-1","name":"object-detection","papers":2},{"task":"/task/3d-object-detection","name":"3D Object Detection","papers":1},{"task":"/task/3d-part-segmentation","name":"3D Part Segmentation","papers":1},{"task":"/task/3d-point-cloud-classification","name":"3D Point Cloud Classification","papers":1},{"task":"/task/action-recognition-in-videos","name":"Action Recognition","papers":1},{"task":"/task/autonomous-driving","name":"Autonomous Driving","papers":1},{"task":"/task/computational-efficiency","name":"Computational Efficiency","papers":1},{"task":"/task/continual-semantic-segmentation","name":"Continual Semantic Segmentation","papers":1},{"task":"/task/data-augmentation","name":"Data Augmentation","papers":1},{"task":"/task/decoder","name":"Decoder","papers":1}],"tasks_shown":20,"n_tasks":43,"usage_by_year":[{"year":"2021","papers":4},{"year":"2022","papers":5},{"year":"2023","papers":11},{"year":"2024","papers":7},{"year":"2025","papers":2}],"row_source":"methods_table","archive":{"source":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","archive_url":"https://paperswithcode.com/method/spatial-reduction-attention"},"syntology_read_at":"2026-10-05T00:36:11+00:00","syntology":{"source":"Syntology's have check for this name (the free coverage lookup), read from Syntology's graph","have_url":"https://syntology.ai/api/graph/have?x=Spatial-Reduction%20Attention","read_at":"2026-10-05T01:02:21+00:00","query":"Spatial-Reduction Attention","kind":"method","have":"unknown_name","tier":null,"verified_implementation":null,"level":null,"level_meaning":"the served verification level, per answer; never summed across methods","resolved_to":null,"resolution":null,"resolved_name_differs":false,"absence_asserted":false,"absence_unchecked":null,"no_code_is_about_this_method":false,"subject":null,"archive_paper_arxiv_id":"2102.12122","repositories":null,"retrieve_with":null,"name_competition":{"verdict":"none","may_be_wrong_sense":false,"bearers_found":0,"served":null,"leading_other_bearer":null,"n_other_bearers_listed":0,"note":"Nothing in this corpus is named 'Spatial-Reduction Attention' -- no method node, no paper announcing it in its title, no expanded form declaring it as an acronym."},"name_competition_text":null,"near_matches":["geospatial attention","Future Spatial Attention (FSA)","Spatial-Aware Reduction Framework","Spatial-Aware Reduction Framework","Low-Rank Spatial Attention (LRSA)","Contextual Spatial Attention (CSA)","IB-inspired spatial attention module","SpatialFormer Target Attention (SFTA)"],"code_nearby":[],"code_nearby_caption":null,"origin_paper":null,"line":"name not resolved (unknown_name). The lookup matched no method, paper or venue by this name; that asserts nothing about whether code exists.","level_legend":null},"syntology_have_state":"loaded","record_sha256":"8f0b88b3d7968068e4a4e0f2d67f3dd3b823101b95cd3a503206d674c8db4eaa","record_changed_at":"2026-10-05","record_changed_at_basis":"changed"}