<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Train Short, Test Long: Attention with Linear Biases Enables Input Length Extrapolation · HackerPapers discussions</title><link>https://hackerpaper.kaipfister.de/p/2108.12409/</link><description>Collected HN comments and submissions linking this paper.</description><language>en</language><lastBuildDate>Mon, 02 Nov 2026 11:16:22 GMT</lastBuildDate><atom:link href="https://hackerpaper.kaipfister.de/p/2108.12409/feed.xml" rel="self" type="application/rss+xml" /><item><title>Train Short, Test Long: Attention with Linear Biases Enables Input Length Extrapolation — mentioned by chessgecko</title><link>https://news.ycombinator.com/item?id=41780581</link><guid isPermaLink="false">urn:hackerpapers:mention:2108.12409:41780581</guid><pubDate>Tue, 08 Oct 2024 18:59:30 GMT</pubDate><description>&lt;p&gt;My hypothesis for why this works that it mitigates the downsides of rope to eli5: rope is the modern strategy used to give information to the model about how far a query and a key are apart when doing attention. It&amp;#x27;s the best strategy we have now, but has a major downside, where it makes some connections between tokens that are far apart much stronger than you would like them to be. Xpos (https://arxiv.org/pdf/2212.10554) is another paper by microsoft tackling issues with rope and you can see figure 1 on page 4 to get a visual interpretation of the sinusoidal attention strength (you would…&lt;/p&gt;&lt;p&gt;&lt;a href="https://hackerpaper.kaipfister.de/p/2108.12409/"&gt;Paper and discussion history&lt;/a&gt;. A mention is not an endorsement.&lt;/p&gt;</description><category>cs.CL</category></item><item><title>Train Short, Test Long: Attention with Linear Biases Enables Input Length Extrapolation — mentioned by Smerity</title><link>https://news.ycombinator.com/item?id=38950210</link><guid isPermaLink="false">urn:hackerpapers:mention:2108.12409:38950210</guid><pubDate>Thu, 11 Jan 2024 10:15:09 GMT</pubDate><description>&lt;p&gt;I think you&amp;#x27;ve done a great explanation expansion except I believe it&amp;#x27;s ALiBi (&amp;quot;Attention with Linear Biases Enables Input Length Extrapolation&amp;quot;), a method of positional encoding (i.e. telling the Transformer model how much to weight a distant token when computing the current output token). This has been used on various other LLMs[2]. [1]: https://arxiv.org/abs/2108.12409 [2]: n.b. Ofir Press is co-creator of ALiBi https://twitter.com/OfirPress/status/1654538361447522305&lt;/p&gt;&lt;p&gt;&lt;a href="https://hackerpaper.kaipfister.de/p/2108.12409/"&gt;Paper and discussion history&lt;/a&gt;. A mention is not an endorsement.&lt;/p&gt;</description><category>cs.CL</category></item><item><title>Train Short, Test Long: Attention with Linear Biases Enables Input Length Extrapolation — mentioned by eriicar</title><link>https://news.ycombinator.com/item?id=37324716</link><guid isPermaLink="false">urn:hackerpapers:mention:2108.12409:37324716</guid><pubDate>Wed, 30 Aug 2023 16:38:43 GMT</pubDate><description>&lt;p&gt;Ofir Press is the creator of AliBi attention and Self-Ask prompting. Here are the papers that are discussed in the podcast: AliBi Attention: https://arxiv.org/abs/2108.12409 Self-Ask Prompting: https://arxiv.org/abs/2210.03350&lt;/p&gt;&lt;p&gt;&lt;a href="https://hackerpaper.kaipfister.de/p/2108.12409/"&gt;Paper and discussion history&lt;/a&gt;. A mention is not an endorsement.&lt;/p&gt;</description><category>cs.CL</category></item><item><title>Train Short, Test Long: Attention with Linear Biases Enables Input Length Extrapolation — mentioned by malwrar</title><link>https://news.ycombinator.com/item?id=37250240</link><guid isPermaLink="false">urn:hackerpapers:mention:2108.12409:37250240</guid><pubDate>Thu, 24 Aug 2023 15:46:35 GMT</pubDate><description>&lt;p&gt;Curious, what led you to adjusting the parameters this way? Also, have you guys experimented with ALiBi[1] which claims better extrapolative results than rotary positional encoding? [1]: https://arxiv.org/abs/2108.12409 (charts on page two if you’re skimming)&lt;/p&gt;&lt;p&gt;&lt;a href="https://hackerpaper.kaipfister.de/p/2108.12409/"&gt;Paper and discussion history&lt;/a&gt;. A mention is not an endorsement.&lt;/p&gt;</description><category>cs.CL</category></item><item><title>Train Short, Test Long: Attention with Linear Biases Enables Input Length Extrapolation — mentioned by EnricoShippole</title><link>https://news.ycombinator.com/item?id=36634455</link><guid isPermaLink="false">urn:hackerpapers:mention:2108.12409:36634455</guid><pubDate>Fri, 07 Jul 2023 16:45:29 GMT</pubDate><description>&lt;p&gt;Introducing LLongMA, a series of OpenLLaMA models, trained at 8k context length using linear positional interpolation scaling. The model was trained in collaboration with theemozilla of NousResearch and Kaiokendev. We worked directly with Kaiokendev, to extend the context length of the open-llama 7b and 3b models through fine-tuning. The fine-tuned models maintain the same perplexity at 8k extrapolation surpassing the performance of other recent methodologies. Applying the method to the rotary position embedding requires only slight changes to the model&amp;#x27;s code by dividing the positional…&lt;/p&gt;&lt;p&gt;&lt;a href="https://hackerpaper.kaipfister.de/p/2108.12409/"&gt;Paper and discussion history&lt;/a&gt;. A mention is not an endorsement.&lt;/p&gt;</description><category>cs.CL</category></item><item><title>Train Short, Test Long: Attention with Linear Biases Enables Input Length Extrapolation — mentioned by raymond_goo</title><link>https://news.ycombinator.com/item?id=35945845</link><guid isPermaLink="false">urn:hackerpapers:mention:2108.12409:35945845</guid><pubDate>Mon, 15 May 2023 10:03:04 GMT</pubDate><description>&lt;p&gt;Alibi: https://arxiv.org/abs/2108.12409 https://www.reddit.com/r/MachineLearning/comments/ww146r/d_a...&lt;/p&gt;&lt;p&gt;&lt;a href="https://hackerpaper.kaipfister.de/p/2108.12409/"&gt;Paper and discussion history&lt;/a&gt;. A mention is not an endorsement.&lt;/p&gt;</description><category>cs.CL</category></item><item><title>Train Short, Test Long: Attention with Linear Biases Enables Input Length Extrapolation — mentioned by ofirpress</title><link>https://news.ycombinator.com/item?id=35936031</link><guid isPermaLink="false">urn:hackerpapers:mention:2108.12409:35936031</guid><pubDate>Sun, 14 May 2023 07:15:29 GMT</pubDate><description>&lt;p&gt;The ALiBi paper shows that our method beats the sinusoidal PE you refer to across many benchmarks. https://arxiv.org/abs/2108.12409&lt;/p&gt;&lt;p&gt;&lt;a href="https://hackerpaper.kaipfister.de/p/2108.12409/"&gt;Paper and discussion history&lt;/a&gt;. A mention is not an endorsement.&lt;/p&gt;</description><category>cs.CL</category></item><item><title>Train Short, Test Long: Attention with Linear Biases Enables Input Length Extrapolation — HN submission</title><link>https://news.ycombinator.com/item?id=35934700</link><guid isPermaLink="false">urn:hackerpapers:submission:2108.12409:35934700</guid><pubDate>Sun, 14 May 2023 02:06:06 GMT</pubDate><description>&lt;p&gt;Attention with Linear Biases (ALiBi)&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;58 points; 15 discussion replies on HN. &lt;a href="https://hackerpaper.kaipfister.de/p/2108.12409/"&gt;Paper and source history&lt;/a&gt;. A submission is not an endorsement.&lt;/p&gt;</description><category>cs.CL</category></item><item><title>Train Short, Test Long: Attention with Linear Biases Enables Input Length Extrapolation — mentioned by sanxiyn</title><link>https://news.ycombinator.com/item?id=35910175</link><guid isPermaLink="false">urn:hackerpapers:mention:2108.12409:35910175</guid><pubDate>Fri, 12 May 2023 00:14:04 GMT</pubDate><description>&lt;p&gt;No. As far as I know, they haven&amp;#x27;t said anything about this. Neither did OpenAI about gpt-4-32k. MosaicML did say something about MPT-7B-StoryWriter-65k+: https://www.mosaicml.com/blog/mpt-7b. They are using ALiBi (Attention with Linear Biases): https://arxiv.org/abs/2108.12409. I think OpenAI and Anthropic are using ALiBi or their own proprietary advances. Both seem possible.&lt;/p&gt;&lt;p&gt;&lt;a href="https://hackerpaper.kaipfister.de/p/2108.12409/"&gt;Paper and discussion history&lt;/a&gt;. A mention is not an endorsement.&lt;/p&gt;</description><category>cs.CL</category></item><item><title>Train Short, Test Long: Attention with Linear Biases Enables Input Length Extrapolation — mentioned by ofirpress</title><link>https://news.ycombinator.com/item?id=35807172</link><guid isPermaLink="false">urn:hackerpapers:mention:2108.12409:35807172</guid><pubDate>Wed, 03 May 2023 20:14:59 GMT</pubDate><description>&lt;p&gt;(I wrote ALiBi) You can read the paper here https://arxiv.org/abs/2108.12409 While intuitively it does seem like ALiBi would make it hard for the model to attend to things that are far away, in many scenarios we&amp;#x27;ve tested with different models trained on different datasets, ALiBi always performs better than sinusoidal, rotary, and other embedding types, even when we&amp;#x27;re not using it to extrapolate to longer sequence lengths. These findings have been confirmed by others, including by the BLOOM open source LM project.&lt;/p&gt;&lt;p&gt;&lt;a href="https://hackerpaper.kaipfister.de/p/2108.12409/"&gt;Paper and discussion history&lt;/a&gt;. A mention is not an endorsement.&lt;/p&gt;</description><category>cs.CL</category></item></channel></rss>
