paper-with-me

홈 › Papers

EndPrompt: Efficient Long-Context Extension via Terminal Anchoring

2026-05-14 · Han Tian, Luxuan Chen, Xinran Chen, Rui Kong, Fang Wang, Jiamin Chen, Jinman Zhao, Yuchen Li, Jiashu Zhao, Shuaiqiang Wang, Haoyi Xiong, Linghe Kong, Dawei Yin arxiv

Extending the context window of large language models typically requires training on sequences at the target length, incurring quadratic memory and computational costs that make long-context adaptation expensive and difficult to reproduce. We propose EndPrompt, a method that achieves effective context extension using only short training sequences. The core insight is that exposing a model to long-range relative positional distances does not require constructing full-length inputs: we preserve the original short context as an intact first segment and append a brief terminal prompt as a second segment, assigning it positional indices near the target context length. This two-segment construction introduces both local and long-range relative distances within a short physical sequence while maintaining the semantic continuity of the training text--a property absent in chunk-based simulation approaches that split contiguous context. We provide a theoretical analysis grounded in Rotary Position Embedding and the Bernstein inequality, showing that position interpolation induces a rigorous smoothness constraint over the attention function, with shared Transformer parameters further suppressing unstable extrapolation to unobserved intermediate distances. Applied to LLaMA-family models extending the context window from 8K to 64K, EndPrompt achieves an average RULER score of 76.03 and the highest average on LongBench, surpassing LCEG (72.24), LongLoRA (72.95), and full-length fine-tuning (69.23) while requiring substantially less computation. These results demonstrate that long-context generalization can be induced from sparse positional supervision, challenging the prevailing assumption that dense long-sequence training is necessary for reliable context-window extension. The code is available at https://github.com/clx1415926/EndPrompt.

📄 PDF Abstract BibTeX arXiv:2605.14589

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

Elastic-dLLM: Position Preserving Context Compression and Augmentation of Diffusion LLMs

2026-05-18 · Junyi Wu, Tianchen Zhao, Shaoqiu Zhang, Linfeng Zhang 외 arxiv

Unlike autoregressive models, which generate one token at a time, dLLMs denoise a chunk of [MASK] tokens jointly and sample one or more tokens per step; despite enabling parallel decoding, this process incurs substantial…

Test-Time Noise Guided Adaptation for Realistic Autoregressive Video Generation

2026-07-17 · Dimitrios Karageorgiou, Symeon Papadopoulos, Ioannis Kompatsiaris, Efstratios Gavves arxiv

Autoregressive video diffusion models have enabled the generation of arbitrarily long videos by removing conditioning on future frames, thus greatly improving computational efficiency. Yet, they suffer from error accumul…

Computational EfficiencyVideo Generation

A Self-Evolving Framework for Efficient Terminal Agents via Observational Context Compression

2026-04-21 · Jincheng Ren, Siwei Wu, Yizhi Li, Kang Zhu 외 arxiv

As terminal agents scale to long-horizon, multi-turn workflows, a key bottleneck is not merely limited context length, but the accumulation of noisy terminal observations in the interaction history. Retaining raw observa…

Long-Horizon-Terminal-Bench: Testing the Limits of Agents on Long-Horizon Terminal Tasks with Dense Reward-Based Grading

2026-07-09 · Zongxia Li, Zhongzhi Li, Yucheng Shi, Ruhan Wang 외 arxiv

AI agents have become capable of autonomously completing short, well-specified tasks. However, existing terminal benchmarks largely focus on simple problems that finish within minutes and are evaluated only by their fina…

Semantic Anchoring in Agentic Memory: Leveraging Linguistic Structures for Persistent Conversational Context

2025-08-18 · Maitreyi Chatterjee, Devansh Agarwal arxiv

Large Language Models (LLMs) have demonstrated impressive fluency and task competence in conversational settings. However, their effectiveness in multi-session and long-term interactions is hindered by limited memory per…

Coreference ResolutionSemantic SimilarityDependency Parsing