Active Inference as Context Acquisition for AI Agents
Abstract
Interactive AI agents must acquire the right context as efficiently as possible. When a user omits a constraint, preference, file, or task variable, an agent can proceed with a default assumption or spend tokens on a clarifying question, retrieval call, tool call, or prompt trial. We formulate this tradeoff as active inference for context acquisition. An inner inference step updates beliefs over a latent task state, and an outer decision selects the next context action, task action, or stop action to minimize expected free energy under cost. In deterministic settings, the epistemic term reduces to expected information gain, optionally normalized by token cost. We instantiate the framework in Optimal Question Asking (OQA), with exact posteriors and a dynamic programming oracle, and benchmark frontier language models on binary and multiway categorical tasks from 25 to 300 candidates. We also study clarification before generation and automated prompt optimization under token budgets. The formulation is model-agnostic and views active inference as a design principle for the context-acquisition layer of AI agents.
Create a lesson
Metadata
- Categories
- cs.AI, cs.CL, cs.LG
Related papers
EgoUseBench: Benchmarking Computer-Use Agents under Evolving First-Person Contexts
Shared title terminologycs.AIYurun Chen, Biao Yi, Qihang Yu et al.
Emotion in an active inference model of human driving
Shared title terminologycs.AIJulian F. Schumann, Johan Engström, Ran Wei et al.
Less Context, Better Agents: Efficient Context Engineering for Long-Horizon Tool-Using LLM Agents
Shared title terminologycs.AIAbhilasha Lodha, Mahsa Pahlavikhah Varnosfaderani, Abir Chakraborty et al.
From Rigid to Dynamic: Entropy-Guided Adaptive Inference for Long-Context LLMs
Shared title terminologycs.AIZhanchao Xu, Haoyang Li, Qingfa Xiao et al.
Quantitative Promise Theory: Intentionality and Inference in Autonomous Agents
Shared title terminologycs.AIMark Burgess
TASK Memory: Beyond Text-Only Memory with Activation Steering and Knowledge Editing against Memory Hallucination
Shared title terminologycs.AIJinkun Zhao, Wenjun Wu