Rebalancing Token Importance in Language Models with TF-IDF Weighted Cross-Entropy Loss
Zhijian Li, Stefan Larson, Kevin Leach
Key points
From the paper's conclusion- To address this, we present an information-weighted cross-entropy loss that rescales token-level contributions using TF-IDF statistics, emphasizing semantically informative tokens while down-weighting ubiquitous ones.
Abstract
Large language models are typically trained under uniform token weighting, which allows frequent and low-information tokens to dominate learning and can increase the tendency to memorize surface-level text spans. To address this, we present an information-weighted cross-entropy loss that rescales token-level contributions using TF-IDF statistics, emphasizing semantically informative tokens while down-weighting ubiquitous ones. Experiments on five decoder-only LLMs ranging from 1.1B to 13B parameters show consistent reductions in memorized substring length while preserving perplexity and downstream task performance. Under LoRA fine-tuning, TF-IDF reduces average substring memorization length by 14% across all five models. Under full-weight fine-tuning on TinyLLaMA 1.1B, the reduction reaches 58%. Our approach is architecture-agnostic and can be incorporated into existing training pipelines with less than 3% computational overhead, offering a lightweight and principled way to mitigate memorization without disrupting standard training dynamics.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- A Deafening Silence: Catastrophic Forgetting Lives in the Output Embeddings of Tokens the Data Never SpeaksarXiv · 2026
- Benefit and Cost of Random-Token Replacement under Repeated Data: A Known-Entropy Decomposition and Evidence from Ten Real CorporaarXiv · 2026
- TDLM: Adaptive Temporal Integration for Diffusion Language ModelsarXiv · 2026
- Prior Aware Memorization: An Efficient Metric for Distinguishing Memorization from Generalization in Large Language ModelsOpen MIND · 2026
- Training-Free Character-Length Control in Summarization with Diffusion Language ModelsarXiv · 2026
- To Each Language Its Tokenizer: Modular Tokenizers for Efficient Multilingual LLMsarXiv · 2026