Abstract
Effective teaching requires an understanding of the student's current knowledge, goals, and limitations. While humans naturally employ Theory of Mind (ToM) to adapt their instruction, most artificial agents remain learner-agnostic, providing information without regard for the recipient's internal state. This paper presents a framework for "ToM-teachers" that use Bayesian inference to model a learner's hidden attributes. By optimizing a utility function that balances the learner's predicted reward against teaching costs, these agents provide concise, high-impact demonstrations. Our results in complex gridworld environments show that ToM-based strategies significantly outperform traditional baselines, especially when learners face sensory constraints.
Introduction
In human pedagogy, a teacher's strategy is rarely static. A physics professor explains orbital mechanics differently to a primary school student than to a doctoral candidate. This adaptation is driven by Theory of Mind—the cognitive ability to attribute mental states to others. In the context of Artificial Intelligence, teaching typically involves providing demonstrations to a learning agent. However, most current teaching systems suffer from two main inefficiencies: over-information, where redundant data wastes resources, and under-information, where the teacher fails to address the specific gaps in the learner's knowledge.
To address these issues, we propose a framework for rational teaching agents that treat the teaching process as a communication problem. By inferring the learner's goals and sensory capacities, the teacher can select the most "useful" information to share.
Methodology: The ToM-Teacher Framework
The problem is formalized as a Goal-Conditioned Partially Observable Markov Decision Problem (GC-POMDP). The teacher's objective is to select a demonstration $d$ from a set $\mathcal{D}$ that maximizes the expected utility for a specific learner.
The Teaching Workflow
The process unfolds in three distinct phases:
- Observation Phase: The teacher observes the learner's behavior in an initial environment ($M^{obs}$). This provides raw data on how the learner moves and interacts with objects.
- Inference Phase: Using Bayesian Inference, the teacher updates its belief about the learner's internal state $\theta$, which includes their intended goal and their sensory capacity (e.g., the size of their receptive field).
- Selection and Evaluation: The teacher simulates how a learner with the inferred state $\theta$ would perform after seeing various demonstrations. It then selects the demonstration $d^*$ that maximizes utility: $$\text{Utility} = \text{Learner's Predicted Reward} - \text{Teaching Cost}$$
The framework distinguishes between an Aligned ToM-teacher, which has perfect knowledge of the learner's decision-making policy, and a Rational ToM-teacher, which assumes the learner follows a generally rational Boltzmann policy.
Experimental Setup
The framework was evaluated in two environments:
- MiniGrid: A navigation task where agents must collect keys to unlock doors. The "observation" phase occurs in a small $11 \times 11$ room, while the "demonstration" phase takes place in a complex $33 \times 33$ multi-room layout.
- Musical Environment: A 1D grid of 20 buttons where only a subset produces music. This setup tests the teacher's ability to adapt to a learner's prior beliefs about the world.
Key Results and Insights
The primary finding is that ToM-equipped teachers are significantly more efficient than learner-agnostic baselines.
The Impact of Sensory Capacity
A critical aspect of the teacher's inference is the learner's "receptive field." As shown in the experimental results, learners with a limited field of vision (e.g., size 3 or 5) require much more targeted demonstrations. ToM-teachers successfully identify these limitations and provide the necessary guidance, achieving mean utilities close to the "Omniscient" upper bound. In contrast, baseline teachers often provide demonstrations that the learner cannot even see or interpret correctly, resulting in near-zero utility.
The Rationality Trap and Alignment
While the Rational ToM-teacher performs well with sufficient data, it is susceptible to the "Rationality Trap." If the teacher only observes a short trajectory (e.g., 10 steps), it may misinterpret a learner's exploratory actions as goal-directed behavior. This leads to "hallucinated" inferences. The Aligned ToM-teacher, which understands the learner's exact policy, remains much more robust in these low-data scenarios.
Balancing Cost and Information
By incorporating a teaching cost proportional to the length of the demonstration, the framework encourages parsimony. This mirrors human instruction, where concise explanations are often more effective and build greater trust than exhaustive, redundant data.
Conclusion and Future Work
This research demonstrates that modeling the "mind" of a learner is essential for efficient AI-to-AI and AI-to-human teaching. While the current model operates in discrete spaces with pre-defined demonstrations, future work will focus on scaling these methods to continuous environments and using Reinforcement Learning to generate custom, novel demonstrations. Moving toward "social machines" requires agents that don't just see what we do, but understand why we do it and what we are missing.
Summary updated