← Latest papers
💬 NLP

Theory of Mind in Action: The Instruction Inference Task in Dynamic Human-Agent Collaboration

This paper introduces the Instruction Inference Task and Tomcat, an LLM-based agent designed to exercise Theory of Mind by inferring unspoken intentions from ambiguous instructions, demonstrating that variants utilizing few-shot chain-of-thought reasoning achieve human-comparable performance in dynamic human-agent collaboration.

Original authors: Fardin Saad, Pradeep K. Murukannaiah, Munindar P. Singh

Published 2026-04-17
📖 5 min read🧠 Deep dive

Original authors: Fardin Saad, Pradeep K. Murukannaiah, Munindar P. Singh

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you are playing a video game with a robot partner. You point at a red door and say, "Can you get that?"

A traditional robot might freeze. It hears "get that," but it doesn't know what "that" is. Is it the door? The key behind it? The treasure inside? Because it takes your words literally, it might try to pick up the door itself, fail, and the game ends.

A human partner, however, uses "Theory of Mind." They think: "Oh, he's pointing at the red door, which is locked. He probably wants the red key to open it so we can get the gem behind it." They understand your intent, not just your words.

This paper is about teaching Large Language Models (AI like the one you're talking to right now) to be that smart human partner, even when you give them vague or incomplete instructions.

The Problem: The "Literal Robot" vs. The "Mind Reader"

The researchers found that while AI is great at writing poems and coding, it often struggles in real-time teamwork when instructions are fuzzy. If you don't spell out every single detail, the AI often gets lost because it lacks the ability to guess what you are thinking.

To test this, they created a game called "Doors, Keys, and Gems."

  • The Goal: Collect a shiny gem.
  • The Catch: The path is blocked by locked doors.
  • The Task: You (the human) give instructions to the AI (the agent). Sometimes you say, "Get the key" (clear). Sometimes you say, "Can you get that?" while walking toward a specific door (vague).

The AI has to figure out:

  1. Which key do you actually want?
  2. What is your ultimate goal (the gem)?
  3. What is the most efficient path to get it?

The Solution: "Tomcat" and Two Ways of Thinking

The researchers built an AI agent named Tomcat. They tested two different ways to help Tomcat think:

  1. The "Common Sense" Approach (CP):

    • Analogy: Imagine giving Tomcat a rulebook that says, "If someone walks toward a locked door, they probably want the key."
    • How it works: The AI relies on general knowledge and basic logic.
    • Result: It's okay, but often gets confused by tricky situations. It's like a student who memorized the textbook but hasn't seen a real exam.
  2. The "Show, Don't Just Tell" Approach (Fs-CoT):

    • Analogy: Imagine giving Tomcat a study guide with 7 solved examples. "Here is a picture of a person walking to a red door. Here is what they said. Here is exactly what the robot did to help them."
    • How it works: This is called Few-Shot Chain-of-Thought. The AI doesn't just guess; it looks at the examples and mimics the reasoning process step-by-step. It learns to "think out loud" before acting.
    • Result: This was the magic sauce. By seeing how to solve similar problems, the AI started to "get it."

The Experiment: AI vs. Humans

They put 52 real humans and several versions of Tomcat (powered by different AI brains like GPT-4o, DeepSeek-R1, and Gemma) to the test.

  • The Humans: Did a great job. They naturally used "Theory of Mind" to guess what the other person wanted.
  • The "Common Sense" AI: Struggled. It often took instructions too literally and failed to plan ahead.
  • The "Show, Don't Just Tell" AI (Fs-CoT): This is the big win.
    • The GPT-4o and DeepSeek-R1 versions of Tomcat, when given the "study guide" (Fs-CoT), performed just as well as the humans.
    • They could look at a vague instruction like "Get that," see the human walking toward a red door, and correctly infer: "Okay, I need to grab the red key, bring it to them, and then they can unlock the door to get the gem."

Why Did Some AI Fail?

Not all AI brains are created equal.

  • GPT-4o and DeepSeek-R1: These are like smart students who, once shown the examples, could apply the logic perfectly. They became excellent teammates.
  • Gemma-3-27B: This model is smaller (like a student with a smaller brain capacity). Even with the study guide, it struggled to connect all the dots for complex, multi-step plans. It could follow simple instructions but got lost in the "big picture."

The Big Takeaway

The paper proves that AI can learn to be a good teammate, but it needs the right kind of training.

  • Don't just give the AI rules.
  • Give it examples of how to think.

When you show an AI how to reason through a problem (by showing it examples of successful teamwork), it stops being a literal robot and starts acting like a partner who understands your unspoken intentions. This is a huge step toward having AI assistants that can work with us in messy, real-world situations where we don't always speak perfectly.

In short: If you want an AI to understand you, don't just tell it what to do. Show it how you solved a similar problem before, and it will learn to read your mind.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →