{"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/routed-attention","slug":"routed-attention","name":"Routing Attention","full_name":"Routing Attention","full_name_withheld":false,"description_markdown":"**Routed Attention** is an attention pattern proposed as part of the [Routing Transformer](https://paperswithcode.com/method/routing-transformer) architecture.  Each attention module\r\nconsiders a clustering of the space: the current timestep only attends to context belonging to the same cluster. In other word, the current time-step query is routed to a limited number of context through its cluster assignment. This can be contrasted with [strided](https://paperswithcode.com/method/strided-attention) attention patterns and those proposed with the [Sparse Transformer](https://paperswithcode.com/method/sparse-transformer).\r\n\r\nIn the image to the right, the rows represent the outputs while the columns represent the inputs. The different colors represent cluster memberships for the output token.","description_state":"present","introduced_year":null,"introduced_by":{"title":"Efficient Content-Based Sparse Attention with Routing Transformers","paper":"/paper/efficient-content-based-sparse-attention-with-1","first_author":"Aurko Roy","n_authors":4,"url_abs":null,"archive_paper_url":"https://paperswithcode.com/paper/efficient-content-based-sparse-attention-with-1"},"source":{"url":"https://arxiv.org/abs/2003.05997v5","title":"Efficient Content-Based Sparse Attention with Routing Transformers","url_on_a_paper_host":true},"code_snippet_url":"https://github.com/lucidrains/routing-transformer/blob/bb572b6efe533ac30f30e495fc41e0454b21736e/routing_transformer/routing_transformer.py#L247","code_snippet_url_on_a_code_host":true,"categories":[{"area":"Natural Language Processing","area_id":"natural-language-processing","collection":"Attention Patterns","url":"/methods/category/attention-patterns","pwc_aliases":["factorized-attention"]}],"n_papers_tagged":13,"archive_num_papers":13,"papers_newest_first":[{"paper":null,"slug":"lightweight-relational-embedding-in-task","title":"Lightweight Relational Embedding in Task-Interpolated Few-Shot Networks for Enhanced Gastrointestinal Disease Classification","date":"2025-05-30","arxiv_id":"2505.24792","n_code_links":0,"syntology":null},{"paper":"/paper/cl-mfap-a-contrastive-learning-based","slug":"cl-mfap-a-contrastive-learning-based","title":"CL-MFAP: A Contrastive Learning-Based Multimodal Foundation Model for Molecular Property Prediction and Antibiotic Screening","date":"2025-02-16","arxiv_id":"2502.11001","n_code_links":1,"syntology":{"ran":0,"of":1,"n_ran_checked":0,"n_instrument":0,"unverified":1,"pointer_only":1,"phrase":"0 ran · 1 unverified","official":{"repos":["clmfap/clmfap"],"state":"official: harvested, nothing ran","n_ran":0,"n_constructed":0,"n_ran_no_instrument_failure":0,"n_unverified":1,"ran_from_kinds":[]}}},{"paper":"/paper/hybrid-attention-network-an-efficient","slug":"hybrid-attention-network-an-efficient","title":"HYATT-Net is Grand: A Hybrid Attention Network for Performant Anatomical Landmark Detection","date":"2024-12-09","arxiv_id":"2412.06499","n_code_links":1,"syntology":null},{"paper":null,"slug":"pubic-symphysis-fetal-head-segmentation","title":"Pubic Symphysis-Fetal Head Segmentation Network Using BiFormer Attention Mechanism and Multipath Dilated Convolution","date":"2024-10-14","arxiv_id":"2410.10352","n_code_links":0,"syntology":null},{"paper":"/paper/debiformer-vision-transformer-with-deformable","slug":"debiformer-vision-transformer-with-deformable","title":"DeBiFormer: Vision Transformer with Deformable Agent Bi-level Routing Attention","date":"2024-10-11","arxiv_id":"2410.08582","n_code_links":1,"syntology":null},{"paper":null,"slug":"vision-transformer-with-key-select-routing","title":"Vision Transformer with Key-select Routing Attention for Single Image Dehazing","date":"2024-06-28","arxiv_id":"2406.19703","n_code_links":0,"syntology":null},{"paper":"/paper/brau-net-u-shaped-hybrid-cnn-transformer","slug":"brau-net-u-shaped-hybrid-cnn-transformer","title":"BRAU-Net++: U-Shaped Hybrid CNN-Transformer Network for Medical Image Segmentation","date":"2024-01-01","arxiv_id":"2401.00722","n_code_links":1,"syntology":null},{"paper":null,"slug":"pubic-symphysis-fetal-head-segmentation-using","title":"Pubic Symphysis-Fetal Head Segmentation Using Pure Transformer with Bi-level Routing Attention","date":"2023-09-30","arxiv_id":"2310.00289","n_code_links":0,"syntology":null},{"paper":"/paper/bgf-yolo-enhanced-yolov8-with-multiscale","slug":"bgf-yolo-enhanced-yolov8-with-multiscale","title":"BGF-YOLO: Enhanced YOLOv8 with Multiscale Attentional Feature Fusion for Brain Tumor Detection","date":"2023-09-22","arxiv_id":"2309.12585","n_code_links":1,"syntology":null},{"paper":"/paper/student-classroom-behavior-detection-based-on","slug":"student-classroom-behavior-detection-based-on","title":"Student Classroom Behavior Detection based on YOLOv7-BRA and Multi-Model Fusion","date":"2023-05-13","arxiv_id":"2305.07825","n_code_links":1,"syntology":null},{"paper":null,"slug":"hybrid-routing-transformer-for-zero-shot","title":"Hybrid Routing Transformer for Zero-Shot Learning","date":"2022-03-29","arxiv_id":"2203.15310","n_code_links":0,"syntology":null},{"paper":"/paper/hurdles-to-progress-in-long-form-question","slug":"hurdles-to-progress-in-long-form-question","title":"Hurdles to Progress in Long-form Question Answering","date":"2021-03-10","arxiv_id":"2103.06332","n_code_links":2,"syntology":null},{"paper":"/paper/efficient-content-based-sparse-attention-with-1","slug":"efficient-content-based-sparse-attention-with-1","title":"Efficient Content-Based Sparse Attention with Routing Transformers","date":"2020-03-12","arxiv_id":"2003.05997","n_code_links":2,"syntology":{"ran":3,"of":3,"n_ran_checked":3,"n_instrument":0,"unverified":0,"pointer_only":2,"phrase":"3 ran (of which 0 constructed an object rather than computing a result; 3 with no instrument failure: 1 honoured, 2 violated, 0 with no contract checked; 0 where Syntology's instrument failed) · 0 unverified","official":null}}],"papers_shown":13,"papers_order":"date (newest first), then slug","paper_counts":{"archive_papers_tagged":13,"with_a_code_link":8,"where_syntology_ran_a_sample":1,"not_listed_spam_title":0,"listed":13,"listed_where_code_ran":1,"where_syntology_ran_a_sample_split":{"with_a_run_with_no_instrument_failure":1,"every_run_a_failure_of_syntologys_instrument":0,"listed_with_a_run_with_no_instrument_failure":1,"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":1,"papers_where_code_ran_first_page":"/method/routed-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/routed-attention/papers/ran/1","json":"/method/routed-attention/papers/ran/1.json","rows":1}],"tasks":[{"task":"/task/decoder","name":"Decoder","papers":3},{"task":"/task/segmentation","name":"Segmentation","papers":3},{"task":"/task/semantic-segmentation","name":"Semantic Segmentation","papers":3},{"task":"/task/image-segmentation","name":"Image Segmentation","papers":2},{"task":"/task/object-detection","name":"Object Detection","papers":2},{"task":"/task/object-detection-1","name":"object-detection","papers":2},{"task":"/task/2d-object-detection","name":"2D Object Detection","papers":1},{"task":"/task/anatomical-landmark-detection","name":"Anatomical Landmark Detection","papers":1},{"task":"/task/anatomy","name":"Anatomy","papers":1},{"task":"/task/attribute","name":"Attribute","papers":1},{"task":"/task/computational-efficiency","name":"Computational Efficiency","papers":1},{"task":"/task/contrastive-learning","name":"Contrastive Learning","papers":1},{"task":"/task/diagnostic","name":"Diagnostic","papers":1},{"task":"/task/few-shot-learning","name":"Few-Shot Learning","papers":1},{"task":"/task/form","name":"Form","papers":1},{"task":"/task/image-classification","name":"Image Classification","papers":1},{"task":"/task/image-dehazing","name":"Image Dehazing","papers":1},{"task":"/task/image-generation","name":"Image Generation","papers":1},{"task":"/task/language-modeling","name":"Language Modeling","papers":1},{"task":"/task/language-modelling","name":"Language Modelling","papers":1}],"tasks_shown":20,"n_tasks":37,"usage_by_year":[{"year":"2020","papers":1},{"year":"2021","papers":1},{"year":"2022","papers":1},{"year":"2023","papers":3},{"year":"2024","papers":5},{"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/routed-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=Routing%20Attention","read_at":"2026-10-05T01:01:23+00:00","query":"Routing 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":"2003.05997","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 'Routing 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":["bi-level routing attention","Attention-Aware Routing (AAR)","Fast Low-rank Attention Routing Engine (FLARE)","CAPSULES WITH INVERTED DOT-PRODUCT ATTENTION ROUTING","D2C-Routing","TC-ATTENTION","EL-Attention","VC-Attention"],"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":"2b27db4e989b94cdf4b5af81583a7f615ec984098f70bb7d0e49afa409e42021","record_changed_at":"2026-10-05","record_changed_at_basis":"changed"}