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

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

Abstract

Existing tasks fall short in evaluating the reasoning ability of Large Language Models (LLMs) in interactive, unknown environments. This deficiency leads to the isolated assessment of deductive, inductive, and abductive reasoning, neglecting the integrated reasoning process indispensable for human discovery. We introduce a novel evaluation paradigm, black-box interaction, to tackle this challenge. A black-box is defined by a hidden function mapping specific inputs to outputs. LLMs must unravel this function by interacting with the black-box over exploration turns and reasoning over observed pairs. Leveraging this idea, we build the ORACLE benchmark, comprising 6 task types and 96 black-boxes. Benchmarking 19 modern LLMs reveals that while top models like o3 excel at pattern recognition, they struggle with high-level planning and adaptive exploration strategies.

Introduction

Most reasoning benchmarks for LLMs are static, such as math word problems or multiple-choice logic tests. This approach suffers from two major issues. First, data contamination: because these problems often exist in training sets, models may "reason" by simply recalling memorized answers. Second, real-world reasoning is inherently cyclical. According to Charles Peirce’s philosophical framework, discovery requires a loop of forming a hypothesis (abduction), planning experiments to test it (deduction), and refining the hypothesis based on results (induction).

Existing interactive benchmarks often rely on well-known games where models can use pre-learned strategies. To isolate pure reasoning from memory, we propose a "black-box interaction" paradigm, testing whether a model can truly discover the mechanics of an unknown system from scratch.

The Black-Box Interaction Paradigm

The core of our evaluation is a two-stage process. In the Exploration Stage, the model interacts with a "black-box"—a hidden function $f(x) = y$. The model submits inputs $x$ and observes outputs $y$ for a limited number of turns. In the Evaluation Stage, the model must predict the output for unseen test inputs to demonstrate it has successfully inferred the hidden rules.

Comparison between Charles Peirce’s framework of human reasoning and the proposed black-box interaction process for LLMs.

To ensure novelty, we developed an automated agentic framework for black-box construction using specialized LLMs for coding, testing, and refinement. This ensures that the environments are not part of the models' training data.

The ORACLE Benchmark

The ORACLE benchmark consists of 96 unique black-boxes (50 easy, 46 hard) across six distinct task types:

  • Code Intent Inference (CII): Understanding an algorithm by checking variable values at specific checkpoints.
  • Circuit Rule Inference (CRI): Mapping the logic of a boolean gate system.
  • Physics System Inference (PSI): Predicting object coordinates in a mechanical system.
  • Encryption Rule Inference (ERI): Deciphering custom string transformation rules.
  • Interactive Puzzle Inference (IPI): Solving logic puzzles like "Nerdle."
  • Game Strategy Inference (GSI): Deducing and beating an opponent's fixed strategy.
Illustrative examples of three task types in the ORACLE benchmark: Code Intent Inference, Circuit Rule Inference, and Physics System Inference.

Key Results and Analysis

Our benchmarking of 19 modern LLMs yielded several critical insights into the current state of machine reasoning:

The Performance Gap

OpenAI’s o3 is the current state-of-the-art, ranking first in 5 of the 6 tasks and achieving over 70% accuracy on easy black-boxes. However, performance drops significantly on hard tasks, where even o3's average performance falls below 40%. Models with "extended thinking" capabilities (e.g., Claude 3.7 Sonnet, DeepSeek-R1) consistently outperformed standard chat models.

Pattern Matching vs. Discovery

LLMs performed best on tasks like CII where they could recognize familiar algorithms (e.g., QuickSort). Conversely, they struggled with PSI and ERI tasks where rules were mathematically valid but did not match "famous" patterns, indicating a reliance on pattern matching over genuine discovery.

The Planning Bottleneck

A significant finding is the lack of adaptive exploration, categorized into three tiers. Most LLMs exhibit Tier 1 behavior (random exploration), while top models reach Tier 2 (planned, efficient exploration). However, Tier 3—the ability to adaptively optimize strategy based on instant feedback—remains elusive. In experiments where feedback was given turn-by-turn versus all at once, performance remained stagnant, suggesting that current LLMs do not yet possess the high-level planning required for efficient hypothesis refinement.

Conclusion

While LLMs show promise in interactive reasoning, a significant "planning gap" remains. Future work should focus on autonomous agents equipped with external tools to bridge the computing gap and explore dynamic strategies where the goal is to solve puzzles in the minimum number of turns. Moving toward partially observable environments will further challenge and refine our understanding of LLM reasoning capabilities.

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 humans discovery of real world. We introduce a novel evaluation paradigm, \textit{black-box interaction}, to tackle this challenge. A black-box 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 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 and 96 black-boxes. 19 modern LLMs are benchmarked. o3 ranks first in 5 of the 6 tasks, achieving over 70\% accuracy on most easy black-boxes. But it still struggles with some hard black-box tasks, where its average performance drops below 40\%. Further analysis indicates a universal difficulty among LLMs: They lack the high-level planning capability to develop efficient and adaptive exploration strategies for hypothesis refinement.
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 Interaction}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=pLLWX35m6O},
}
Figure