{"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/multi-dconv-head-attention","slug":"multi-dconv-head-attention","name":"Multi-DConv-Head Attention","full_name":"Multi-DConv-Head Attention","full_name_withheld":false,"description_markdown":"**Multi-DConv-Head Attention**, or **MDHA**, is a type of [Multi-Head Attention](https://paperswithcode.com/method/multi-head-attention) that utilizes [depthwise convolutions](https://paperswithcode.com/method/depthwise-convolution) after the multi-head projections. It is used in the [Primer](https://paperswithcode.com/method/primer) [Transformer](https://paperswithcode.com/method/transformer) architecture.\r\n\r\nSpecifically, 3x1 depthwise convolutions are added after each of the multi-head projections for query $Q$, key $K$ and value $V$ in self-attention. These depthwise convolutions are performed over the spatial dimension of each dense projection’s output. Interestingly, this ordering of pointwise followed by depthwise convolution is the reverse of typical [separable convolution](https://paperswithcode.com/method/depthwise-separable-convolution), which the authors find to be less effective. They also find that wider depthwise convolution and [standard convolution](https://paperswithcode.com/method/convolution) not only do not improve performance, but in several cases hurt it. \r\n\r\nMDHA is similar to [Convolutional Attention](https://paperswithcode.com/method/cvt), which uses [separable convolution](https://paperswithcode.com/method/depthwise-separable-convolution) instead of depthwise convolution and does not apply convolution operations per attention head as in MDHA.","description_state":"present","introduced_year":null,"introduced_by":{"title":null,"paper":null,"first_author":null,"n_authors":0,"url_abs":null,"archive_paper_url":null},"source":{"url":"https://arxiv.org/abs/2109.08668v2","title":"Primer: Searching for Efficient Transformers for Language Modeling","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":15,"archive_num_papers":null,"papers_newest_first":[{"paper":null,"slug":"safepath-preventing-harmful-reasoning-in","title":"SAFEPATH: Preventing Harmful Reasoning in Chain-of-Thought via Early Alignment","date":"2025-05-20","arxiv_id":"2505.14667","n_code_links":0,"syntology":null},{"paper":null,"slug":"a-review-of-dna-restriction-free-overlapping","title":"A review of DNA restriction-free overlapping sequence cloning techniques for synthetic biology","date":"2025-05-06","arxiv_id":"2505.03681","n_code_links":0,"syntology":null},{"paper":null,"slug":"primer-c-vae-an-interpretable-deep-learning","title":"Primer C-VAE: An interpretable deep learning primer design method to detect emerging virus variants","date":"2025-03-03","arxiv_id":"2503.01459","n_code_links":0,"syntology":null},{"paper":"/paper/solving-oscillator-odes-via-soft-constrained","slug":"solving-oscillator-odes-via-soft-constrained","title":"Characteristic Performance Study on Solving Oscillator ODEs via Soft-constrained Physics-informed Neural Network with Small Data","date":"2024-08-19","arxiv_id":"2408.11077","n_code_links":1,"syntology":null},{"paper":null,"slug":"the-curious-case-of-a31p-a-topology-switching","title":"The curious case of A31P, a topology-switching mutant of the Repressor of Primer protein : A molecular dynamics study of its folding and misfolding","date":"2024-04-01","arxiv_id":"2404.01405","n_code_links":0,"syntology":null},{"paper":"/paper/rcmha-relative-convolutional-multi-head","slug":"rcmha-relative-convolutional-multi-head","title":"RCMHA: Relative Convolutional Multi-Head Attention for Natural Language Modelling","date":"2023-08-07","arxiv_id":"2308.03429","n_code_links":1,"syntology":null},{"paper":null,"slug":"brainformers-trading-simplicity-for","title":"Brainformers: Trading Simplicity for Efficiency","date":"2023-05-29","arxiv_id":"2306.00008","n_code_links":0,"syntology":null},{"paper":"/paper/the-effects-of-political-martyrdom-on","slug":"the-effects-of-political-martyrdom-on","title":"The Effects of Political Martyrdom on Election Results: The Assassination of Abe","date":"2023-05-29","arxiv_id":"2305.18004","n_code_links":1,"syntology":null},{"paper":null,"slug":"towards-neuroai-introducing-neuronal","title":"Towards NeuroAI: Introducing Neuronal Diversity into Artificial Neural Networks","date":"2023-01-23","arxiv_id":"2301.09245","n_code_links":0,"syntology":null},{"paper":"/paper/n-grammer-augmenting-transformers-with-latent-1","slug":"n-grammer-augmenting-transformers-with-latent-1","title":"N-Grammer: Augmenting Transformers with latent n-grams","date":"2022-07-13","arxiv_id":"2207.06366","n_code_links":2,"syntology":{"ran":6,"of":6,"n_ran_checked":6,"n_instrument":0,"unverified":0,"pointer_only":0,"phrase":"6 ran (of which 0 constructed an object rather than computing a result; 6 with no instrument failure: 0 honoured, 0 violated, 6 with no contract checked; 0 where Syntology's instrument failed) · 0 unverified","official":{"repos":["tensorflow/lingvo"],"state":"official (archive's flag): 5 ran","n_ran":5,"n_constructed":0,"n_ran_no_instrument_failure":5,"n_unverified":0,"ran_from_kinds":["listed","official"]}}},{"paper":null,"slug":"piecewise-linear-neural-networks-and-deep","title":"Piecewise Linear Neural Networks and Deep Learning","date":"2022-06-18","arxiv_id":"2206.09149","n_code_links":0,"syntology":null},{"paper":null,"slug":"enriching-and-characterizing-t-cell","title":"Enriching and Characterizing T-Cell Repertoires from 3' Barcoded Single-Cell Whole Transcriptome Amplification Products","date":"2022-03-21","arxiv_id":"2203.11266","n_code_links":0,"syntology":null},{"paper":null,"slug":"searching-for-efficient-transformers-for","title":"Searching for Efficient Transformers for Language Modeling","date":"2021-12-01","arxiv_id":null,"n_code_links":0,"syntology":null},{"paper":null,"slug":"n-grammer-augmenting-transformers-with-latent","title":"N-grammer: Augmenting Transformers with latent n-grams","date":"2021-11-16","arxiv_id":null,"n_code_links":0,"syntology":null},{"paper":"/paper/primer-searching-for-efficient-transformers","slug":"primer-searching-for-efficient-transformers","title":"Primer: Searching for Efficient Transformers for Language Modeling","date":"2021-09-17","arxiv_id":"2109.08668","n_code_links":4,"syntology":{"ran":3,"of":3,"n_ran_checked":3,"n_instrument":0,"unverified":0,"pointer_only":3,"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":{"repos":["google-research/google-research"],"state":"official: no sample here; runs from other or unrecorded repositories","n_ran":0,"n_constructed":0,"n_ran_no_instrument_failure":0,"n_unverified":0,"ran_from_kinds":["listed","unlocated"]}}}],"papers_shown":15,"papers_order":"date (newest first), then slug","paper_counts":{"archive_papers_tagged":15,"with_a_code_link":5,"where_syntology_ran_a_sample":2,"not_listed_spam_title":0,"listed":15,"listed_where_code_ran":2,"where_syntology_ran_a_sample_split":{"with_a_run_with_no_instrument_failure":2,"every_run_a_failure_of_syntologys_instrument":0,"listed_with_a_run_with_no_instrument_failure":2,"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":2,"papers_where_code_ran_first_page":"/method/multi-dconv-head-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/multi-dconv-head-attention/papers/ran/1","json":"/method/multi-dconv-head-attention/papers/ran/1.json","rows":2}],"tasks":[{"task":"/task/language-modeling","name":"Language Modeling","papers":5},{"task":"/task/language-modelling","name":"Language Modelling","papers":5},{"task":null,"name":"CPU","papers":1},{"task":"/task/common-sense-reasoning","name":"Common Sense Reasoning","papers":1},{"task":"/task/coreference-resolution","name":"Coreference Resolution","papers":1},{"task":"/task/deep-learning","name":"Deep Learning","papers":1},{"task":"/task/diversity","name":"Diversity","papers":1},{"task":"/task/epidemiology","name":"Epidemiology","papers":1},{"task":null,"name":"GPU","papers":1},{"task":"/task/natural-language-inference","name":"Natural Language Inference","papers":1},{"task":"/task/protein-structure-prediction","name":"Protein Structure Prediction","papers":1},{"task":"/task/question-answering","name":"Question Answering","papers":1},{"task":"/task/safety-alignment","name":"Safety Alignment","papers":1},{"task":"/task/sentiment-analysis","name":"Sentiment Analysis","papers":1},{"task":"/task/specificity","name":"Specificity","papers":1},{"task":"/task/tar","name":"TAR","papers":1},{"task":"/task/text-classification","name":"Text Classification","papers":1},{"task":"/task/word-sense-disambiguation","name":"Word Sense Disambiguation","papers":1}],"tasks_shown":18,"n_tasks":18,"usage_by_year":[{"year":"2021","papers":3},{"year":"2022","papers":3},{"year":"2023","papers":4},{"year":"2024","papers":2},{"year":"2025","papers":3}],"row_source":"embedded","archive":{"source":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","archive_url":"https://paperswithcode.com/method/multi-dconv-head-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=Multi-DConv-Head%20Attention","read_at":"2026-10-05T00:59:23+00:00","query":"Multi-DConv-Head 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":null,"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 'Multi-DConv-Head 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":["Multi-Head Knowledge Attention","Multi-head Explicit Attention (MEA)","multi-head attention neural network","Multihead Low-Rank Attention (MLRA)","Gaussian Multi-head Attention (GMA)","Multi-head Attention Fusion Network","Multi-Head Low-Rank Attention (MLRA)","Multi-Head Tropical Attention (MHTA)"],"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":"64618b015cbb14bac7d25abd0996462c8e2d3237a455143771860918e686d2bc","record_changed_at":"2026-10-05","record_changed_at_basis":"changed"}