Inverse POMDP: Inferring What You Think from What You Do
Abstract
Inferring the internal mental models of agents from their behavior is a central challenge in cognitive science and artificial intelligence. We present Inverse Rational Control (IRC), a framework that simultaneously reconstructs an agent's subjective rewards, internal world dynamics, and latent beliefs from behavioral data. By modeling agents as operating within a Partially Observable Markov Decision Process (POMDP), IRC demonstrates that seemingly suboptimal actions can be interpreted as rational decisions based on incorrect internal models. We validate this approach using a simulated foraging task, showing that IRC can accurately recover hidden parameters and track an agent's evolving confidence.
Introduction
When observing an agent—whether an animal or a robot—performing a task, we often encounter behavior that appears suboptimal. A critical question arises: is the agent making errors, or is it acting rationally according to a flawed understanding of its environment? Traditional approaches like Inverse Reinforcement Learning (IRL) and Inverse Optimal Control (IOC) typically solve only part of this puzzle, often assuming prior knowledge of either the agent's rewards or the world's dynamics. However, real-world agents frequently face partial observability and may hold incorrect assumptions about environmental physics. IRC addresses this gap by inferring the entire internal "mental" model—rewards, dynamics, and beliefs—simultaneously from behavioral observations.
Methods
The IRC framework conceptualizes agent behavior through the lens of a POMDP. Because the agent cannot directly observe the true state of the world, it maintains a "belief"—a probability distribution over possible states. This transforms the problem into a Belief MDP, where the agent's state is defined by its internal level of certainty.
To solve the inverse problem of mapping actions back to the internal model, IRC utilizes an Expectation-Maximization (EM) algorithm. In the E-step, the framework estimates the agent's hidden belief states. In the M-step, it updates the parameters of the internal model (rewards and dynamics) to maximize the likelihood of the observed actions. A softmax policy is employed to make the model differentiable, allowing for fine-tuning via gradient descent.
Experimental Setup
The framework was validated using a simulated naturalistic foraging task. In this "Two-Box" task, an agent moves between two locations where rewards appear and disappear according to a stochastic "telegraph process." The agent receives ambiguous sensory cues (color changes) that provide noisy information about reward availability. To test the robustness of IRC, we simulated a "mistaken" agent with intentionally incorrect internal parameters, such as overestimating reward appearance rates. The dataset comprised 5,000 time points of the agent's actions and sensory inputs.
Results
The EM algorithm successfully converged to the "mistaken" parameters of the simulated agent, effectively "reading its mind" by recovering its subjective internal model.
Key findings include:
- Parameter Recovery: IRC accurately identified the agent's internal costs and reward expectations, even when they deviated from reality.
- Belief Tracking: Inferred posterior beliefs showed a strong correlation with the agent's actual internal confidence levels.
- Compensation Effects: IRC successfully untangled overlapping subjective factors, such as distinguishing between an agent's high reward expectation and its internal action costs.
- Behavioral Cloning: Agents instantiated with the inferred parameters exhibited behavior nearly identical to the original "mistaken" agent.
Discussion and Limitations
IRC provides a powerful method for identifying the latent variables driving behavior. However, the model currently requires significant data (approx. 5,000 time points), which may be difficult to obtain in some biological experiments. Additionally, the use of discretized belief states for computational tractability may need to be expanded to continuous, high-dimensional representations using neural networks in future work. The ultimate goal is to validate IRC against neural recordings, potentially identifying the biological substrates of inferred internal beliefs.
Conclusion
Inverse Rational Control offers a principled way to understand "suboptimal" behavior as rational under subjective constraints. By treating beliefs as latent variables, it opens new avenues for studying decision-making in both artificial and biological systems.
Summary updated