mlsanityData to 7 Oct 2026

Parse Trees Guided LLM Prompt Compression

arXiv 2409.15395 ↗First posted 23 Sep 2024cs.CL cs.AIcited by 6

On the map: Efficient LLM inference and serving → Prompt and context compression

Abstract (arXiv)

Offering rich contexts to Large Language Models (LLMs) has shown to boost the performance in various tasks, but the resulting longer prompt would increase the computational cost and might exceed the input limit of LLMs. Recently, some prompt compression methods have been suggested to shorten the length of prompts by using language models to generate shorter prompts or by developing computational models to select important parts of original prompt. The generative compression methods would suffer from issues like hallucination, while the selective compression methods have not involved linguistic rules and overlook the global structure of prompt. To this end, we propose a novel selective compression method called PartPrompt. It first obtains a parse tree for each sentence based on linguistic rules, and calculates local information entropy for each node in a parse tree. These local parse trees are then organized into a global tree according to the hierarchical structure such as the dependency of sentences, paragraphs, and sections. After that, the root-ward propagation and leaf-ward propagation are proposed to adjust node values over the global tree. Finally, a recursive algorithm is developed to prune the global tree based on the adjusted node values. The experiments show that PartPrompt receives the state-of-the-art performance across various datasets, metrics, compression ratios, and target LLMs for inference. The in-depth ablation studies confirm the effectiveness of designs in PartPrompt, and other additional experiments also demonstrate its superiority in terms of the coherence of compressed prompts and in the extreme long prompt scenario.

Key facts. Cited by 6 papers in the map (data through 7 Oct 2026). Placed in Prompt and context compression, one of 12 directions in Efficient LLM inference and serving. Builds on 34 of its 57 references that are in the map. First posted on arXiv 23 Sep 2024.

Builds on

34 of 57 references.

Closest ancestors · 3

Same direction, newest first

  1. 2024LLMLingua-2: Data Distillation for Efficient and Faithful Task-Agnostic Prompt Compression19 Mar
  2. 2023LongLLMLingua: Accelerating and Enhancing LLMs in Long Context Scenarios via Prompt Compression10 Oct
  3. 2023Discrete Prompt Compression with Reinforcement Learning17 Aug

Other references · 31

  1. 2017Attention Is All You Needcited by 59,932
  2. 2020Language Models are Few-Shot Learnerscited by 32,199
  3. 2023GPT-4 Technical Reportcited by 18,132
  4. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
  5. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
  6. 2021Training Verifiers to Solve Math Word Problemscited by 9,743
  7. 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,160
  8. 2020Scaling Laws for Neural Language Modelscited by 6,411
  9. 2019BERTScore: Evaluating Text Generation with BERTcited by 5,462
  10. 2018HotpotQA: A Dataset for Diverse, Explainable Multi-hop Question Answeringcited by 3,686
  11. 2022Emergent Abilities of Large Language Modelscited by 2,483
  12. 2024Qwen2 Technical Reportcited by 2,076
19 more
  1. 2022Survey of Hallucination in Natural Language Generationcited by 2,056
  2. 2024Mixtral of Expertscited by 1,785
  3. 2023LongBench: A Bilingual, Multitask Benchmark for Long Context Understandingcited by 1,378
  4. 2024RULER: What's the Real Context Size of Your Long-Context Language Models?cited by 1,270
  5. 2022Automatic Chain of Thought Prompting in Large Language Modelscited by 684
  6. 2024DeepSeek LLM: Scaling Open-Source Language Models with Longtermismcited by 621
  7. 2021CodeNet: A Large-Scale AI for Code Dataset for Learning a Diversity of Coding Taskscited by 199
  8. 2023Compressing Context to Enhance Inference Efficiency of Large Language Modelscited by 185
  9. 2017Natural Language Processing: State of The Art, Current Trends and Challengescited by 114
  10. 2023Chain-of-Thought Hub: A Continuous Effort to Measure Large Language Models' Reasoning Performancecited by 102
  11. 2019Learning to Compose and Reason with Language Tree Structures for Visual Groundingcited by 98
  12. 2024Learning to Compress Prompt in Natural Language Formatscited by 54
  13. 2022DiscoScore: Evaluating Text Generation with BERT and Discourse Coherencecited by 35
  14. 2023Leveraging Structured Information for Explainable Multi-hop Question Answering and Reasoningcited by 22
  15. 2023Semantic Compression With Large Language Modelscited by 17
  16. 2018Interpretable Visual Question Answering by Reasoning on Dependency Treescited by 15
  17. 2020SG-Net: Syntax Guided Transformer for Language Representationcited by 13
  18. 2021Text Compression-aided Transformer Encodingcited by 13
  19. 2024On the Role of Long-tail Knowledge in Retrieval Augmented Large Language Modelscited by 10

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 3; 2026: 3.

6 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2025An Empirical Study on Prompt Compression for Large Language Models
  2. 2023LLMLingua: Compressing Prompts for Accelerated Inference of Large Language Models
  3. 2025Understanding and Improving Information Preservation in Prompt Compression for LLMs
  4. 2026Lexical Prompt Compression for Large Language Models: A Training-Free, Deterministic Pipeline with Empirical Pareto Analysis Across Eleven Task Categories
  5. 2024Efficient Prompting Methods for Large Language Models: A Survey
  6. 2024Prompt Compression for Large Language Models: A Survey
  7. 2025Large-Scale Constraint Generation -- Can LLMs Parse Hundreds of Constraints?
  8. 2025Dynamic Compressing Prompts for Efficient Inference of Large Language Models