Investigating Advanced Reasoning of Large Language Models via Black-Box Environment Interaction

Congchi Yin, Tianyi Wu, Yankai Shu, Alex Gu, Yunhan Wang, Jun Shao, Xun Jiang, Piji Li

TL;DR

Researchers have introduced ORACLE, a new benchmark that evaluates Large Language Models (LLMs) by placing them in "black-box" environments where they must discover hidden rules through interaction. The study reveals a critical "planning gap": while top models like OpenAI’s o3 excel at easy tasks, they struggle to develop the efficient, adaptive exploration strategies required to solve complex, unknown systems.

What Problem Does This Paper Address?

Most current reasoning benchmarks evaluate LLMs on isolated tasks—solving a math word problem (deduction) or identifying a pattern in a static sequence (induction). However, human intelligence thrives on discovery learning: an integrated, iterative cycle of forming hypotheses, testing them through action, and refining those hypotheses based on feedback.

The authors argue that existing benchmarks fail to capture this holistic process. Furthermore, many reasoning tasks are likely present in the models' training data, leading to "reasoning by memorization" rather than genuine problem-solving. To bridge this gap, the paper proposes a paradigm called black-box environment interaction, forcing models to act like scientists in a lab—probing an unknown system to uncover its underlying logic.

Methods

The evaluation follows a two-stage process:

  1. Exploration Stage: The LLM is given a limited number of turns to interact with a black-box environment. It can input any valid data ($x$) and observe the output ($y$). The goal is to use these turns to "reverse-engineer" the hidden function $f(x)=y$.
  2. Evaluation Stage: The model is tested on unseen inputs. Its success depends entirely on how well it understood the rules during the exploration phase.
Figure 1. Illustration of Charles Peirce’s framework of human reasoning behavior (upper) and an example of the process of black-box environment interaction (lower). In this example, the black-box represents an encryption method that maps English letters to numbers.

To scale this benchmark, the authors developed an automated agentic framework. Instead of hand-coding every environment, they used a "Coding LLM" to generate the environment, a "Test LLM" to simulate interactions, and a "Refinement LLM" to debug the code until it perfectly matched the intended logic.

Datasets

The authors introduced the ORACLE benchmark, which consists of 96 black-box environments across six diverse task types:

  • Code Intent Inference (CII): Deducing the logic of a hidden algorithm (e.g., Quicksort) by checking variable values at specific checkpoints.
  • Circuit Rule Inference (CRI): Mapping the logic gates (AND, OR, NOT) of a hidden boolean circuit.
  • Physics System Inference (PSI): Predicting the coordinates of objects in a mechanical system (e.g., a double pendulum).
  • Encryption Rule Inference (ERI): Cracking a hidden cipher.
  • Interactive Puzzle Inference (IPI): Solving puzzles like Wordle or Quordle.
  • Game Strategy Inference (GSI): Modeling and beating an opponent's fixed strategy.
Figure 3. The composition of ORACLE benchmark.

Key Insights and Ideas

  • The Planning Gap: The most significant finding is that LLMs lack high-level planning. Even when given more turns to explore, many models don't improve because they don't know how to ask better questions. They often resort to random or exhaustive searches rather than adaptive strategies that maximize information gain.
  • Pattern Matching vs. Discovery: LLMs perform best in the Code Intent (CII) task because they can match checkpoint data to "famous" algorithms they've seen in training. However, in Physics (PSI) or Encryption (ERI) tasks where the rules are synthetic and unique, their performance craters.
  • Three Tiers of Exploration: The authors categorize exploration into three levels. Most LLMs are Tier 1 (random/unplanned). The best reasoning models reach Tier 2 (planned but non-adaptive). Tier 3—the ability to optimize a strategy on the fly based on instant feedback—remains a uniquely human domain.
  • Extended Thinking Helps: Models with "test-time scaling" (like o3 or Claude-3.7-sonnet with thinking enabled) significantly outperform standard chat models, proving that internal CoT is essential for navigating complex hypothesis spaces.

Key Results

The researchers benchmarked 19 modern LLMs. OpenAI’s o3 emerged as the clear leader, ranking first in nearly all categories.

  • Easy vs. Hard: Top models achieved over 70-80% accuracy on easy environments but dropped to below 40% on hard ones.
  • The "Aha Moment": In some cases (like Gemini 2.5 Pro on Encryption tasks), model performance surged suddenly when exploration turns were extended to 30, suggesting a threshold where the model finally "clicks" on the hidden rule.
  • Human Superiority: In human evaluations, participants consistently reached near 100% accuracy on tasks where LLMs struggled, primarily because humans could solve the logic in roughly five highly strategic turns.
Accuracy of various models on the Code Intent Inference task.

Limitations and Future Work

The authors acknowledge several hurdles:

  1. Cost: Evaluating advanced reasoning models is expensive due to the high token count required for "thinking" and multi-turn interactions.
  2. Opacity: Because the top-performing models are closed-source, it is difficult to analyze why they fail at specific adaptive strategies.
  3. Basic Skills: Some failures were not due to poor reasoning, but simply poor "calculator" skills (e.g., failing to compute coordinates in the Physics task despite understanding the motion).

Future research will likely focus on evaluating LLM-based agents that can use external tools to overcome these computational weaknesses and developing training paradigms that explicitly reward adaptive exploration.

Summary updated

Abstract

Existing tasks fall short in evaluating reasoning ability of Large Language Models (LLMs) in an interactive, unknown environment. This deficiency leads to the isolated assessment of deductive, inductive, and abductive reasoning, neglecting the integrated reasoning process that is indispensable for human-like discovery learning. We introduce a novel evaluation paradigm, \textit{black-box environment interaction}, to tackle this challenge. A black-box environment is defined by a hidden function that maps a specific set of inputs to outputs. LLMs are required to unravel the hidden function behind the black-box environment by interacting with it in given exploration turns, and reasoning over observed input-output pairs. Leveraging this idea, we build the \textsc{Oracle} benchmark which comprises 6 types of black-box task with 96 black-box environments. 19 modern LLMs are benchmarked. o3, a leading LLM from OpenAI, ranks first in 5 of the 6 tasks, achieving over 70\% accuracy on most easy black-box environments. But it still struggles with some hard black-box tasks, where the average performance drops below 40\%. Further analysis reveals a universal difficulty among LLMs: They lack the high-level planning capability to develop efficient and adaptive exploration strategies for hypothesis refinement. Code is available in https://github.com/lemonsis/Oracle_Benchmark.
BibTeX
@inproceedings{yin2026investigating,
  author = {Congchi Yin and Tianyi Wu and Yankai Shu and Alex Gu and Yunhan Wang and Jun Shao and Xun Jiang and Piji Li},
  title = {{Investigating Advanced Reasoning of Large Language Models via Black-Box Environment Interaction}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=pLLWX35m6O},
}
Figure