mlsanityData to 7 Oct 2026

Modeling Others' Minds as Code

arXiv 2510.01272 ↗First posted 29 Sep 2025cs.AI cs.LGcited by 6

Not on the map. Why?

Abstract (arXiv)

Accurate prediction of human behavior is essential for robust and safe human-AI collaboration. However, existing approaches for modeling people are often data-hungry and brittle because they either make unrealistic assumptions about rationality or are too computationally demanding to adapt rapidly. Our key insight is that many everyday social interactions may follow predictable patterns; efficient "scripts" that minimize cognitive load for actors and observers, e.g., "wait for the green light, then go." We propose modeling these routines as behavioral programs instantiated in computer code rather than policies conditioned on beliefs and desires. We introduce ROTE, a novel algorithm that leverages both large language models (LLMs) for synthesizing a hypothesis space of behavioral programs, and probabilistic inference for reasoning about uncertainty over that space. We test ROTE in a suite of gridworld tasks and a large-scale embodied household simulator. ROTE predicts human and AI behaviors from sparse observations, outperforming competitive baselines -- including behavior cloning and LLM-based methods -- by as much as 50% in terms of in-sample accuracy and out-of-sample generalization. By treating action understanding as a program synthesis problem, ROTE opens a path for AI systems to efficiently and effectively predict human behavior in the real-world.

Key facts. Cited by 6 papers in the map (data through 7 Oct 2026). Builds on 52 of its 101 references that are in the map. First posted on arXiv 29 Sep 2025.

Builds on

52 of 101 references.

References · 52

  1. 2022Code as Policies: Language Model Programs for Embodied Controlcited by 1,172
  2. 2018Behavioral Cloning from Observationcited by 482
  3. 2019Exploring the Limitations of Behavior Cloning for Autonomous Drivingcited by 343
  4. 2019Causal Confusion in Imitation Learningcited by 286
  5. 2018Machine Theory of Mindcited by 222
  6. 2025Unified World Models: Coupling Video and Action Diffusion for Pretraining on Large Robotic Datasetscited by 218
  7. 2023Leveraging Pre-trained Large Language Models to Construct and Utilize World Models for Model-based Task Planningcited by 204
  8. 2023AdaPlanner: Adaptive Planning from Feedback with Language Modelscited by 193
  9. 2020Reward Machines: Exploiting Reward Function Structure in Reinforcement Learningcited by 183
  10. 2015Maximum Entropy Deep Inverse Reinforcement Learningcited by 173
  11. 2024Personalizing Reinforcement Learning from Human Feedback with Variational Preference Learningcited by 147
  12. 2023From Word Models to World Models: Translating from Natural Language to the Probabilistic Language of Thoughtcited by 118
38 more
  1. 2024WorldCoder, a Model-Based LLM Agent: Building World Models by Writing Code and Interacting with the Environmentcited by 99
  2. 2023A Definition of Continual Reinforcement Learningcited by 98
  3. 2023Think Twice: Perspective-Taking Improves Large Language Models' Theory-of-Mind Capabilitiescited by 86
  4. 2024PARTNR: A Benchmark for Planning and Reasoning in Embodied Multi-agent Taskscited by 78
  5. 2020Online Bayesian Goal Inference for Boundedly-Rational Planning Agentscited by 67
  6. 2021Learning to Synthesize Programs as Interpretable and Generalizable Policiescited by 59
  7. 2020Inverse Constrained Reinforcement Learningcited by 45
  8. 2021Human-Level Reinforcement Learning through Theory-Based Modeling, Exploration, and Planningcited by 43
  9. 2019Finding Friend and Foe in Multi-Agent Gamescited by 42
  10. 2021Simple Agent, Complex Environment: Efficient Reinforcement Learning with Agent Statescited by 42
  11. 2023Demo2Code: From Summarizing Demonstrations to Synthesizing Code via Extended Chain-of-Thoughtcited by 39
  12. 2023Learning adaptive planning representations with natural language guidancecited by 36
  13. 2019Theory of Minds: Understanding Behavior in Groups Through Inverse Planningcited by 30
  14. 2024Pragmatic Instruction Following and Goal Assistance via Cooperative Language-Guided Inverse Planningcited by 28
  15. 2025Hypothesis-Driven Theory-of-Mind Reasoning for Large Language Modelscited by 28
  16. 2025AutoToM: Scaling Model-based Mental Inference via Automated Agent Modelingcited by 23
  17. 2021PHASE: PHysically-grounded Abstract Social Events for Machine Social Perceptioncited by 22
  18. 2024Perceptions to Beliefs: Exploring Precursory Inferences for Theory of Mind in Large Language Modelscited by 22
  19. 2023Learning Safety Constraints from Demonstrations with Unknown Rewardscited by 19
  20. 2013The Sample-Complexity of General Reinforcement Learningcited by 18
  21. 2024GOMA: Proactive Embodied Cooperative Communication via Goal-Oriented Mental Alignmentcited by 16
  22. 2024A Notion of Complexity for Theory of Mind via Discrete World Modelscited by 16
  23. 2024Goals as Reward-Producing Programscited by 14
  24. 2014Monte Carlo Sampling Methods for Approximating Interactive POMDPscited by 12
  25. 2024Reward Machines for Deep RL in Noisy and Uncertain Environmentscited by 11
  26. 2016Nonparametric General Reinforcement Learningcited by 10
  27. 2024A Comprehensive Survey on Inverse Constrained Reinforcement Learning: Definitions, Progress and Challengescited by 10
  28. 2019A Strongly Asymptotically Optimal Agent in General Environmentscited by 9
  29. 2022A Hierarchical Bayesian Approach to Inverse Reinforcement Learning with Symbolic Reward Machinescited by 9
  30. 2024Bootstrapping Cognitive Agents with a Large Language Modelcited by 9
  31. 2024Infer Human's Intentions Before Following Natural Language Instructionscited by 9
  32. 2023Neural Amortized Inference for Nested Multi-agent Reasoningcited by 8
  33. 2018Nested Reasoning About Autonomous Agents Using Probabilistic Programscited by 7
  34. 2023On the Convergence of Bounded Agentscited by 7
  35. 2021Meta-Adversarial Inverse Reinforcement Learning for Decision-making Taskscited by 6
  36. 2024Pragmatic Embodied Spoken Instruction Following in Human-Robot Collaboration with Theory of Mindcited by 6
  37. 2021Abstractions of General Reinforcement Learningcited by 5
  38. 2024Quantifying the Sensitivity of Inverse Reinforcement Learning to Misspecificationcited by 4

50 most cited of 52 All 52 (JSON)

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 1; 2026: 5.

6 papers.