paper-with-me

홈 › Papers

Token Weighting for Long-Range Language Modeling

2025-03-12 · Falko Helm, Nico Daheim, Iryna Gurevych

Many applications of large language models (LLMs) require long-context understanding, but models continue to struggle with such tasks. We hypothesize that conventional next-token prediction training could contribute to this, because each token is assigned equal weight. Yet, intuitively, the amount of context needed to predict the next token accurately varies greatly across different data. To reflect this, we propose various novel token-weighting schemes that assign different weights to each training token in the loss, thereby generalizing existing works. For this, we categorize token-weighting methods using a two-step framework which compares the confidences of a long-context and short-context model to score tokens. We evaluate all methods on multiple long-context understanding tasks and show that non-uniform loss weights are helpful to improve the long-context abilities of LLMs. Different short-context models can be used effectively for token scoring, including models that are much smaller than the long-context model that is trained. All in all, this work contributes to a better understanding of the trade-offs long-context language modeling faces and provides guidelines for model steering via loss-weighting based on empirical evidence. The code can be found on Github.

📄 PDF Abstract BibTeX arXiv:2503.09202

Code (1)

ukplab/naacl2025-token-weighting 공식 구현 pytorch

Tasks

Language ModelingLanguage ModellingLong-Context Understanding

Similar Papers 제목 키워드 기반

Speech Token Prediction via Compressed-to-fine Language Modeling for Speech Generation

2025-05-30 · Wenrui Liu, Qian Chen, Wen Wang, Yafeng Chen 외

Neural audio codecs, used as speech tokenizers, have demonstrated remarkable potential in the field of speech generation. However, to ensure high-fidelity audio reconstruction, neural audio codecs typically encode audio …

Language ModelingLanguage Modellingtext-to-speechText to Speech

TRAMS: Training-free Memory Selection for Long-range Language Modeling

2023-10-24 · Haofei Yu, Cunxiang Wang, Yue Zhang, Wei Bi

The Transformer architecture is crucial for numerous AI models, but it still faces challenges in long-range language modeling. Though several specific transformer architectures have been designed to tackle issues of long…

Language ModelingLanguage Modelling

Token Merging via Spatiotemporal Information Mining for Surgical Video Understanding

2025-09-28 · Xixi Jiang, Chen Yang, Dong Zhang, Pingcheng Dong 외 arxiv

Vision Transformer models have shown impressive effectiveness in the surgical video understanding tasks through long-range dependency modeling. However, current methods suffer from prohibitive computational costs due to …

$π$-Attention: Online Efficient Sparse Transformers for Long-Context Modeling

2025-11-12 · Dong Liu, Yanxuan Yu arxiv

Sparse attention is crucial in long-context Transformers, which restricts each token to a limited neighborhood and thereby reduces the quadratic cost of full self-attention. Local windows capture nearby context effective…

Long-range modeling

Caduceus: Bi-Directional Equivariant Long-Range DNA Sequence Modeling

2024-03-05 · Yair Schiff, Chia-Hsiang Kao, Aaron Gokaslan, Tri Dao 외

Large-scale sequence modeling has sparked rapid advances that now extend into biology and genomics. However, modeling genomic sequences introduces challenges such as the need to model long-range token interactions, the e…

Mamba