Saved in:
Bibliographic Details
Main Author: Kim, Hyunjun
Format: Preprint
Published: 2026
Subjects:
Online Access:https://arxiv.org/abs/2601.11585
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866911381743206400
author Kim, Hyunjun
author_facet Kim, Hyunjun
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2601_11585
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle Entropic Context Shaping: Information-Theoretic Filtering for Context-Aware LLM Agents
Kim, Hyunjun
Computation and Language
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.
title Entropic Context Shaping: Information-Theoretic Filtering for Context-Aware LLM Agents
topic Computation and Language
url https://arxiv.org/abs/2601.11585