mlsanityData to 7 Oct 2026

TRIM: Token Reduction and Inference Modeling for Cost-Effective Language Generation

arXiv 2412.07682 ↗First posted 10 Dec 2024cs.CLcited by 2

On the map: Efficient LLM inference and serving → Serving systems and request scheduling

Abstract (arXiv)

The high inference cost of Large Language Models (LLMs) poses challenges, especially for tasks requiring lengthy outputs. However, natural language often contains redundancy, which presents an opportunity for optimization. We have observed that LLMs can generate distilled language (i.e., concise outputs that retain essential meaning) when prompted appropriately. We propose TRIM, a pipeline for saving computational cost in which the LLM omits a predefined set of semantically irrelevant and easily inferable words based on the context during inference. Then, a specifically trained smaller language model with lower inference cost reconstructs the distilled answer into the ideal answer. Our experiments show promising results, particularly on the proposed NaLDA evaluation dataset focused on the reconstruction task, with 19.4% saved tokens on average for GPT-4o and only a tiny decrease in evaluation metrics. This suggests that the approach can effectively balance efficiency and accuracy in language processing tasks.

Key facts. Cited by 2 papers in the map (data through 7 Oct 2026). Placed in Serving systems and request scheduling, one of 12 directions in Efficient LLM inference and serving. Builds on 17 of its 45 references that are in the map. First posted on arXiv 10 Dec 2024.

Builds on

17 of 45 references.

Closest ancestors · 1

Same direction, newest first

  1. 2023Towards Efficient Generative Large Language Model Serving: A Survey from Algorithms to Systems23 Dec

Other references · 16

  1. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  2. 2020Language Models are Few-Shot Learnerscited by 32,199
  3. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
  4. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
  5. 2019BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Comprehensioncited by 5,874
  6. 2018A Call for Clarity in Reporting BLEU Scorescited by 1,790
  7. 2018Neural Network Acceptability Judgmentscited by 952
  8. 2023Splitwise: Efficient generative LLM inference using phase splittingcited by 536
  9. 2024LLMLingua-2: Data Distillation for Efficient and Faithful Task-Agnostic Prompt Compressioncited by 343
  10. 2023The Unlocking Spell on Base LLMs: Rethinking Alignment via In-Context Learningcited by 251
  11. 2021Sustainable AI: Environmental Implications, Challenges and Opportunitiescited by 242
  12. 2020Enabling Language Models to Fill in the Blankscited by 121
4 more
  1. 2024LazyLLM: Dynamic Token Pruning for Efficient Long Context LLM Inferencecited by 70
  2. 2024Prompt Compression with Context-Aware Sentence Encoding for Fast and Improved LLM Inferencecited by 51
  3. 2019Probing What Different NLP Tasks Teach Machines about Function Word Comprehensioncited by 44
  4. 2023Discrete Prompt Compression with Reinforcement Learningcited by 42

Built on by

Cited by year

Citing papers per year: 2025: 2.

2 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2025PromptDistill: Query-based Selective Token Retention in Intermediate Layers for Efficient Large Language Model Inference
  2. 2026CAVEWOMAN: How Large Language Models Behave Under Linguistic Input and Output Compression
  3. 2024A Survey on Efficient Inference for Large Language Models
  4. 2023Sorted LLaMA: Unlocking the Potential of Intermediate Layers of Large Language Models for Dynamic Inference
  5. 2024SepLLM: Accelerate Large Language Models by Compressing One Segment into One Separator
  6. 2024Inference acceleration for large language models using "stairs" assisted greedy generation
  7. 2024Large Language Model Inference Acceleration: A Comprehensive Hardware Perspective
  8. 2023Batch Prompting: Efficient Inference with Large Language Model APIs