Papers › The Depth-to-Width Interplay in Self-Attention

The Depth-to-Width Interplay in Self-Attention

22 Jun 2020NeurIPS 2020 12arXiv:2006.12467archive 2025-07-28

Yoav Levine, Noam Wies, Or Sharir, Hofit Bata, Amnon Shashua

Self-attention architectures, which are rapidly pushing the frontier in natural language processing, demonstrate a surprising depth-inefficient behavior: previous works indicate that increasing the internal representation (network width) is just as useful as increasing the number of self-attention layers (network depth). We theoretically predict a width-dependent transition between depth-efficiency and depth-inefficiency in self-attention. We conduct systematic empirical ablations on networks of depths 6 to 48 that clearly reveal the theoretically predicted behaviors, and provide explicit quantitative suggestions regarding the optimal depth-to-width allocation for a given self-attention network size. The race towards beyond 1-Trillion parameter language models renders informed guidelines for increasing self-attention depth and width in tandem an essential ingredient. Our guidelines elucidate the depth-to-width trade-off in self-attention networks of sizes up to the scale of GPT3 (which we project to be too deep for its size), and beyond, marking an unprecedented width of 30K as optimal for a 1-Trillion parameter network.

PaperPDFConference PDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2006.12467")

Code

Syntology Ran 6 of 16 code samples harvested from 1 repository linked to this paper; 10 have no recorded run. Of those that ran: 1 ran · honoured contract; 1 ran · violated contract; 4 ran · our draft was wrong.

By repository: community (archive-listed): 16 samples from 1 repository, 6 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

uf-hobi-informatics-lab/GatorTron mentioned on GitHubpytorchMIT report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

16 samples harvested; 6 ran; 1 honoured the contract we drafted; 10 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · honoured contract
1ran · violated contract
4ran · our draft was wrong
10unverified

Licence: 0 of the 16 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from uf-hobi-informatics-lab/GatorTron. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

exact_match_score uf-hobi-informatics-lab/GatorTron/finetuning/qa/evaluate-v1.1.py community (archive-listed) ran · violated contract fingerprinted MIT (permissive) · bf75673211903e14 · report
f1_score uf-hobi-informatics-lab/GatorTron/finetuning/qa/evaluate-v1.1.py community (archive-listed) ran · honoured contract fingerprinted MIT (permissive) · cdf4b8c0fec3da02 · report
get_tokens uf-hobi-informatics-lab/GatorTron/finetuning/qa/evaluate-squad-v2.0.py community (archive-listed) ran · our draft was wrong fingerprinted MIT (permissive) · aa6bc32d9c17a2f1 · report
make_qid_to_has_ans uf-hobi-informatics-lab/GatorTron/finetuning/qa/evaluate-squad-v2.0.py community (archive-listed) ran · our draft was wrong MIT (permissive) · e91c44f5680827e2 · report
normalize_answer uf-hobi-informatics-lab/GatorTron/finetuning/qa/evaluate-v1.1.py community (archive-listed) ran · our draft was wrong fingerprinted MIT (permissive) · e7e75981cb464788 · report
normalize_answer uf-hobi-informatics-lab/GatorTron/finetuning/qa/evaluate-squad-v2.0.py community (archive-listed) ran · our draft was wrong fingerprinted MIT (permissive) · 6a96435eba311b08 · report
calc uf-hobi-informatics-lab/GatorTron/finetuning/re/brat_eval_res.py community (archive-listed) unverified MIT (permissive) · 88094c3b96a13d89 · report
d2t uf-hobi-informatics-lab/GatorTron/pretraining/preprocessing/gatortron_process_data.py community (archive-listed) unverified MIT (permissive) · e390dc7cb8d9947a · report
ff uf-hobi-informatics-lab/GatorTron/finetuning/nemo_ner/generate_conll_compatible_eval.py community (archive-listed) unverified MIT (permissive) · 82542482c691f03a · report
load_bio_file_into_sents uf-hobi-informatics-lab/GatorTron/finetuning/nemo_ner/new_bio_eval.py community (archive-listed) unverified MIT (permissive) · ffebb9d76088e5ad · report
load_gs_labels uf-hobi-informatics-lab/GatorTron/finetuning/nemo_ner/ner_expr.py community (archive-listed) unverified MIT (permissive) · 736dd0792c0ef1ce · report
measure_prf uf-hobi-informatics-lab/GatorTron/finetuning/re/brat_eval_res.py community (archive-listed) unverified MIT (permissive) · ead79428fb588ca6 · report
predict_in_sent uf-hobi-informatics-lab/GatorTron/finetuning/nemo_ner/ner_expr.py community (archive-listed) unverified MIT (permissive) · 7caf28c5dc24bdc1 · report
read_from_file uf-hobi-informatics-lab/GatorTron/finetuning/nemo_ner/new_bio_eval.py community (archive-listed) unverified MIT (permissive) · 532d336bacaef9b6 · report
read_text uf-hobi-informatics-lab/GatorTron/finetuning/nemo_ner/nemo2bio.py community (archive-listed) unverified MIT (permissive) · fbf1f4b2112b56ad · report
t2l uf-hobi-informatics-lab/GatorTron/finetuning/nemo_ner/nemo2bio.py community (archive-listed) unverified MIT (permissive) · 47e420d0a8dd35ec · report

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections