cs.AISep 30, 2026

Schema: Discovering Unknown Environments via Agentic Program Induction

Authors: Guanning Zeng, Jiani Wang, Wenjie Ma, Shaofeng Yin, Chenyang Wang, Shichen Liu, Angjoo Kanazawa, Wode Ni, +3 more

Organizations: Carnegie Mellon University · Impossible Research · UC Berkeley

Abstract

Learning to complete tasks in unfamiliar environments with unknown rules remains a key challenge for LLM agents. Current LLM agents often record their discoveries in prose, which may not provide a compact, explicit account of how the environment works. Inspired by how scientists organize observations into testable, predictive theories, we introduce Schema, an agent harness that organizes learning and action through interactive program induction. The LLM agent decides what to investigate and how to act, expressing its evolving understanding of the environment as executable programs. The harness consists of a persistent program workspace and a small set of interfaces for checking these programs against the interaction history, planning within them, and executing plans under step-by-step verification. Schema raises ARC-AGI-3 RHAE from 58.7% to 99.2% with the same base model, solves 100% of the public DiG-bench games, and reaches the median performance of the top-50 human players on MazeBench. Extensive analysis shows the effectiveness of Schema in unknown mechanism discovery, and ablations confirm the contribution of each component.

Figures & tables

Appendix figures & tables23 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. Can Agents Infer Environment from Interaction? Evidence from Agentic Automata Learning

    Jun 15, 2026Reef Menaged, Gili Lior, Shauli Ravfogel +2AutomataLarge Reasoning Models

  2. Agents Explore but Agents Ignore: LLMs Lack Environmental Curiosity

    Apr 19, 2026Leon Engländer, Sophia Althammer, Ahmet Üstün +2Agentic ControlEnvironment

  3. Action-Space Shaping for LLM Agents: Measuring and Mitigating Tool-Schema Bias

    Sep 28, 2026Yinhong Liu, Zhili Tan, Zilin Wang +1Large Language Model AgentsSchema