paper-with-me

Papers

YaRN: Efficient Context Window Extension of Large Language Models

2023-08-31 · Bowen Peng, Jeffrey Quesnelle, Honglu Fan, Enrico Shippole

Rotary Position Embeddings (RoPE) have been shown to effectively encode positional information in transformer-based language models. However, these models fail to generalize past the sequence length they were trained on. We present YaRN (Yet another RoPE extensioN method), a compute-efficient method to extend the context window of such models, requiring 10x less tokens and 2.5x less training steps than previous methods. Using YaRN, we show that LLaMA models can effectively utilize and extrapolate to context lengths much longer than their original pre-training would allow, while also surpassing previous the state-of-the-art at context window extension. In addition, we demonstrate that YaRN exhibits the capability to extrapolate beyond the limited context of a fine-tuning dataset. The models fine-tuned using YaRN has been made available and reproduced online up to 128k context length at https://github.com/jquesnelle/yarn

📄 PDF Abstract BibTeX arXiv:2309.00071

Code (10)

jquesnelle/scaled-rope 공식 구현 pytorch
jquesnelle/yarn 공식 구현 pytorch
nvidia/ruler pytorch
qwenlm/qwen2-vl pytorch
qwenlm/qwen2.5-coder
qwenlm/qwen2.5-vl pytorch
qwenlm/qwq
tigerresearch/tigerbot pytorch
tongyi-zhiwen/qwenlong-l1 pytorch
ymcui/chinese-llama-alpaca-2 pytorch

Tasks

Position

Methods 이 논문이 사용한 방법론

fail 설명 없음

Similar Papers 제목 키워드 기반

Extending Audio Context for Long-Form Understanding in Large Audio-Language Models

2025-10-17 · Yuatyong Chaichana, Pittawat Taveekitworachai, Warit Sirichotedumrong, Potsawee Manakul 외 arxiv

Large Audio-Language Models (LALMs) are often constrained by short audio context windows, even when their text backbones support long contexts, limiting long-form audio understanding. Prior work has introduced context-ex…

Extending LLMs' Context Window with 100 Samples

2024-01-13 · Yikai Zhang, Junlong Li, PengFei Liu

Large Language Models (LLMs) are known to have limited extrapolation ability beyond their pre-trained context window, constraining their application in downstream tasks with lengthy inputs. Recent studies have sought to …

Position

Effective Length Extrapolation via Dimension-Wise Positional Embeddings Manipulation

2025-04-26 · Yi Lu, Wanxu Zhao, Xin Zhou, Chenxin An 외

Large Language Models (LLMs) often struggle to process and generate coherent context when the number of input tokens exceeds the pre-trained length. Recent advancements in long-context extension have significantly expand…

8kPosition

Randomized YaRN Improves Length Generalization for Long-Context Reasoning

2026-06-22 · Manas Mehta, Fangcong Yin, Greg Durrett arxiv

Large language models (LLMs) are typically pretrained on short sequences and then extended to work on longer sequences with additional training. However, such LLMs still struggle to further generalize to very long sequen…

Coreference Resolution

Language Modeling with Learned Meta-Tokens

2025-09-18 · Alok N. Shah, Khush Gupta, Keshav Ramji, Pratik Chaudhari arxiv

While modern Transformer-based language models (LMs) have achieved major success in multi-task generalization, they often struggle to capture long-range dependencies within their context window. This work introduces a no…