{"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/alibi","slug":"alibi","name":"ALiBi","full_name":"Attention with Linear Biases","full_name_withheld":false,"description_markdown":"**ALiBi**, or **Attention with Linear Biases**, is a [positioning method](https://paperswithcode.com/methods/category/position-embeddings) that allows [Transformer](https://paperswithcode.com/methods/category/transformers) language models to consume, at inference time, sequences which are longer than the ones they were trained on. \r\n\r\nALiBi does this without using actual position embeddings. Instead, computing the attention between a certain key and query, ALiBi penalizes the attention value that that query can assign to the key depending on how far away the key and query are. So when a key and query are close by, the penalty is very low, and when they are far away, the penalty is very high. \r\n\r\nThis method was motivated by the simple reasoning that words that are close-by matter much more than ones that are  far away.\r\n\r\nThis method is as fast as the sinusoidal or absolute embedding methods (the fastest positioning methods there are). It outperforms those methods and Rotary embeddings when evaluating sequences that are longer than the ones the model was trained on (this is known as extrapolation).","description_state":"present","introduced_year":null,"introduced_by":{"title":"Train Short, Test Long: Attention with Linear Biases Enables Input Length Extrapolation","paper":"/paper/train-short-test-long-attention-with-linear","first_author":"Ofir Press","n_authors":3,"url_abs":null,"archive_paper_url":"https://paperswithcode.com/paper/train-short-test-long-attention-with-linear"},"source":{"url":"https://arxiv.org/abs/2108.12409v2","title":"Train Short, Test Long: Attention with Linear Biases Enables Input Length Extrapolation","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":"Position Embeddings","url":"/methods/category/position-embeddings","pwc_aliases":[]},{"area":"Natural Language Processing","area_id":"natural-language-processing","collection":"Inference Extrapolation","url":"/methods/category/inference-extrapolation","pwc_aliases":[]}],"n_papers_tagged":19,"archive_num_papers":19,"papers_newest_first":[{"paper":null,"slug":"a-standard-transformer-and-attention-with","title":"A standard transformer and attention with linear biases for molecular conformer generation","date":"2025-06-24","arxiv_id":"2506.19834","n_code_links":0,"syntology":null},{"paper":"/paper/seqpe-transformer-with-sequential-position","slug":"seqpe-transformer-with-sequential-position","title":"SeqPE: Transformer with Sequential Position Encoding","date":"2025-06-16","arxiv_id":"2506.13277","n_code_links":1,"syntology":{"ran":9,"of":12,"n_ran_checked":4,"n_instrument":5,"unverified":3,"pointer_only":12,"phrase":"9 ran (of which 0 constructed an object rather than computing a result; 4 with no instrument failure: 0 honoured, 2 violated, 2 with no contract checked; 5 where Syntology's instrument failed) · 3 unverified","official":{"repos":["ghrua/seqpe"],"state":"official (archive's flag): 9 ran","n_ran":9,"n_constructed":0,"n_ran_no_instrument_failure":4,"n_unverified":3,"ran_from_kinds":["official"]}}},{"paper":"/paper/context-aware-biases-for-length-extrapolation","slug":"context-aware-biases-for-length-extrapolation","title":"Context-aware Biases for Length Extrapolation","date":"2025-03-11","arxiv_id":"2503.08067","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":["axiomlab/Cable"],"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":["found_in_text"]}}},{"paper":null,"slug":"zscore-a-universal-decentralised-reputation","title":"zScore: A Universal Decentralised Reputation System for the Blockchain Economy","date":"2025-02-17","arxiv_id":"2503.05718","n_code_links":0,"syntology":null},{"paper":null,"slug":"linear-recency-bias-during-training-improves","title":"Linear Recency Bias During Training Improves Transformers' Fit to Reading Times","date":"2024-09-17","arxiv_id":"2409.11250","n_code_links":0,"syntology":null},{"paper":null,"slug":"on-the-interchangeability-of-positional","title":"Towards Inducing Document-Level Abilities in Standard Multilingual Neural Machine Translation Models","date":"2024-08-21","arxiv_id":"2408.11382","n_code_links":0,"syntology":null},{"paper":"/paper/mitigate-position-bias-in-large-language","slug":"mitigate-position-bias-in-large-language","title":"Mitigate Position Bias in Large Language Models via Scaling a Single Dimension","date":"2024-06-04","arxiv_id":"2406.02536","n_code_links":1,"syntology":{"ran":17,"of":22,"n_ran_checked":9,"n_instrument":8,"unverified":5,"pointer_only":5,"phrase":"17 ran (of which 0 constructed an object rather than computing a result; 9 with no instrument failure: 1 honoured, 0 violated, 8 with no contract checked; 8 where Syntology's instrument failed) · 5 unverified","official":{"repos":["PositionalHidden/PositionalHidden"],"state":"official (archive's flag): 17 ran","n_ran":17,"n_constructed":0,"n_ran_no_instrument_failure":9,"n_unverified":5,"ran_from_kinds":["official"]}}},{"paper":null,"slug":"can-perplexity-reflect-large-language-model-s","title":"Can Perplexity Reflect Large Language Model's Ability in Long Text Understanding?","date":"2024-05-09","arxiv_id":"2405.06105","n_code_links":0,"syntology":null},{"paper":null,"slug":"mep-multiple-kernel-learning-enhancing","title":"MEP: Multiple Kernel Learning Enhancing Relative Positional Encoding Length Extrapolation","date":"2024-03-26","arxiv_id":"2403.17698","n_code_links":0,"syntology":null},{"paper":"/paper/audiobox-unified-audio-generation-with","slug":"audiobox-unified-audio-generation-with","title":"Audiobox: Unified Audio Generation with Natural Language Prompts","date":"2023-12-25","arxiv_id":"2312.15821","n_code_links":0,"syntology":null},{"paper":"/paper/scoreperformer-expressive-piano-performance","slug":"scoreperformer-expressive-piano-performance","title":"ScorePerformer: Expressive Piano Performance Rendering With Fine-Grained Control","date":"2023-11-04","arxiv_id":null,"n_code_links":1,"syntology":null},{"paper":null,"slug":"hype-attention-with-hyperbolic-biases-for","title":"HyPE: Attention with Hyperbolic Biases for Relative Positional Encoding","date":"2023-10-30","arxiv_id":"2310.19676","n_code_links":0,"syntology":null},{"paper":"/paper/btlm-3b-8k-7b-parameter-performance-in-a-3b","slug":"btlm-3b-8k-7b-parameter-performance-in-a-3b","title":"BTLM-3B-8K: 7B Parameter Performance in a 3B Parameter Model","date":"2023-09-20","arxiv_id":"2309.11568","n_code_links":1,"syntology":{"ran":6,"of":8,"n_ran_checked":6,"n_instrument":0,"unverified":2,"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) · 2 unverified","official":{"repos":["cerebras/modelzoo"],"state":"official (archive's flag): 6 ran","n_ran":6,"n_constructed":0,"n_ran_no_instrument_failure":6,"n_unverified":2,"ran_from_kinds":["official"]}}},{"paper":"/paper/slimpajama-dc-understanding-data-combinations","slug":"slimpajama-dc-understanding-data-combinations","title":"SlimPajama-DC: Understanding Data Combinations for LLM Training","date":"2023-09-19","arxiv_id":"2309.10818","n_code_links":1,"syntology":null},{"paper":"/paper/voicebox-text-guided-multilingual-universal","slug":"voicebox-text-guided-multilingual-universal","title":"Voicebox: Text-Guided Multilingual Universal Speech Generation at Scale","date":"2023-06-23","arxiv_id":"2306.15687","n_code_links":1,"syntology":{"ran":10,"of":10,"n_ran_checked":8,"n_instrument":2,"unverified":0,"pointer_only":3,"phrase":"10 ran (of which 0 constructed an object rather than computing a result; 8 with no instrument failure: 3 honoured, 3 violated, 2 with no contract checked; 2 where Syntology's instrument failed) · 0 unverified","official":null}},{"paper":"/paper/the-impact-of-positional-encoding-on-length-1","slug":"the-impact-of-positional-encoding-on-length-1","title":"The Impact of Positional Encoding on Length Generalization in Transformers","date":"2023-05-31","arxiv_id":"2305.19466","n_code_links":2,"syntology":{"ran":6,"of":7,"n_ran_checked":6,"n_instrument":0,"unverified":1,"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) · 1 unverified","official":{"repos":["mcgill-nlp/length-generalization"],"state":"official (archive's flag): 6 ran","n_ran":6,"n_constructed":0,"n_ran_no_instrument_failure":6,"n_unverified":1,"ran_from_kinds":["official"]}}},{"paper":"/paper/a-vector-quantized-approach-for-text-to","slug":"a-vector-quantized-approach-for-text-to","title":"A Vector Quantized Approach for Text to Speech Synthesis on Real-World Spontaneous Speech","date":"2023-02-08","arxiv_id":"2302.04215","n_code_links":1,"syntology":{"ran":2,"of":2,"n_ran_checked":2,"n_instrument":0,"unverified":0,"pointer_only":0,"phrase":"2 ran (of which 2 constructed an object rather than computing a result; 2 with no instrument failure: 0 honoured, 0 violated, 2 with no contract checked; 0 where Syntology's instrument failed) · 0 unverified; every one of the 2 samples that ran constructed an object rather than computing a result","official":{"repos":["b04901014/mqtts"],"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":["official"]}}},{"paper":null,"slug":"receptive-field-alignment-enables-transformer","title":"Dissecting Transformer Length Extrapolation via the Lens of Receptive Field Analysis","date":"2022-12-20","arxiv_id":"2212.10356","n_code_links":0,"syntology":null},{"paper":"/paper/train-short-test-long-attention-with-linear","slug":"train-short-test-long-attention-with-linear","title":"Train Short, Test Long: Attention with Linear Biases Enables Input Length Extrapolation","date":"2021-08-27","arxiv_id":"2108.12409","n_code_links":10,"syntology":{"ran":16,"of":16,"n_ran_checked":13,"n_instrument":3,"unverified":0,"pointer_only":5,"phrase":"16 ran (of which 6 constructed an object rather than computing a result; 13 with no instrument failure: 4 honoured, 0 violated, 9 with no contract checked; 3 where Syntology's instrument failed) · 0 unverified","official":{"repos":["ofirpress/attention_with_linear_biases"],"state":"official (archive's flag): 4 ran","n_ran":4,"n_constructed":1,"n_ran_no_instrument_failure":3,"n_unverified":0,"ran_from_kinds":["listed","official"]}}}],"papers_shown":19,"papers_order":"date (newest first), then slug","paper_counts":{"archive_papers_tagged":19,"with_a_code_link":10,"where_syntology_ran_a_sample":8,"not_listed_spam_title":0,"listed":19,"listed_where_code_ran":8,"where_syntology_ran_a_sample_split":{"with_a_run_with_no_instrument_failure":8,"every_run_a_failure_of_syntologys_instrument":0,"listed_with_a_run_with_no_instrument_failure":8,"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":8,"papers_where_code_ran_first_page":"/method/alibi/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/alibi/papers/ran/1","json":"/method/alibi/papers/ran/1.json","rows":8}],"tasks":[{"task":null,"name":"Position","papers":5},{"task":"/task/decoder","name":"Decoder","papers":4},{"task":"/task/language-modeling","name":"Language Modeling","papers":4},{"task":"/task/language-modelling","name":"Language Modelling","papers":4},{"task":"/task/sentence","name":"Sentence","papers":2},{"task":"/task/speech-synthesis","name":"Speech Synthesis","papers":2},{"task":"/task/text-to-speech","name":"Text to Speech","papers":2},{"task":"/task/text-to-speech-synthesis","name":"Text-To-Speech Synthesis","papers":2},{"task":"/task/text-to-speech-1","name":"text-to-speech","papers":2},{"task":null,"name":"8k","papers":1},{"task":"/task/audio-generation","name":"Audio Generation","papers":1},{"task":null,"name":"AudioCaps","papers":1},{"task":"/task/code-generation","name":"Code Generation","papers":1},{"task":"/task/diversity","name":"Diversity","papers":1},{"task":"/task/drug-discovery","name":"Drug Discovery","papers":1},{"task":"/task/fad","name":"FAD","papers":1},{"task":"/task/image-classification","name":"Image Classification","papers":1},{"task":"/task/in-context-learning","name":"In-Context Learning","papers":1},{"task":"/task/inductive-bias","name":"Inductive Bias","papers":1},{"task":"/task/knowledge-distillation","name":"Knowledge Distillation","papers":1}],"tasks_shown":20,"n_tasks":29,"usage_by_year":[{"year":"2021","papers":1},{"year":"2022","papers":1},{"year":"2023","papers":8},{"year":"2024","papers":5},{"year":"2025","papers":4}],"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/alibi"},"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=ALiBi","read_at":"2026-10-05T00:51:50+00:00","query":"ALiBi","kind":"method","have":"verified_code","tier":null,"verified_implementation":true,"level":3,"level_meaning":"the served verification level, per answer; never summed across methods","resolved_to":{"method":"ALIBI","origin_arxiv_id":"2106.03408"},"resolution":"case_insensitive","resolved_name_differs":false,"absence_asserted":false,"absence_unchecked":null,"no_code_is_about_this_method":false,"subject":"different_paper","archive_paper_arxiv_id":"2108.12409","repositories":{"listed":null,"in_graph":1,"list_truncated":null,"strongest_link":null},"retrieve_with":"get_reference_implementation(name='ALIBI')","name_competition":{"verdict":"outranked","may_be_wrong_sense":true,"bearers_found":2,"served":{"arxiv_id":"2106.03408","citations":83},"leading_other_bearer":{"arxiv_id":"2108.12409","title":"Train Short, Test Long: Attention with Linear Biases Enables Input Length Extrapolation","citations":1356,"named_by":["acronym_expansion"],"bearer_name":"Attention with Linear Biases (ALiBi)","ask_with":"have('2108.12409')"},"n_other_bearers_listed":1,"note":"'ALiBi' is ALSO the name of 'Attention with Linear Biases (ALiBi)', a method in 'Train Short, Test Long: Attention with Linear Biases Enables Input Length Extrapolation' (arXiv:2108.12409, 1,356 citations), which is cited FAR more than the paper this answer is about (83). This answer may be about the wrong ALiBi. If you meant the better-known one, ask again with that entry of `also_named`."},"name_competition_text":"The same name also belongs to “Attention with Linear Biases (ALiBi)”, a method in the paper “Train Short, Test Long: Attention with Linear Biases Enables Input Length Extrapolation” (arXiv:2108.12409, 1,356 citations), which the lookup finds cited far more than the paper this answer is about (83 citations), so this answer may be about a different sense of the name.","near_matches":null,"code_nearby":[],"code_nearby_caption":null,"origin_paper":{"arxiv_id":"2106.03408","page":"/paper/antipodes-of-label-differential-privacy-pate","syntology_url":"https://syntology.ai/paper/2106.03408","in_graph_layer":true,"samples":7,"ran":6,"n_ran_checked":5,"n_instrument":1,"unverified":1,"phrase":"6 ran (of which 0 constructed an object rather than computing a result; 5 with no instrument failure: 5 honoured, 0 violated, 0 with no contract checked; 1 where Syntology's instrument failed) · 1 unverified","instrument_means":"failures of Syntology's instrument, not of the code"},"line":"about another paper, arXiv:2106.03408: verified reference implementation at level V3. The lookup matched 'ALIBI' ignoring case. About another paper: this answer is about arXiv:2106.03408, while the archive credits arXiv:2108.12409.","level_legend":{"state":"quoted","server_card":"https://syntology.ai/.well-known/mcp/server-card.json","card_sha256":"479785a84658dd682a11b10237b3620d651d7f87799f5dc7add970aaa83f6d39","note":"Syntology's served verification levels, quoted verbatim from its MCP server card; a row is split where the card separates clauses with a double hyphen, and the separator is not reproduced","levels":[{"level":"V0","quoted":["imports"]},{"level":"V1","quoted":["executes against a synthesized fixture and returns a value of the recorded type"]},{"level":"V2","quoted":["two implementations GENERATED from the paper's signature and spec agree numerically (1e-6) on fixture inputs","neither of the two ever read the authors' own code, so V2 measures how unambiguously the paper specifies the method, not fidelity to the authors' implementation (measured 2026-09-11, commit 75eaa77: cross_checked_by is a second LLM on 2,628 of 2,831 served samples)"]},{"level":"V3","quoted":["paper-derived property tests pass on both of those same two generations."]}],"no_rung":"No rung on this ladder compares the served code against the authors' implementation, so treat every level as evidence about runnability and internal agreement, not about matching the paper's results."}},"syntology_have_state":"loaded","record_sha256":"40b77611b76a7682adba19f76790db8211a38513d8d4589ef980e09282232551","record_changed_at":"2026-10-05","record_changed_at_basis":"changed"}