Entropic Context Shaping: Information-Theoretic Filtering for Context-Aware LLM Agents
On the map: LLM agents and tool use → Agent memory systems
Abstract (arXiv)
Context engineering for large language model (LLM) agents requires distinguishing pragmatically useful information from misleading distractors. We introduce Entropic Context Shaping (ECS), an information-theoretic framework that measures context utility via the shift in the model's answer distribution toward the correct answer. Unlike lexical similarity methods that rely on word overlap, ECS captures pragmatic utility -- whether a passage actually helps answer the question. We formalize utility as the signed change in answer probability and provide theoretical analysis showing that task-irrelevant updates yield near-zero distribution shift. We evaluate on multi-turn context selection tasks using LongMemEval (session-level) and LoCoMo (turn-level) benchmarks. On fine-grained turn selection, ECS with Llama-3.1-8B achieves F1=0.265, a 71.83% relative improvement over TF-IDF (F1=0.154), demonstrating that pragmatic utility outperforms lexical similarity when precise context selection matters. Code and data are available in the supplementary materials.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Placed in Agent memory systems, one of 16 directions in LLM agents and tool use. Builds on 21 of its 27 references that are in the map. First posted on arXiv 1 Jan 2026.
Builds on
21 of 27 references.
Closest ancestors · 2
Same direction, newest first
- 2024A Survey on the Memory Mechanism of Large Language Model based Agents21 Apr
- 2024Evaluating Very Long-Term Conversational Memory of LLM Agents27 Feb
Other references · 19
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,297
- 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,170
- 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,695
- 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,944
- 2023Reflexion: Language Agents with Verbal Reinforcement Learningcited by 4,276
- 2020Dense Passage Retrieval for Open-Domain Question Answeringcited by 3,824
- 2023Generative Agents: Interactive Simulacra of Human Behaviorcited by 3,568
- 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,455
- 2023Efficient Streaming Language Models with Attention Sinkscited by 2,186
- 2020REALM: Retrieval-Augmented Language Model Pre-Trainingcited by 2,141
- 2023Self-RAG: Learning to Retrieve, Generate, and Critique through Self-Reflectioncited by 1,839
- 2021Improving language models by retrieving from trillions of tokenscited by 1,293
7 more
- 2024LongMemEval: Benchmarking Chat Assistants on Long-Term Interactive Memorycited by 707
- 2023LongLLMLingua: Accelerating and Enhancing LLMs in Long Context Scenarios via Prompt Compressioncited by 453
- 2021Understanding Dataset Difficulty with V-Usable Informationcited by 291
- 2020A Theory of Usable Information Under Computational Constraintscited by 162
- 2024Enhancing Noise Robustness of Retrieval-Augmented Language Models with Adaptive Adversarial Trainingcited by 89
- 2023RECALL: A Benchmark for LLMs Robustness against External Counterfactual Knowledgecited by 51
- 2023Large Language Models are Fixated by Red Herrings: Exploring Creative Problem Solving and Einstellung Effect using the Only Connect Wall Datasetcited by 17
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2025A Survey of Context Engineering for Large Language Models
- 2026Mitigating Context Interference for Reliable and Efficient Search Agents
- 2026PACMS: Submodular Context Selection as a Pluggable Engine for LLM Agents
- 2026The Context Gathering Decision Process: A POMDP Framework for Agentic Search
- 2026Decision-Aware Memory Cards: Counterfactual-Inspired Context Selection and Compression for Tool-Using LLM Agents
- 2025Haystack Engineering: Context Engineering for Heterogeneous and Agentic Long-Context Evaluation
- 2025ACON: Optimizing Context Compression for Long-horizon LLM Agents
- 2025Graph of Agents: Principled Long Context Modeling by Emergent Multi-Agent Collaboration