Manuscript Offprint
arXiv:2610.21604Evaluating Inquiry Learning in LLM-Based Agents: Hypothesizing, Reasoning, and Exploration
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
Scientific inquiry involves iterative cycles of exploration, hypothesis generation, and reasoning over observations to uncover relationships in complex systems. Large language models (LLMs) have demonstrated strong capabilities in several components of this process, including inductive reasoning, hypothesis generation, and data analysis. However, prior work typically evaluates these abilities in isolation, leaving open how models integrate them across a full inquiry cycle. In this work, we introduce a framework for evaluating LLMs' inquiry capabilities in a unified, interactive setting. We extend the Countdown task to a mathematical environment where an agent probes the system by manipulating variables, collecting observations, and inferring relationships between them. This setup enables analysis of exploration strategies, causal discovery, and hypothesis refinement during inquiry. Across seven LLMs and multiple prompting strategies, our experiments reveal limited inherent inquiry capabilities and low success rates in discovering the underlying expressions. However, structured guidance inspired by educational scaffolding significantly improves performance. Our findings highlight current limitations of LLMs in strategic exploration and iterative hypothesis refinement, and show how simple guidance strategies developed for human learners in inquiry learning can support more effective inquiry behavior.
epfl-ml4ed/llm-inquiry
1 Introduction
Understanding complex systems requires identifying patterns in observations, reasoning about causal relationships, and forming hypotheses about relationships between variables. These capabilities underpin scientific inquiry and are formalized in inquiry learning (IL) as a cycle of exploration, hypothesis generation, and evidence-based reasoning.
With recent advancements, Large Language Models (LLMs) have demonstrated strong capa-

Figure 1: The agent explores the environment by collecting datapoints and engages in iterative hypothesizing to infer the underlying mathematical model.
abilities in inductive reasoning (Han et al., 2024; Yang et al., 2024a; Webb et al., 2023), hypothesizing (Wang et al., 2024) and data analysis (Zhu et al., 2024). One research direction has focused on inductive reasoning to discover underlying patterns between examples (Han et al., 2024; Yang et al., 2024a; Webb et al., 2023). Another line of research has shown that LLMs have strong capabilities in generating hypotheses (Yang et al., 2024b; Qiu et al., 2024). Moreover, recent work has investigated how LLMs interact with environments to explore and uncover underlying processes by modifying parameters, gathering data, and inferring causal relationships (Gandhi et al., 2025; He et al., 2025).
However, these approaches typically evaluate isolated capabilities, benchmarking models on specific tasks with limited analysis of the factors that support or limit performance. From the perspective of IL, where exploration, reasoning, and hypothesis generation are intertwined, it remains unclear how LLMs coordinate these processes, refine hypotheses based on new observations, and identify causal relationships that guide exploration.
To study these questions, we introduce an interactive task that combines exploration and mathe-matical modeling in a controlled environment defined by deterministic multivariable equations. Our task is inspired by the Countdown problem, where the goal is to find a combination of operators mapping numbers to a target value. Instead of using fixed set of numbers, we introduce variables whose values can be chosen and modified by the LLM-based agent, and extend the problem to an interactive environment in which the agent actively explores the system. The agent interacts with the environment by assigning different values to the variables and observing their effect on the target output, iteratively collecting observations to infer the underlying mathematical expression. The full interaction trajectory including explored variable configurations and intermediate conclusions supports hypothesis refinement and model discovery.
This setup allows us to evaluate LLMs’ ability to (1) strategically explore and collect data, and (2) iteratively infer relationships between variables, providing a framework for studying core inquiry capabilities.
Our methodology is inspired by the principles of IL, integrating systematic exploration with hypothesis generation and reasoning. To support these abilities, we draw inspiration from Guided Inquiry Learning (GIL), which provides structured support for performing inquiry. In our setting, GIL guides mathematical model discovery through imposed exploration and reasoning strategies (Schunn and Anderson, 1999), following the inquiry cycle (Pedaste et al., 2015).
Our experiments across seven instruction-following LLMs and different prompting strategies reveal limited inherent IL capabilities in LLMs, leading to a low number of correctly discovered expressions, with GIL improving the success rate. Our main contributions are:
-
An interactive benchmark for inquiry-based mathematical modeling, where LLM-based agents iteratively explore variables and generate hypotheses to discover underlying relationships.
-
A guided inquiry learning paradigm that provides structured scaffolding for strategic exploration and reasoning via in-context guidance.
-
A systematic evaluation of inquiry capabilities in LLMs, providing both quantitative and qualitative insights into their exploration, hypothesis refinement, and reasoning behavior.
Hypothesis generation. LLMs have demonstrated strong capabilities in generating hypotheses across a range of domains, including inductive reasoning (Qiu et al., 2024; Wang et al., 2024), prediction tasks (Zhou et al., 2024), and scientific discovery (Zhang et al., 2025). Moreover, LLM-based hypothesizing has been explored in symbolic regression, where recent approaches use LLMs to generate candidate hypotheses and rely on external tools for numerical fitting, verification, or execution (Shojaee et al., 2025; Grayeli et al., 2024; Sharlin and Josephson, 2024; Li et al., 2024). However, these approaches primarily focus on hypothesis generation rather than evaluating how LLMs iteratively refine hypotheses and reason about causal relationships in numerical observations.
Inductive Reasoning. Inductive reasoning is a form of reasoning that derives conclusions from observations (Sloman and Lagnado, 2005; Hayes et al., 2010; Holland et al., 1987). Research on LLM-based inductive reasoning often involves recognizing patterns over input-output (I/O) examples, e.g., via in-context learning. Recent studies generated outputs from few examples by modeling underlying mapping functions, either implicitly (Gendron et al., 2024) or explicitly (Honovich et al., 2023). While most work inferred latent rules from fixed datasets, others studied active exploration and rule induction through environmental interaction. For example, Piriyakulkij et al. (2024) studied rule learning via hypothesis generation and experimentation with abstract object combinations, and He et al. (2025) explored action–observation mappings across puzzles, including mathematical, string-based, and open-ended tasks, though their mathematical scope is limited to univariate equations with elementary functions. Finally, Tang et al. (2023) showed that LLMs perform better with semantically rich in-context examples; we extend this result to mathematical modeling, demonstrating that domain priors influence exploration and modeling behavior.
Inquiry Learning. Inquiry-based learning (IL) is a learning sciences method encouraging students to build understanding through activities that simulate empirical investigation. Rather than passively receiving information, learners actively explore causal relationships by proposing hypotheses and evaluating them through experimentation (Keselman, 2003; Pedaste et al., 2012). Prior work has formalized inquiry as structured cycles (Pedaste et al., 2015; White and Frederiksen, 1998; Bybee et al., 2006), across which three common components can be identified: exploring (data collection), hypothesizing, and reasoning (data interpretation). To address challenges learners and instructors face during IL (Zacharia et al., 2015), prior work proposed various strategies to guide the IL process. While some works offered structured guidance (Mayer, 2004), others (White and Frederiksen, 1998; Wang et al., 2021) supported metacognitive processes or combined cognitive tools with simulations to enhance students' IL experience (de Jong, 2006; Shved et al., 2024; Roll et al., 2018). Although IL is well studied, its applicability to LLM-based agents remains unexplored, specifically, whether LLMs can engage in IL-based exploration and what forms of guidance they benefit from.
3 Methodology
In our setting, an LLM-based agent needs to actively experiment and collect data from an environment to discover its underlying mathematical expression. We propose two approaches:
IL-based Exploration: This approach combines iterative exploration, hypothesizing, and reasoning, mimicking the inquiry process.
Guided Inquiry Learning: Drawing from literature on supporting human students in their inquiry learning (Mayer, 2004), we guide the agent by structuring its inquiry process and providing instruction on systematic exploration and reasoning.
Algorithm 1: IL
Input: (maximum number of steps), (trajectory at time ), (mathematical model), (agent)
Output: Discovered model
;
for to do
;
if is Action set then
; // data collection
else
if is Action finish then
return
else
; // update trajectory
3.1 IL-based Exploration
Our IL-inspired method enables on-the-fly joint exploration, hypothesizing, and reasoning to infer the mathematical model f underlying an environment.
We consider a setting where an LLM-based agent interacts with an environment over discrete timesteps. At each timestep i, we define a step as an event belonging to one of four types where a denotes an Action executed by the agent in the environment, o denotes an Observation received from the environment, t denotes a Thought representing internal agent reasoning, and h denotes a Hypothesis formulated by the agent. Each step s consists of step type and step content . We define two types of Action steps: the set Action is used for interacting with the environment by changing the state of the environment, while the finish Action finishes the exploration and returns the model . Each trajectory ends after either the agent generates the finish Action or the maximum number of observations is reached. This setup enables us to mimic the process of IL. The agent follows the main components of the inquiry cycle by exploring the environment (set Action), hypothesizing (Hypothesis), and reasoning (Thought) on the collected data points.
During the process, the next step is generated following Algorithm 1. If is a set Action step , the next step is the corresponding observation from the environment, i.e., its new state. Otherwise, we generate using an LLM-based agent conditioned on context via , where denotes the task instruction prompt, the few-shot example, and the trajectory up to timestamp i - 1.
Prompting Strategy. Our prompt consists of three parts: 1) Setup Description where we define the available steps, 2) Task Description where we define the goal and the mathematical environments, and 3) Agent Trajectory that is continuously updated with new steps. We employ zero-shot and few-shot prompting. In the few-shot setting, examples of human-created trajectories for strategic exploration and modeling are inserted between Setup and Task description. Example prompts can be found in the Appendix A.13.
3.2 Guided Inquiry Learning
Drawing inspiration from prior works in learning sciences focused on supporting students' IL processes by scaffolding the components of the IL cycle (Mayer, 2004; Wang et al., 2021), we propose a guided inquiry learning (GIL)-based approach for our LLM-based agents. GIL builds on top of the IL approach by adding two additional external components into the pipeline: (1) an IL guide that provides external scaffolding by conditioning the model's generation on the current phase of the IL cycle and offering guidance on how to explore and reason, facilitating structured inquiry and task progression, and (2) a verifier that provides ground truth verification of the hypothesis.
During interaction, the next step is generated following Algorithm 2 where , , and .
Conditioned on the current inquiry state of the IL cycle, an a, t or h step will be generated. The generated content in turn depends on the provided guidance, where g is a method that creates the prompt for guidance based on the current step type and denotes the prompt for the GIL setup.
Prompting Strategy. The GIL prompt is based on the IL prompt, with an added component that provides guidance tailored to the agent's current stage in the IL cycle. Specifically, the agent is prompted to generate the next step as follows: during exploration, it iteratively produces an Action step; after observations, it generates a Thought step; and once a maximum number of observations is reached, it generates a Hypothesis step. Within these steps, we further provide guidance for strategic exploration and reasoning. This guidance is grounded in learning sciences theory, providing scaffolds for how the agent should explore and reason about observations, shown to support IL in human students (Wen et al., 2020). In the set-Action step, the agent is prompted to modify one variable at a time, following the “controlling variables” experimentation strategy (Shved et al., 2024). In the Thought step, the agent is prompted to analyze how changes in the dependent variable relate to the independent variables.
Algorithm 2: GIL
Input: (steps per epoch ), (number of cycles), (underlying model), (agent)
Output: Model
;
for to do
for to do
; // guide exploration
;
;
; // guide reasoning
;
; // impose hypothesizing
; // verify hypothesis
;
if is correct hypothesis then
break;
; // generate finish action
return ;
3.3 Mathematical Environment
Our environment is inspired by the Countdown task, where the goal is to find a combination of operators that transforms a set of numbers into a target value. In our setting, instead of performing combinatorial search over operators applied to fixed numbers, the goal is to induce a mathematical expression composed of the same set of operators and abstract variables. The agent interacts with the environment by modifying variable values and observing their effect on a target variable, allowing it to infer how each variable contributes to the final expression.
The environment the agent interacts with consists of n independent variables, one dependent variable and the underlying mathematical model f, which models the dependent variable. The variable values define the state of the environment.
Formally, let be a mathematical model that maps independent variables to a dependent variable, constructed using the basic operators and . To construct a complete dataset we take all mathematical equations with three in-dependent variables obtained from the mapping process, accounting for permutations, and use them as the underlying models within the environment. For models with four and five independent variables, where the number of possible combinations grows exponentially, we performed random subsampling to ensure a uniform distribution across different variable counts. Permuting the variables enables us to remove the effects of the order of explored variables, making models with the same relations between the variables, such as and , different.
To evaluate models’ inherent exploration and reasoning capabilities, we use abstract variable names (e.g., A, B, C), preventing reliance on domain priors. To study how contextual knowledge impacts IL, we also include a set of equations that map directly to real-world scientific laws, such as concentration ( ) or gravitational force ( ). Finally, to analyze IL skills across varying equation complexity, we extend the three-variable equations with coefficients and intercepts. Detailed descriptions of these extended datasets and the corresponding results are provided in the Appendix A.1 and A.3.
4 Experimental Settings
4.1 Experimental Setup
We used six open-source LLMs of different scales, namely Llama-3.1-8B-Instruct, vicuna-13b-v1.3, Qwen2.5-14B-Instruct, gemma-2-27b-it, Qwen2.5-32B-Instruct and Llama-3.3-70B-Instruct, and one closed-source model, GPT-4o. For brevity, we refer to each open-source model throughout the paper using its model name and parameter size. We used greedy decoding for all open-source models, following Yao et al. (2023). We considered multi-variable equations with the number of independent variables ranging from n = 3 to n = 5, resulting in 174 distinct equations. We experimented with zero-shot, one-shot and three-shot settings. We used human-created trajectories of exploration and modeling in settings with n = 2 independent variables as examples (example in Appendix A.13).
In the IL-inspired approach, we limited the number of set Action steps to , allowing up to six modifications per independent variable during exploration, in addition to the initial observation. Similarly, in the GIL-inspired approach, we allowed up to datapoints in the initial exploration phase, enabling at most two modifications per variable. In subsequent phases, the limit was set to n set Action steps. We allowed at most three inquiry cycles.
For implementation of IL, we prompt the LLM to generate any step types and parse the output to retain the steps before the first Action step. An output may therefore contain zero or more Thought and Hypothesis steps in any combination, depending on the prompting protocol, but at most one Action. After execution, the resulting Observation is appended to the prompt and the next turn begins. For the GIL, each LLM call explicitly prompts the model to output the exact next step, with the ordering of steps enforced by the GIL cycle.
4.2 Evaluation Metrics
We evaluated our agents along two axes: 1) on-task performance and 2) inquiry behavior over agents' trajectories. We defined the on-task performance score as the ratio of correctly modeled functions over all trajectories. Correctness is determined by the exact match equivalence of normalized equations, detailed in Appendix A.7. For the behavioral analysis, we developed an evaluation rubric following the three main components of the IL cycle: exploring, hypothesizing, and reasoning. For the exploration phase, we annotated the set Action steps using the control of variables strategy (Chen and Klahr, 1999; Perez et al., 2018; Shved et al., 2024). Labeling for the hypothesis phase was inspired by prior works showing a tendency in humans to interpret data in a way that confirms their prior beliefs (Nickerson, 1998). We captured the types of refinements LLMs make during hypothesizing, while also revealing potential biases and limitations in how they infer the underlying model. Finally, we annotated the reasoning phase by the type of information the agent explicitly identified from the interactions. Our evaluation rubric is presented in Table 1 and detailed in Appendix A.8.
Two researchers independently annotated 11 randomly selected trajectories, achieving a Cohen's Kappa of 0.94. They then separately annotated a subset of trajectories from the best-performing models (on task) for the IL-based approach for each size (small, medium, large), leading to the annotation of a total of 10926 steps .
Details on the subsampling strategy can be found in the Appendix A.10. The detailed rubric is on our repository.
| IL Phase | Question | Label | Description |
|---|---|---|---|
| Exploring | Are IL exploration strategies followed? | StrategicNon-strategic | Only one dependent variable changedModifying multiple variables or a repeat data point |
| Hypothesizing | Do data interpretations confirm prior beliefs? | RepeatedNumerical ModificationTerm Modification | The agent repeats a previous hypothesisAgent adapts numerical values in the equation (e.g. scaling)Agent adapts equation with a term expressed in variables (e.g. add new term) |
| Reasoning | What type of information did the agent gain from the interaction? | Quantitative and QualitativeQualitative onlyStatement | The agent discovered a both qualitative and quantitative relationship e.g., "variable A increased by 1 and variable D doubled"The agent discovered a qualitative relationship e.g., "variable A increased and variable D decreased"The agent merely verbalized the observation (e.g., "variable D became 5") |
Table 1: Evaluation metrics for assessing inquiry behavior over agents' trajectories.
5 Results
We evaluated our models through task performance under IL and GIL exploration, and by analyzing the behavioral content of the agents' trajectories.
5.1 IL-based Exploration
We evaluated the capabilities of LLMs for interactively formulating mathematical models. Table 2 shows the ratio of correctly solved equations per model and setting for the IL-based exploration approach (IL column). All open-source models performed poorly in the zero-shot setting, achieving scores of up to 12.6%. Providing in-context examples improved performance in all models except Llama-8B, with Llama-70B reaching 24.1%.
To assess the impact of on-the-fly explicit hypothesizing, we conducted an ablation removing hypothesizing, allowing only Action-Observation-Thought (AOT) steps, similar to Yao et al. (2023). We further evaluated the role of reasoning by removing the Thought step, leaving the agent to interact with the environment through Action-Observation (AO) steps. Finally, we evaluated reasoning under controlled exploration (AOT-control), where variables were pre-collected, varied one at a time, and inserted as set actions.
All models performed similarly to AOT, with no clear patterns or conclusions, except for Qwen-32B, which consistently benefited from explicit hypothesizing across all shot settings. In contrast, removing the Thought step decreased the performance of most models (AO in Table 2) with the consistent decrease pattern in Qwen-14B, Qwen-32B, Llama-70B and GPT-4o across all number of shots. Furthermore, controlling the exploration strategy in AOT setup resulted with consistent improvements in both Qwen models, Gemma-27B, Llama-70B and GPT. These results highlight limitations of current models in complex, human-like IL processes, including strategic exploration, and the importance of reasoning for inductive mathe- matical modeling.
To explore whether model limitations in the IL setting stemmed primarily from their ability to verify hypotheses, we integrated the external verifier module (from the GIL approach) into the IL pipeline (IL-ver in Table 2). Only Qwen-14B, Qwen-32B and GPT-4o consistently benefited from this addition, showing performance gains across different numbers of shots.

Figure 2: Accuracy of models across equation complexity indicated by the number of independent variables (3, 4 or 5) in 0-shot and 3-shot settings.
Finally, we analyzed agent performance across equation difficulty, focusing on the number of independent variables (see Fig. 2). Performance dropped sharply as variables increased: in the IL 3-shot setting, accuracy for Qwen-32B, Llama-70B, and GPT-4o fell from 34.5% to 12.1%, 34.5% to 10.3%, and 31% to 13.8%, respectively, highlighting the challenge of multivariable modeling. Across all difficulty levels, few-shot examples consistently improved performance for Qwen-14B, Gemma-27B, Qwen-32B, and Llama-70B.
LLM-based agents lack robust inquiry learning capabilities, with performance declining as equation complexity increases.
5.2 Guided Inquiry Learning
With our second set of experiments, we investigated the impact of guidance in the form of GIL
| Shots | Model | IL | AO | AOT | AOT-control | IL-ver | GIL | GIL-step | GIL-strategy | GIL-reasoning |
|---|---|---|---|---|---|---|---|---|---|---|
| 0-shot | Llama-8B | 0.006 | 0.011 | 0.011 | 0.023 | 0.011 | 0.063 | 0.069 | 0.075 | 0.080 |
| Vicuna-13B | 0.011 | 0.011 | 0.011 | 0.017 | 0.011 | 0.006 | 0.011 | 0.011 | 0.011 | |
| Qwen-14B | 0.092 | 0.063 | 0.023 | 0.092 | 0.109 | 0.155 | 0.029 | 0.086 | 0.052 | |
| Gemma-27B | 0.040 | 0.057 | 0.046 | 0.086 | 0.046 | 0.098 | 0.034 | 0.086 | 0.075 | |
| Qwen-32B | 0.063 | 0.040 | 0.046 | 0.103 | 0.086 | 0.201 | 0.115 | 0.201 | 0.086 | |
| Llama-70B | 0.126 | 0.086 | 0.149 | 0.149 | 0.132 | 0.247 | 0.149 | 0.195 | 0.155 | |
| GPT-4o | 0.161 | 0.138 | 0.218 | 0.167 | 0.195 | 0.195 | 0.213 | 0.184 | 0.190 | |
| 1-shot | Llama-8B | 0.000 | 0.011 | 0.000 | 0.000 | 0.000 | 0.098 | 0.029 | 0.092 | 0.040 |
| Vicuna-13B | 0.017 | 0.000 | 0.029 | 0.006 | 0.017 | 0.029 | 0.023 | 0.017 | 0.017 | |
| Qwen-14B | 0.109 | 0.052 | 0.126 | 0.069 | 0.161 | 0.167 | 0.086 | 0.109 | 0.126 | |
| Gemma-27B | 0.098 | 0.057 | 0.092 | 0.098 | 0.155 | 0.121 | 0.092 | 0.121 | 0.057 | |
| Qwen-32B | 0.224 | 0.075 | 0.195 | 0.149 | 0.247 | 0.207 | 0.155 | 0.213 | 0.201 | |
| Llama-70B | 0.241 | 0.138 | 0.172 | 0.195 | 0.218 | 0.253 | 0.247 | 0.287 | 0.270 | |
| GPT-4o | 0.161 | 0.092 | 0.201 | 0.167 | 0.201 | 0.207 | 0.253 | 0.224 | 0.230 | |
| 3-shot | Llama-8B | 0.000 | 0.017 | 0.000 | 0.000 | 0.000 | 0.126 | 0.029 | 0.057 | 0.017 |
| Vicuna-13B | 0.023 | 0.006 | 0.023 | 0.023 | 0.023 | 0.034 | 0.006 | 0.011 | 0.034 | |
| Qwen-14B | 0.126 | 0.098 | 0.098 | 0.098 | 0.155 | 0.178 | 0.126 | 0.149 | 0.184 | |
| Gemma-27B | 0.086 | 0.046 | 0.098 | 0.069 | 0.086 | 0.132 | 0.069 | 0.132 | 0.080 | |
| Qwen-32B | 0.201 | 0.184 | 0.195 | 0.178 | 0.247 | 0.253 | 0.132 | 0.178 | 0.195 | |
| Llama-70B | 0.224 | 0.190 | 0.195 | 0.184 | 0.241 | 0.253 | 0.253 | 0.259 | 0.230 | |
| GPT-4o | 0.201 | 0.190 | 0.195 | 0.259 | 0.224 | 0.218 | 0.241 | 0.236 | 0.195 |
Table 2: Proportion of correctly induced equations across IL, GIL, and ablation settings.
on the LLM agents' capabilities to discover the underlying mathematical model. Table 2 shows the models' ratio of correctly discovered equations across different types of guidance: providing only structure guidance (GIL-step), additional reasoning guidance (GIL-reasoning), strategic exploration guidance (GIL-strategy) and full guidance (GIL).
Most models benefited from the GIL approach, solving more equations correctly across prompting strategies than IL, with exceptions for Qwen-14B (1-shot) and Vicuna-13B (0-shot). In the 0-shot setting, performance increased from 3.4% (GPT-4o) to 12.1% (Llama-70B), with further gains from few-shot examples. As in IL, Llama-70B performed best in the 0- and 1-shot settings (24.7% and 25.3%) and matched Qwen-32B in the 3-shot case.
Analyzing the effects of guidance on task performance, we found that the benefits of the GIL-step are model-dependent with both Llama models consistently benefiting from all forms of guidance. Overall, GIL with both types of guidance tended to yield the best performance across most models. As in IL, performance declined with increasing numbers of independent variables; however, GIL improved accuracy across most equation difficulties, reaching 44.8% (Qwen-32B) and 43.1% (Llama-70B) in the 3-shot, three-variable setting. Notably, for equations with three variables, the performance gap over IL was larger in the 0-shot than the 3-shot setting, indicating that external guidance is especially beneficial without prior examples.
We conducted additional ablations on GIL hyperparameters, including cycle lengths, subsequent cycles, and the number of IL cycles. Although optimal settings varied by model, all benefited from more inquiry cycles (see Appendix A.4). We also analyzed GIL's impact on agent trajectories. Figure 3 shows cumulative steps of different types in IL and GIL for 0-shot and 3-shot settings on a subsampled dataset. We observed that GIL balances step distributions by reducing over-exploration (e.g., Llama-70B, 3-shot) and increasing engagement in under-exploring models (e.g., Qwen-14B, 0-shot), thereby reducing disparities across model families.
Most agents consistently benefited from GIL, showing the impact of guidance on inducing the correct equations.
5.3 Trajectory Analysis of IL Behaviors
To better understand the models' inquiry capabilities and to examine the effects of GIL on inquiry behavior, we analyzed the agents' trajectories using our evaluation rubric in Section 4.2.
Exploration. The numbers of strategic and non-strategic exploration steps, averaged across trajectories, are shown in Figure 3. In the IL setting, strategic exploration accounted for only 21.63% of exploration steps across models in the 0-shot condition. Providing examples led to increased strategic data collection across models. Under the GIL approach, the proportion of strategic exploration rose substantially, averaging 91.64% in the 0-shot setting and 85.21% in the 3-shot setting.
Hypothesizing. Table 3 shows the results of our analysis of the LLM's capabilities to conduct on-the-fly hypothesizing, reporting the ratio of trajec-

Figure 3: Number of Exploration, Hypothesizing and Reasoning steps in IL and GIL across models for 0-shot (left) and 3-shot (right) settings.
tories with more than one hypothesis (Support), the ratio of repeated hypotheses as well as the ratio of hypotheses consisting of merely adjusting an existing hypothesis by adding scalar factor (Numerical Modification) or with new term expressed through independent variables (Term modification). All values are aggregated across the equations. We found that models explicitly repeated the same hypotheses in a relatively high ratio of trajectories reaching up to 44% in the 0-shot IL setup using the Qwen-32B model. Furthermore, we observed that both Qwen-14B and Qwen-32B refined hypotheses by adding numerical factors to hypotheses rather than variable terms in the 0-shot setting, while Llama-70B did the opposite. This points to different ways in which models iteratively refine hypotheses and indicates potential bias towards previously proposed hypotheses, since modifications are made with respect to them. In particular, an initially proposed hypothesis may influence subsequent reasoning, with new evidence being interpreted to fit the existing hypothesis rather than evaluating the hypothesis against the new data. This behavior may reflect a tendency toward confirmation bias, where models tend to interpret new evidence as supporting their previously proposed hypotheses rather than reconsidering or rejecting them. Finally, we observe that adding the examples generally resulted in a reduced amount of numerical modifications, except for Llama-70B model.
Reasoning. To analyze the inductive reasoning capabilities of the models, we identify what types of cause-effect relationships the agents explicitly draw from their observations. Table 4 shows the ratio of discovered both qualitative and quantitative relationships (capturing direction and magnitude of changes), qualitative relationships (capturing only direction), and pure verbal observations (statement). Again, all numbers are averaged across the trajectories. We consistently observed that the proportion of Thought steps containing explicit cause-effect relationships was markedly lower in IL compared to GIL, ranging up to 0.44 in IL and remaining at 1.00 in all GIL conditions. The share of pure observational statements decreased or stayed constant when moving from IL to GIL. Moreover, reasoning guidance encouraged models to identify more quantitative relationships, despite not being explicitly prompted to do so. This resulted in a consistent increase in the proportion of Thought steps that captured both the direction and magnitude of effects, across models and in both 0-shot and 3-shot settings.
| Setting | Model | Support | Repeated hypothesis | Numerical modification | Term modification |
|---|---|---|---|---|---|
| 0-shot IL | Qwen-14B | 0.67 | |||
| Qwen-32B | 0.67 | ||||
| Llama-70B | 0.88 | ||||
| 0-shot GIL | Qwen-14B | 0.88 | |||
| Qwen-32B | 0.75 | ||||
| Llama-70B | 0.67 | ||||
| 3-shot IL | Qwen-14B | 0.67 | |||
| Qwen-32B | 0.50 | ||||
| Llama-70B | 0.25 | ||||
| 3-shot GIL | Qwen-14B | 0.83 | |||
| Qwen-32B | 0.83 | ||||
| Llama-70B | 0.71 |
Table 3: Hypothesis behavior metrics (Mean ± SEM) showing the average ratio of different types of hypothesis modifications.
Capability Trade-offs. Different models exhibit distinct strengths and limitations across the three IL components. For example, Llama-70B demonstrates stronger hypothesis refinement, with consistently lower ratios of repeated hypotheses and numerical modifications compared with the Qwen models. On the other hand, Qwen-32B identifies quantitative relationships between variables at a higher rate in IL settings, while the smaller Qwen-14B model performs best under GIL on the same task, suggesting the benefits of reasoning guidance. Our results highlight that models benefit from guidance in different ways and reveal distinct trade-offs in their inherent IL capabilities and strengths.
Guiding LLMs' exploration and reasoning processes allows them to perform inquiry and enables better mathematical modeling. Agent's limitations highlight the need for external guidance when solving complex human tasks.
| Setting | Model | Cause-Effect Ratio | Statement | Qual. only | Qual. + Quant. |
|---|---|---|---|---|---|
| 0-shot IL | Qwen-14B | ||||
| Qwen-32B | |||||
| Llama-70B | |||||
| 0-shot GIL | Qwen-14B | ||||
| Qwen-32B | |||||
| Llama-70B | |||||
| 3-shot IL | Qwen-14B | ||||
| Qwen-32B | |||||
| Llama-70B | |||||
| 3-shot GIL | Qwen-14B | ||||
| Qwen-32B | |||||
| Llama-70B |
Table 4: Reasoning behavior metrics (Mean ± SEM) showing the proportion of cause-effect relations and identified information types during data collection.
6 Discussion & Conclusion
We investigated the inquiry capabilities of LLM-based agents in an interactive environment of simple multivariable equations and proposed a method inspired by IL to enable iterative hypothesizing and inductive reasoning. IL is challenging even for human learners and often requires structured guidance to support systematic exploration and reasoning (Alfieri et al., 2011; Kirschner et al., 2006). Similarly, LLM-based agents frequently failed to engage in systematic inquiry without guidance. Incorporating structured scaffolds through our GIL approach consistently improved performance by promoting systematic exploration and modeling.
Several limitations observed in LLM-based inquiry behavior resemble difficulties reported in human learners. Without guidance, agents rarely engaged in strategic exploration and often modified multiple variables simultaneously, making it difficult to isolate causal relationships, a challenge also documented in humans (Chen and Klahr, 1999). Models also tended to commit early to initial hypotheses, interpreting new evidence as supporting the hypothesis or building upon it without reconsidering alternative relationships between the variables. This behavior reflects a potential form of confirmation bias similar to that observed in human scientific reasoning (de Jong and van Joolingen, 1998). Finally, while LLMs often identified qualitative relationships between variables, they struggled to infer the quantitative dependencies required for correct model formulation, a difficulty also observed in human learners (Cock et al., 2025).
Overall, these findings suggest that LLM-based agents exhibit emerging inquiry capabilities and benefit from structured guidance similar to the scaffolding shown to support inquiry learning in human learners. The parallels between LLM and human inquiry difficulties highlight how insights from the learning sciences can guide the design of strategies that promote more systematic exploration, reasoning, and hypothesis refinement in LLM agents.
Limitations
While we reported results across different models and strategies, we have not extended the analysis to more LLMs of different model families. Moreover, due to the large number of trajectories in our experiments, we only considered a subsample of them for manual annotation; we call for future work to conduct IL analysis of LLM agents across more models and prompting strategies.
Furthermore, we isolated LLMs' reasoning from external tool usage to study their inherent IL capabilities and limitations, leaving the exploration of the interplay between tool use and reasoning in more complex or computationally demanding scenarios as future work.
In this work, we focused on a particular set of guidance types, emphasizing exploration, cause-effect reasoning and structured scaffolding. This focus allowed us to investigate how structured scaffolding can improve strategic inquiry through LLM-based agents. Extending the framework to incorporate additional forms of guidance represents a valuable direction for future research. Moreover, addressing performance gaps that remain in the GIL method, arising from inherent limitations of LLMs, including iterative hypothesizing and identifying cause-effect relationships, presents a significant and challenging direction for future work.
Finally, we identify no risk of our work regarding human or data consent, as all the data was generated synthetically.
Acknowledgements
We thank the Swiss State Secretariat for Education, Research and Innovation (SERI) for supporting this project.
References
Louis Alfieri, Patricia J. Brooks, Naomi J. Aldrich, and Harriet R. Tenenbaum. 2011. Does discovery-based instruction enhance learning?. Journal of Educational Psychology, 103:1–18.
Rodger W. Bybee, Joseph A. Taylor, April Lynn Gardner, and Pamela Van. 2006. The bscs 5e instructional model: Origins and effectiveness.
Z Chen and David Klahr. 1999. All other things being equal: acquisition and transfer of the control of variables strategy. Child development, 70 5:1098–120.
Constantinos Christou and Eleni Papageorgiou. 2007. A framework of mathematics inductive reasoning. Learning and Instruction, 17:55–66.
Jade Mai Cock, Ido Roll, and Käser Tanja. 2025. Different topics, similar patterns: The consistency of learners and learning across interactive stem simulations. International Journal of Artificial Intelligence in Education, 35(6):3668–3695.
Ton de Jong. 2006. Technological advances in inquiry learning. Science, 312(5773):532–533.
Ton de Jong and Wouter R. van Joolingen. 1998. Scientific discovery learning with computer simulations of conceptual domains. Review of Educational Research, 68:179 – 201.
Kanishk Gandhi, Michael Y. Li, Lyle Goodyear, Agam Bhatia, Ying Li, Aditi Bhaskar, Mohammed Zaman, and Noah Goodman. 2025. Boxinggym: Benchmarking progress in automated experimental design and model discovery. In Workshop on Scaling Environments for Agents.
Gaël Gendron, Qiming Bao, Michael Witbrock, and Gillian Dobbie. 2024. Large language models are not strong abstract reasoners. In Proceedings of the Thirty-Third International Joint Conference on Artificial Intelligence, IJCAI '24.
Aaron Grattafiori, Abhimanyu Dubey, Abhinav Jauhri, Abhinav Pandey, Abhishek Kadian, Ahmad Al-Dahle, Aiesha Letman, Akhil Mathur, Alan Schelten, Alex Vaughan, Amy Yang, Angela Fan, Anirudh Goyal, Anthony Hartshorn, Aobo Yang, Archi Mitra, Archie Sravankumar, Artem Korenev, Arthur Hinsvark, and 542 others. 2024. The llama 3 herd of models. Preprint, arXiv:2407.21783.
Arya Grayeli, Atharva Sehgal, Omar Costilla-Reyes, Miles Cranmer, and Swarat Chaudhuri. 2024. Symbolic regression with a learned concept library. In Proceedings of the 38th International Conference on Neural Information Processing Systems, NIPS '24, Red Hook, NY, USA. Curran Associates Inc.
Simon Jerome Han, Keith J. Ransom, Andrew Perfors, and Charles Kemp. 2024. Inductive reasoning in humans and large language models. Cogn. Syst. Res., 83:101155.
Brett K. Hayes, Evan Heit, and Haruka Swendsen. 2010. Inductive reasoning. WIREs Cognitive Science, 1(2):278–292.
Kaiyu He, Mian Zhang, Shuo Yan, Peilin Wu, and Zhiyu Zoey Chen. 2025. IDEA: Enhancing the rule learning ability of large language model agent through induction, deduction, and abduction. In Findings of the Association for Computational Linguistics: ACL 2025, pages 13563–13597, Vienna, Austria. Association for Computational Linguistics.
John H. Holland, Keith J. Holyoak, Richard E. Nisbett, Paul R. Thagard, and Stephen W. Smoliar. 1987. Induction: Processes of inference, learning, and discovery. IEEE Expert, 2(3):92–93.
Or Honovich, Uri Shaham, Samuel R. Bowman, and Omer Levy. 2023. Instruction induction: From few examples to natural language task descriptions. In Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 1935–1952, Toronto, Canada. Association for Computational Linguistics.
OpenAI: Aaron Hurst, Adam Lerer, Adam P. Goucher, Adam Perelman, Aditya Ramesh, Aidan Clark, AJ Ostrow, Akila Welihinda, Alan Hayes, Alec Radford, Aleksander Mądry, Alex Baker-Whitcomb, Alex Beutel, Alex Borzunov, Alex Carney, Alex Chow, Alex Kirillov, Alex Nichol, Alex Paino, and 399 others. 2024. Gpt-4o system card. Preprint, arXiv:2410.21276.
Alla Keselman. 2003. Supporting inquiry learning by promoting normative understanding of multivariable causality. Journal of Research in Science Teaching, 40:898–921.
Geunwoo Kim, Pierre Baldi, and Stephen McAleer. 2023. Language models can solve computer tasks. In Advances in Neural Information Processing Systems 36: Annual Conference on Neural Information Processing Systems 2023, NeurIPS 2023, New Orleans, LA, USA, December 10 - 16, 2023.
Paul A. Kirschner, John Sweller, and Richard E. Clark. 2006. Why minimal guidance during instruction does not work: An analysis of the failure of constructivist, discovery, problem-based, experiential, and inquiry-based teaching. Educational Psychologist, 41(2):75–86.
Michael Y. Li, Emily B. Fox, and Noah D. Goodman. 2024. Automated statistical model discovery with language models. In Forty-first International Conference on Machine Learning, ICML 2024, Vienna, Austria, July 21-27, 2024. OpenReview.net.
Richard E. Mayer. 2004. Should there be a three-strikes rule against pure discovery learning? the case for guided methods of instruction. The American psychologist, 59 1:14–9.
Reiichiro Nakano, Jacob Hilton, Suchir Balaji, Jeff Wu, Long Ouyang, Christina Kim, Christopher Hesse, Shantanu Jain, Vineet Kosaraju, William Saunders, Xu Jiang, Karl Cobbe, Tyna Eloundou, Gretchen Krueger, Kevin Button, Matthew Knight, Benjamin Chess, and John Schulman. 2021. Webgpt: Browser-assisted question-answering with human feedback. CoRR, abs/2112.09332.
Raymond S. Nickerson. 1998. Confirmation bias: A ubiquitous phenomenon in many guises. Review of General Psychology, 2:175 – 220.
Margus Pedaste, Mario Mäeots, Åli Leijen, and Tago Sarapuu. 2012. Improving students' inquiry skills through reflection and self-regulation scaffolds. Technology, Instruction, Cognition and Learning, 9(1-2):81–95.
Margus Pedaste, Mario Mäeots, Leo A. Siiman, Ton de Jong, Siswa A.N. van Riesen, Ellen T. Kamp, Constantinos C. Manoli, Zacharias C. Zacharia, and Eleftheria Tsourlidaki. 2015. Phases of inquiry-based learning: Definitions and the inquiry cycle. Educational Research Review, 14:47–61.
Sarah Perez, Jonathan Massey-Allard, Joss Ives, Deborah L Butler, Doug A. Bonn, Jeff Bale, and Ido Roll. 2018. Control of variables strategy across phases of inquiry in virtual labs. In International Conference on Artificial Intelligence in Education.
Wasu Top Piriyakulkij, Cassidy Langenfeld, Tuan Le, and Kevin Ellis. 2024. Doing experiments and revising rules with natural language and probabilistic reasoning. In Advances in Neural Information Processing Systems, volume 37, pages 53102–53137. Curran Associates, Inc.
Linlu Qiu, Liwei Jiang, Ximing Lu, Melanie Sclar, Valentina Pyatkin, Chandra Bhagavatula, Bailin Wang, Yoon Kim, Yejin Choi, Nouha Dziri, and 1 others. 2024. Phenomenal yet puzzling: Testing inductive reasoning capabilities of language models with hypothesis refinement. In International Conference on Learning Representations, volume 2024, pages 1452–1481.
Gemma Team: Morgane Riviere, Shreya Pathak, Pier Giuseppe Sessa, Cassidy Hardin, Surya Bhupatiraju, Léonard Hussenot, Thomas Mesnard, Bobak Shahriari, Alexandre Ramé, Johan Ferret, Peter Liu, Pouya Tafti, Abe Friesen, Michelle Casbon, Sabela Ramos, Ravin Kumar, Charline Le Lan, Sammy Jerome, Anton Tsitsulin, and 178 others. 2024. Gemma 2: Improving open language models at a practical size. Preprint, arXiv:2408.00118.
Ido Roll, Deborah L Butler, Nikki Yee, Ashley J. Welsh, Sarah Perez, Adriana Briseno, Katherine Perkins, and Doug A. Bonn. 2018. Understanding the impact of guiding inquiry: the relationship between directive support, student attributes, and transfer of knowledge, attitudes, and behaviours in inquiry learning. Instructional Science, 46:77–104.
Christian D Schunn and John R Anderson. 1999. The generality/specificity of expertise in scientific reasoning. Cognitive Science, 23(3):337–370.
Samiha Sharlin and Tyler R. Josephson. 2024. In context learning and reasoning for symbolic regression with large language models. ArXiv, abs/2410.17448.
Noah Shinn, Federico Cassano, Ashwin Gopinath, Karthik Narasimhan, and Shunyu Yao. 2023. Reflexion: language agents with verbal reinforcement learning. In Proceedings of the 37th International
Conference on Neural Information Processing Systems, NIPS '23, Red Hook, NY, USA. Curran Associates Inc.
Parshin Shojaee, Kazem Meidani, Shashank Gupta, Amir Barati Farimani, and Chandan K. Reddy. 2025. LLM-SR: Scientific equation discovery via programming with large language models. In The Thirteenth International Conference on Learning Representations.
Mohit Shridhar, Lucas Manuelli, and Dieter Fox. 2021. Cliport: What and where pathways for robotic manipulation. CoRR, abs/2109.12098.
Ekaterina Shved, Engin Bumbacher, Paola Mejia-Domenzain, Manu Kapur, and Tanja Käser. 2024. Teaching and measuring multidimensional inquiry skills using interactive simulations. In Artificial Intelligence in Education: 25th International Conference, AIED 2024, Recife, Brazil, July 8–12, 2024, Proceedings, Part I, page 482–496, Berlin, Heidelberg. Springer-Verlag.
Steven A Sloman and David Lagnado. 2005. The problem of induction. The Cambridge handbook of thinking and reasoning, pages 95–116.
Xiaojuan Tang, Zilong Zheng, Jiaqi Li, Fanxu Meng, Song-Chun Zhu, Yitao Liang, and Muhan Zhang. 2023. Large language models are in-context semantic reasoners rather than symbolic reasoners. CoRR, abs/2305.14825.
Hong-Syuan Wang, Sufen Chen, and Miao-Hsuan Yen. 2021. Effects of metacognitive scaffolding on students' performance and confidence judgments in simulation-based inquiry. Physical Review Physics Education Research.
Ruocheng Wang, Eric Zelikman, Gabriel Poesia, Yewen Pu, Nick Haber, and Noah Goodman. 2024. Hypothesis search: Inductive reasoning with language models. In The Twelfth International Conference on Learning Representations.
Zihao Wang, Shaofei Cai, Guanzhou Chen, Anji Liu, Xiaojian Ma, and Yitao Liang. 2023. Describe, explain, plan and select: Interactive planning with LLMs enables open-world multi-task agents. In Thirty-seventh Conference on Neural Information Processing Systems.
Taylor Webb, Keith J. Holyoak, and Hongjing Lu. 2023. Emergent analogical reasoning in large language models. Nature Human Behaviour, 7(9):1526–1541.
Cai-Ting Wen, Chen-Chung Liu, Hsin-Yi Chang, Chia-Jung Chang, Ming-Hua Chang, Shih-Hsun Fan Chiang, Chih-Wei Yang, and Fu-Kwun Hwang. 2020. Students' guided inquiry with simulation and its relation to school science achievement and scientific literacy. Computers & Education, 149:103830.
Barbara Y. White and John R. Frederiksen. 1998. Inquiry, modeling, and metacognition: Making science accessible to all students. Cognition and Instruction, 16(1):3–118.
Qwen: An Yang, Baosong Yang, Beichen Zhang, Binyuan Hui, Bo Zheng, Bowen Yu, Chengyuan Li, Dayiheng Liu, Fei Huang, Haoran Wei, Huan Lin, Jian Yang, Jianhong Tu, Jianwei Zhang, Jianxin Yang, Jiaxi Yang, Jingren Zhou, Junyang Lin, Kai Dang, and 23 others. 2025. Qwen2.5 technical report. Preprint, arXiv:2412.15115.
Zonglin Yang, Li Dong, Xinya Du, Hao Cheng, Erik Cambria, Xiaodong Liu, Jianfeng Gao, and Furu Wei. 2024a. Language models as inductive reasoners. In Proceedings of the 18th Conference of the European Chapter of the Association for Computational Linguistics, EACL 2024 - Volume 1: Long Papers, St. Julian's, Malta, March 17-22, 2024, pages 209–225. Association for Computational Linguistics.
Zonglin Yang, Xinya Du, Junxian Li, Jie Zheng, Soujanya Poria, and Erik Cambria. 2024b. Large language models for automated open-domain scientific hypotheses discovery. In Findings of the Association for Computational Linguistics: ACL 2024, pages 13545–13565, Bangkok, Thailand. Association for Computational Linguistics.
Shunyu Yao, Rohan Rao, Matthew Hausknecht, and Karthik Narasimhan. 2020. Keep CALM and explore: Language models for action generation in text-based games. In Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP), pages 8736–8754, Online. Association for Computational Linguistics.
Shunyu Yao, Jeffrey Zhao, Dian Yu, Nan Du, Izhak Shafran, Karthik R. Narasimhan, and Yuan Cao. 2023. React: Synergizing reasoning and acting in language models. In The Eleventh International Conference on Learning Representations, ICLR 2023, Kigali, Rwanda, May 1-5, 2023. OpenReview.net.
Zacharias C. Zacharia, Constantinos Manoli, Nikoletta A. Xenofontos, Ton de Jong, Margus Pedaste, Siswa A. N. van Riesen, Ellen T. Kamp, Mario Mäeots, Leo Aleksander Siiman, and Eleftheria Tsourlidaki. 2015. Identifying potential types of guidance for supporting student inquiry when using virtual and remote labs in science: a literature review. Educational Technology Research and Development, 63:257 – 302.
Yanbo Zhang, Sumeer A. Khan, Adnan Mahmud, Huck Yang, Alexander Lavin, Michael Levin, Jeremy Frey, Jared Dunnmon, James Evans, Alan Bundy, Saso Dzeroski, Jesper Tegner, and Hector Zenil. 2025. Exploring the role of large language models in the scientific method: from hypothesis to discovery. npj Artificial Intelligence, 1(1):14.
Lianmin Zheng, Wei-Lin Chiang, Ying Sheng, Siyuan Zhuang, Zhanghao Wu, Yonghao Zhuang, Zi Lin,
Zhuohan Li, Dacheng Li, Eric Xing, Hao Zhang, Joseph E. Gonzalez, and Ion Stoica. 2023. Judging LLM-as-a-judge with MT-bench and chatbot arena. In Thirty-seventh Conference on Neural Information Processing Systems Datasets and Benchmarks Track.
Yangqiaoyu Zhou, Haokun Liu, Tejes Srivastava, Hongyuan Mei, and Chenhao Tan. 2024. Hypothesis generation with large language models. In Proceedings of the 1st Workshop on NLP for Science (NLP4Science), page 117–139. Association for Computational Linguistics.
Yizhang Zhu, Shiyin Du, Boyan Li, Yuyu Luo, and Nan Tang. 2024. Are large language models good statisticians? In Proceedings of the 38th International Conference on Neural Information Processing Systems, NIPS '24, Red Hook, NY, USA. Curran Associates Inc.
A Appendix
A.1 Domain Priors
To understand the impact of domain priors in discovering underlying mathematical models, we constructed a benchmark of 26 scientific equations representing real-world processes. We evaluated LLMs in a zero-shot AOT setting, testing their ability to induce the correct underlying equation. Models were evaluated under two conditions: with and without domain priors provided as part of the task context. Domain priors were introduced through variable naming: either by giving the full variable name (with context) or by using its acronym. When domain priors were not provided as acronyms, we used abstract variables (e.g., A, B, C). Our results can be found in Table 5. We found that all models performed best when variables were expressed as acronyms with full names provided in context, with Llama-70B and Qwen-14B successfully inducing all the equations correctly achieving accuracy. Moreover, when no variable names were provided in the context, all models except Llama-8B performed better when variable abbreviations such as , , and (representing velocity, mass, and time) were used, compared to when abstract variable names were required. Specifically, the performance increased from to for Vicuna-13B, from to for Qwen-14B, from to for Gemma-27B, from to for Qwen-32B, from to for Llama-70B, and from to for GPT-4o. In contrast, performance dropped substantially across all models when only abstract variable names were provided. Our results showed that domain priors indeed impact the exploration and modeling abilities, motivating the use of abstract variable names as a way to eliminate contextual information and isolate exploration and mathematical modeling abilities.
A.2 Distribution of steps in trajectories
We further analyze the distribution and frequency of step counts along exploration trajectories. Figure 4 shows the average counts by step type across the IL and GIL settings and across different shot conditions. In the IL setting, the total number of steps increases from 0-shot to 1-shot and 3-shot for Llama-8B, Qwen-14B, Gemma-27B, and GPT-4o. We also observe that the smaller models—Llama-8B and Vicuna-13B—rarely engage in hypothesizing under IL, relying primarily on exploration and reasoning steps. By contrast, GIL yields a more uniform distribution across shot conditions, reducing over-exploration in models prone to it as well as encouraging hypothesizing in smaller models that previously failed to do so.
| Model | Without Context | With Context | ||
|---|---|---|---|---|
| Abstract | Acronym | Abstract | Acronym | |
| Llama-8B | 0.077 | 0.000 | 0.077 | 0.154 |
| Vicuna-13B | 0.077 | 0.308 | 0.231 | 0.692 |
| Qwen-14B | 0.308 | 0.654 | 0.500 | 1.000 |
| Gemma-27B | 0.231 | 0.577 | 0.538 | 0.769 |
| Qwen-32B | 0.538 | 0.769 | 0.731 | 0.923 |
| Llama-70B | 0.385 | 0.885 | 0.769 | 1.000 |
| GPT-4o | 0.577 | 0.846 | 0.808 | 0.923 |
Table 5: Percentage of correctly induced mathematical models for different LLMs, depending on whether the variables use abstract names (e.g., A, B, C) or acronyms, and whether the full variable name is provided as context (w/ context) or not (w/o context).

Figure 4: The distribution of steps across models and settings. The color denotes the approach (blue: IL, red: GIL), the shading the number of examples (0-shot, 1-shot, 3-shot), and the pattern the type of step (Action, Thought, Hypothesis)
Moreover, we found that adding the verifier increased the number of Hypothesis steps of both Qwen models. Table 6 shows the average number of hypothesis steps across different IL and GIL settings, models and number of shots. In the 0-shot setting, Qwen-14B and Qwen-32B increased their average number of hypotheses from Mean to and from to , while in the 3-shot setting, they increased from to and from to , respectively. Moreover, the GIL method increased the number of proposed hypotheses for models that did not hypothesize during IL by themselves, such as Llama-8B and Vicuna-13B, addressing their inherent limitations in performing inquiry. Interestingly, GIL did not address the issue for Vicuna in a 0-shot setting, necessitating the importance of in-context examples for this model.
A.3 Equations with coefficients
By analyzing fundamental inductive and exploratory capabilities in a controlled environment, we aim to establish a foundation for scaling inquiry-driven modeling to more complex and realistic settings, and to assess how LLMs explore abstract variables, formulate and refine hypotheses, and induce causal relationships from data.
To move toward more realistic equations, we conduct ablations on a set of equations that include numerical coefficients in addition to variables. We analyze two variants of equations with three variables: equations with an added intercept term only, and equations with both scaling coefficients and an intercept term.
The results are presented in Table 7 in columns IL and GIL. Introducing coefficients leads to high variability in LLM performance and a substantial degradation in modeling accuracy. Due to the expanded equation space, models perform significantly worse, achieving as little as 10.3% accuracy, compared to 44.8% on the coefficient-free setting with Qwen-32B. This degradation stems from both the increased target class of equations and the difficulty LLMs face in modeling more complex functional relationships.
Across models, equations with only an intercept term are generally easier to solve than those with full coefficients, with the exception of Qwen-32B under the inquiry setting. Additionally, we observe that free-form inquiry slightly outperforms the GIL approach. We hypothesize that this difference arises because GIL requires early hypothesis proposal during exploration, which becomes increasingly challenging as equation complexity and the coefficient search space grow.
Moreover, to see whether longer exploration can help the models, we increase the number of Action steps across exploration epochs. We use 19 Action steps in the initial epoch and six in the subsequent epochs. The results are shown in the final column GIL-Extended of the Table 7. We observe that extending the exploration of the GIL method leads to improvement on the equations with coefficients, increasing the performance of Qwen-32B from 0%, 5% and 7% to 3%, 7% and 10% across 0-shot, 1-shot and 3-shot examples, respectively. However, benefits were not consistent in the simpler equations with an intercept term and, in some settings (e.g. Qwen-32B 1-shot and 3-shot), harmed the model, leading to a lower percentage of induced equations. This shows the models' susceptibility to the length of exploration that might arise due to models falling into repetitive exploration patterns and suffering from misleading long context of exploration trajectories that can harm hypothesising.
Overall, these results show that more complex equations involving numerical terms pose a significantly harder challenge for LLMs, resulting in low overall performance and frequent failure to induce any correct equation.
A.4 Hyperparameters for GIL method
To evaluate the robustness of the GIL method, we investigate the effects of GIL hyperparameters, including total number of inquiry cycles and number of observations per inquiry cycle. We report performance on a subset of the dataset consisting of equations with three independent variables, under both 0-shot and 3-shot settings, across the Llama-70B, Qwen-14B, and Qwen-32B models.
With respect to the number of observations per inquiry cycle, we consider five exploration settings: uniform shorter exploration (4-3-3); medium-length initial exploration followed by two shorter cycles (7-3-3); long initial exploration followed by shorter cycles (10-3-3); medium-length exploration followed by hypothesis refinement without additional data collection (7-0-0); and uniform medium-length exploration (7-6-6). In each setting, the first cycle includes one additional datapoint, which is used for drawing cause-effect conclusions and analyzing variable changes. The results are shown in Table 8.
Our results indicate that the smaller Qwen-14B model achieves its best performance with shorter uniform exploration in both 0-shot and 3-shot settings, whereas the larger Qwen-32B model performs best with medium-length initial exploration followed by two shorter cycles. In contrast, the Llama-70B model achieves the highest accuracy under uniform short exploration and under medium-length initial exploration followed by hypothesis refinement in the 0-shot setting, while in the 3-shot setting, it achieves peak accuracy with medium-length initial exploration, followed by two shorter cycles, similar to the Qwen-32B model.
We observe a similar trend in the Llama-70B and Qwen-32B models under the 3-shot setting. When varying the length of the initial cycle while keeping subsequent cycles fixed at three datapoints each, both models achieve the highest accuracy with a
| # shots | Model | IL | IL-ver | GIL-step | GIL-reasoning | GIL-strategy | GIL |
|---|---|---|---|---|---|---|---|
| 0-shot | Llama-8B | 0.00 ± 0.00 | 0.00 ± 0.00 | 1.97 ± 0.03 | 1.98 ± 0.03 | 1.95 ± 0.02 | 1.95 ± 0.02 |
| Vicuna-13B | 0.00 ± 0.00 | 0.00 ± 0.00 | 0.13 ± 0.04 | 0.01 ± 0.01 | 0.13 ± 0.03 | 0.09 ± 0.03 | |
| Qwen-14B | 3.43 ± 0.32 | 11.76 ± 0.68 | 0.74 ± 0.08 | 1.90 ± 0.04 | 1.74 ± 0.05 | 1.90 ± 0.04 | |
| Gemma-27B | 3.70 ± 0.27 | 5.18 ± 0.21 | 0.29 ± 0.05 | 1.20 ± 0.07 | 1.99 ± 0.04 | 1.94 ± 0.02 | |
| Qwen-32B | 3.28 ± 0.33 | 13.74 ± 0.69 | 0.61 ± 0.07 | 1.26 ± 0.08 | 1.79 ± 0.03 | 1.81 ± 0.03 | |
| Llama-70B | 3.06 ± 0.10 | 3.80 ± 0.12 | 2.06 ± 0.04 | 1.99 ± 0.03 | 1.99 ± 0.04 | 1.82 ± 0.03 | |
| GPT-4 | 3.40 ± 0.12 | 1.95 ± 0.05 | 1.82 ± 0.03 | 1.85 ± 0.03 | 1.87 ± 0.03 | 1.83 ± 0.03 | |
| 1-shot | Llama-8B | 0.00 ± 0.00 | 0.00 ± 0.00 | 2.03 ± 0.03 | 2.28 ± 0.21 | 1.94 ± 0.02 | 1.93 ± 0.02 |
| Vicuna-13B | 0.00 ± 0.00 | 0.00 ± 0.00 | 1.06 ± 0.06 | 0.70 ± 0.07 | 1.27 ± 0.06 | 1.45 ± 0.05 | |
| Qwen-14B | 3.07 ± 0.19 | 8.16 ± 0.48 | 1.05 ± 0.08 | 1.82 ± 0.05 | 1.92 ± 0.03 | 1.94 ± 0.03 | |
| Gemma-27B | 2.15 ± 0.15 | 2.92 ± 0.24 | 1.65 ± 0.05 | 1.82 ± 0.05 | 1.93 ± 0.02 | 1.90 ± 0.02 | |
| Qwen-32B | 2.01 ± 0.19 | 5.22 ± 0.49 | 0.84 ± 0.07 | 1.26 ± 0.07 | 1.83 ± 0.03 | 1.82 ± 0.03 | |
| Llama-70B | 1.80 ± 0.11 | 1.57 ± 0.07 | 1.78 ± 0.04 | 1.80 ± 0.03 | 1.78 ± 0.03 | 1.80 ± 0.03 | |
| GPT-4 | 0.39 ± 0.16 | 0.18 ± 0.10 | 1.81 ± 0.03 | 1.83 ± 0.03 | 1.81 ± 0.03 | 1.84 ± 0.03 | |
| 3-shot | Llama-8B | 0.00 ± 0.00 | 0.00 ± 0.00 | 2.35 ± 0.23 | 2.17 ± 0.15 | 2.55 ± 0.25 | 2.17 ± 0.20 |
| Vicuna-13B | 0.00 ± 0.00 | 0.00 ± 0.00 | 1.87 ± 0.03 | 1.91 ± 0.03 | 1.99 ± 0.04 | 2.14 ± 0.08 | |
| Qwen-14B | 2.63 ± 0.17 | 3.76 ± 0.34 | 1.26 ± 0.09 | 1.76 ± 0.05 | 1.90 ± 0.04 | 1.96 ± 0.05 | |
| Gemma-27B | 1.33 ± 0.09 | 2.74 ± 0.43 | 1.76 ± 0.04 | 1.86 ± 0.03 | 1.90 ± 0.02 | 1.89 ± 0.02 | |
| Qwen-32B | 2.43 ± 0.22 | 6.91 ± 0.48 | 0.71 ± 0.07 | 1.17 ± 0.07 | 1.88 ± 0.03 | 1.85 ± 0.03 | |
| Llama-70B | 1.31 ± 0.11 | 1.30 ± 0.10 | 1.81 ± 0.03 | 1.83 ± 0.03 | 1.80 ± 0.03 | 1.80 ± 0.03 | |
| GPT-4 | 0.03 ± 0.01 | 0.04 ± 0.01 | 1.79 ± 0.03 | 1.85 ± 0.03 | 1.82 ± 0.03 | 1.83 ± 0.03 |
Table 6: Number of hypotheses proposed in the model trajectories during the exploration phase for each model, method, and their ablations. All values are shown with 2 decimal points.
| Model | # Shots | IL | GIL | GIL-Extended | |||
|---|---|---|---|---|---|---|---|
| Coeff. | Int. | Coeff. | Int. | Coeff. | Int. | ||
| Qwen-14B | 0 | 0.09 | 0.14 | 0.02 | 0.02 | 0.05 | 0.05 |
| 1 | 0.02 | 0.02 | 0.00 | 0.00 | 0.00 | 0.02 | |
| 3 | 0.03 | 0.09 | 0.00 | 0.05 | 0.00 | 0.02 | |
| Qwen-32B | 0 | 0.10 | 0.09 | 0.00 | 0.03 | 0.03 | 0.05 |
| 1 | 0.05 | 0.10 | 0.05 | 0.05 | 0.07 | 0.03 | |
| 3 | 0.10 | 0.03 | 0.07 | 0.10 | 0.10 | 0.04 | |
| Llama-70B | 0 | 0.00 | 0.03 | 0.00 | 0.00 | 0.00 | 0.00 |
| 1 | 0.00 | 0.03 | 0.00 | 0.00 | 0.00 | 0.00 | |
| 3 | 0.00 | 0.03 | 0.00 | 0.02 | 0.00 | 0.02 | |
Table 7: Results across models and few-shot settings, reported separately for coefficients and intercepts under IL, GIL, and GIL-Extended that allows for longer exploration across the inquiry cycles. Coeff. and Int. stands for equations with both coefficients and intercept, and equations with intercept term only.
medium-length initial cycle (7-3-3), corresponding to a 3% increase compared to a shorter initial cycle (4-3-3), and a decrease of 5% and 8% for Llama-70B and Qwen-32B, respectively, when the initial cycle is long (10-3-3). Furthermore, when varying the length of subsequent cycles with a fixed initial cycle of 7 steps, both models show increased performance with shorter subsequent cycles compared to the case with no additional datapoints, and a decline in performance as the length of subsequent cycles increases.
Furthermore, we evaluate model performance with respect to the total number of inquiry cycles. We consider a medium-length initial cycle, followed by up to 4 shorter cycles. The results are reported in Table 9.
As expected, performance consistently improves across the first three cycles, reflecting the benefits of additional hypothesizing and modeling. How- ever, for Qwen-14B and Qwen-32B models in the 0-shot setting, performance plateaus after the third and second cycle, respectively, showing no further gains. Similarly, performance plateaus after the fourth cycle for both models in 3-shot setting, suggesting potential bias toward early hypotheses and limited ability for later correction.
| Model | # observations | 0-shot | 3-shot |
|---|---|---|---|
| Qwen-14B | 4-3-3 | 0.328 | 0.362 |
| 7-0-0 | 0.259 | 0.345 | |
| 7-3-3 | 0.328 | 0.276 | |
| 7-6-6 | 0.241 | 0.276 | |
| 10-3-3 | 0.293 | 0.345 | |
| Qwen-32B | 4-3-3 | 0.276 | 0.414 |
| 7-0-0 | 0.193 | 0.362 | |
| 7-3-3 | 0.293 | 0.448 | |
| 7-6-6 | 0.259 | 0.345 | |
| 10-3-3 | 0.224 | 0.362 | |
| Llama-70B | 4-3-3 | 0.414 | 0.397 |
| 7-0-0 | 0.414 | 0.397 | |
| 7-3-3 | 0.362 | 0.431 | |
| 7-6-6 | 0.397 | 0.379 | |
| 10-3-3 | 0.397 | 0.379 |
Table 8: Performance of different models with respect to the number of observations across different exploration cycles indicated in the column Steps.
| Shots | Model | C1 | C2 | C3 | C4 | C5 |
|---|---|---|---|---|---|---|
| 0-shot | Qwen-14B | 0.259 | 0.276 | 0.293 | 0.293 | 0.293 |
| Qwen-32B | 0.224 | 0.276 | 0.276 | 0.276 | 0.276 | |
| Llama-70B | 0.276 | 0.345 | 0.379 | 0.397 | 0.414 | |
| 3-shot | Qwen-14B | 0.241 | 0.276 | 0.293 | 0.328 | 0.328 |
| Qwen-32B | 0.241 | 0.328 | 0.362 | 0.397 | 0.397 | |
| Llama-70B | 0.345 | 0.362 | 0.414 | 0.414 | 0.431 |
Table 9: Performance across number of exploration cycles (C) for different models and number of shots.
A.5 Exploration Analysis
As part of our analysis, we explored the impact of guidance on strategic exploration. Our results are shown in Figure 5. Our analysis showed that providing exploration guidance in the GIL-strategy and GIL methods led to an increase in strategic exploration compared to IL approaches. We observed that inherent strategic exploration abilities vary by model and do not necessarily correlate with overall task performance. This may be attributed to agents falling into repetitive exploration patterns rather than inferring the underlying rules from observations.

(a) 0-shot

(b) 3-shot
Figure 5: Percentage of strategic exploration across all models and different types of IL and GIL settings.
Next, we analyzed what kind of non-strategic exploration the agent conducted, distinguishing between random exploration (modifying multiple variables at the same time) and repeated exploration (the collection of the same datapoints again). It is worth noting that the collection of random datapoints might be part of the inquiry process, specifically contributing to verification or hypothesis testing on random datapoints. However, we did not distinguish between agents' intentions when collecting datapoints. Our results are shown in Table 10. We observed that repeated exploration accounted for on average across all three annotated models and decreased under the GIL setting. However, the ratio of repeated observations increased in the 3-shot setting, reaching up to
| Setting | Model | Strategic Exploration | Repeated Observation | Random Exploration |
|---|---|---|---|---|
| 0-shot IL | Qwen-14B | 0.31 ± 0.07 | 0.04 ± 0.02 | 0.65 ± 0.07 |
| Qwen-32B | 0.08 ± 0.03 | 0.02 ± 0.01 | 0.90 ± 0.03 | |
| Llama-70B | 0.26 ± 0.04 | 0.02 ± 0.01 | 0.72 ± 0.04 | |
| 0-shot GIL | Qwen-14B | 0.92 ± 0.01 | 0.01 ± 0.01 | 0.07 ± 0.01 |
| Qwen-32B | 0.91 ± 0.01 | 0.00 ± 0.00 | 0.08 ± 0.01 | |
| Llama-70B | 0.92 ± 0.01 | 0.00 ± 0.00 | 0.08 ± 0.01 | |
| 3-shot IL | Qwen-14B | 0.59 ± 0.04 | 0.13 ± 0.03 | 0.28 ± 0.03 |
| Qwen-32B | 0.58 ± 0.04 | 0.06 ± 0.02 | 0.36 ± 0.03 | |
| Llama-70B | 0.70 ± 0.03 | 0.09 ± 0.01 | 0.21 ± 0.04 | |
| 3-shot GIL | Qwen-14B | 0.81 ± 0.02 | 0.09 ± 0.02 | 0.10 ± 0.01 |
| Qwen-32B | 0.84 ± 0.02 | 0.07 ± 0.02 | 0.09 ± 0.01 | |
| Llama-70B | 0.90 ± 0.02 | 0.02 ± 0.02 | 0.08 ± 0.01 |
Table 10: Mean ± SEM for three types of data collection strategies, namely Strategic exploration, exploration that results with collection of the Repeated Observation, and Random Exploration that includes modifying multiple variables simultaneously.
for the Qwen-14B model in the IL setting. Moreover, random exploration decreased with the introduction of examples across models and declined even further with the addition of guidance in the GIL setting.
A.6 Behavioral Analysis of Verification
In addition to the results for exploration, hypothesizing, and reasoning, we analyze hypothesis verification behaviors in agents' reasoning as part of Thoughts steps. Table 11 shows the ratio of Thought steps containing verification (Verification), the ratio of verification Thought steps containing a calculation (Calculation) and the ratio of correct calculations (Correct) among such verifications. All numbers are averaged across the annotated trajectories. We report verification behavior only for the IL-based approach, as the external verifier performs that step for the agents in the GIL setting.
We found that all the models engage in the verification process, conducting the verifications in different amounts of their Thought steps, with the ratio decreasing with the model size. Qwen-14B conducted verification the most (58%) in a 0-shot setting. However, we found that models did not consistently verify hypotheses by explicitly substituting observed values into the hypothesis equations. This pattern was particularly evident in a 3-shot setting. In most verification steps involving computation in 0-shot, the LLMs accurately evaluated the hypothesis's mathematical expression based on the given inputs. However, the ratio declines given few-shot examples, decreasing by
| # shots | Model | Verification | Calculation | Correct |
|---|---|---|---|---|
| 0-shot | Qwen-14B | 0.58 ± 0.05 | 0.26 ± 0.08 | 0.66 ± 0.14 |
| Qwen-32B | 0.57 ± 0.05 | 0.27 ± 0.09 | 0.84 ± 0.11 | |
| Llama-70B | 0.48 ± 0.05 | 0.39 ± 0.08 | 0.89 ± 0.06 | |
| 3-shot | Qwen-14B | 0.45 ± 0.05 | 0.10 ± 0.05 | 0.32 ± 0.18 |
| Qwen-32B | 0.37 ± 0.04 | 0.18 ± 0.07 | 0.54 ± 0.17 | |
| Llama-70B | 0.26 ± 0.04 | 0.15 ± 0.06 | 0.83 ± 0.15 |
Table 11: IL-strategy verification metrics (Mean ± SEM) across models and shots. The columns indicate the ratio of Thought steps including verification (Verification), the ratio of verifications containing explicit calculation (Calculation), and the ratio of correct computation among verifications containing computations (Correct).
more than half in the Qwen-14B model.
We found that all models engaged in the verification process, performing verification in varying proportions of their Thought steps, with this ratio decreasing as model size increased. Qwen-14B exhibited the highest verification rate (58%) in the 0-shot setting. However, models did not consistently verify hypotheses by explicitly substituting observed values into the hypothesized equations. This pattern was particularly evident in the 3-shot setting. While the omission of explicit computation may be inconsequential for simple equations, step-by-step verification can enhance task accuracy by helping models identify errors and reduce overconfidence in previously proposed incorrect hypotheses. Moreover, in the majority of 0-shot verification steps involving computation, the LLMs accurately evaluated the mathematical expressions of the hypotheses based on the given inputs. Furthermore, even though the ratio of correct computations decreased in the 3-shot setting, we observe that computational errors occur in only 3.06%, 2.93%, and 0.66% of the total trajectory steps for Qwen-14B, Qwen-32B, and Llama-70B, respectively. This indicates that incorrect calculations are not the primary source of failure in inducing the correct mathematical model.
A.7 Evaluation Criterion
For evaluating the correctness of mathematical model generated by the LLM, we use symbolic normalization, considering only exactly matching equations as correct. All algebraic rearrangements, including commutativity and associativity, are accounted for by normalizing expressions with the SymPy Python library for symbolic computation. Binary value for correctness is determined solely by the exact match of normalized expressions.
A.8 Evaluation Metrics
We further explain the evaluation metrics for the trajectory behavior analysis across Exploration, Hypothesizing, and Reasoning steps.
Exploration IL literature identifies the following strategies as important for exploration: experimenting with all dependent variables (collecting sufficient datapoints and covering a wide variable range), using optimal experimental conditions, and changing only one variable at a time (Chen and Klahr, 1999; Perez et al., 2018; Christou and Papageorgiou, 2007; Shved et al., 2024). Based on these strategies, we annotated each set-Action step as strategic if only one dependent variable was changed with respect to the previous timestep. Steps modifying multiple variables or repeatedly collecting the exact same datapoint were labeled as non-strategic. For this component, all annotations were done automatically.
Hypothesizing Prior works have shown a tendency in humans to interpret data in a way that confirms their prior beliefs (Nickerson, 1998). To find if this behavior is reflected in LLMs, we annotated each Hypothesis step with the following labels: Repeated (when the agent repeats a previous hypothesis), Numerical Modification (when the agent adapted numerical values in the equation, e.g., scaling or addition), or Term Modification (when the agent adapted a previously proposed hypothesis by adding or removing one term of the hypothesis expressed using independent variables). The exact labels for the Hypothesis component of the evaluation rubric have been determined by two researchers independently examining ten randomly selected trajectories. All labels for this rubric were manually annotated.
Reasoning To assess how LLMs induce the underlying equation, we labeled the content of the Thought steps, identifying the type of information the agents explicitly induced from the observation. We employed the following labels: Qualitative and Quantitative (the agent induced both Qualitative and Quantitative relationships between independent and dependent variables that indicate direction and magnitude of the change, i.e. "variable A doubled and variable D also doubled" with A being an independent and D the dependent variable") and Qualitative (the agent induced only qualitative relationship, i.e. "variable A increased and variable D also increased"). Furthermore, we labeled the Thought as a Statement if the agent merely verbalized the observation (e.g., "variable D became 5"). Again, for this rubric component, all annotations were done manually.
A.9 Trajectory Structure
The trajectory structure consists of four types of steps: Action, Thought, Observation, and Hypothesis. Action steps are expressed as functions set() and finish(). The set() Action assigns values to variables (e.g., set(B=4)), while the finish() Action outputs a mathematical equation that models the data (e.g., D = A + B + C). Observation steps provide the model with collected data points in the form of dictionaries (e.g., A: 2, B: 4, C: 5, D: 11). Hypothesis steps are written as equations in the same format as the argument of finish() (e.g., D = A + B + C), while Thought steps are free-form text. A one-shot example of an exploration trajectory is provided in the “Example given in 1-shot prompting” box in Appendix A.13.
A.10 Trajectory Sampling
To account for differences in equation difficulty, we randomly sampled eight equations for each level of complexity, corresponding to three, four, and five independent variables, resulting in a total of 24 equations. We annotated all trajectories for 0-shot and 3-shot prompting across IL and GIL tasks using three LLMs, namely Qwen-14B, Qwen-32B, and Llama-70B, where the underlying mathematical model for each task corresponded to one of the 24 equations, resulting in a total of 288 annotated trajectories.
A.11 Models
We evaluate a diverse set of both open-source and closed-source LLMs spanning different parameter scales and model families. For all open-source models, we specifically use the instruction-tuned variants.
Our evaluation includes the following open-source instruction-tuned models: Llama-3.1-8B-Instruct (Grattafiori et al., 2024), vicuna-13b-v1.5 (Zheng et al., 2023), Qwen2.5-14B-Instruct and Qwen2.5-32B-Instruct (Yang et al., 2025), gemma-2-27b-it (Riviere et al., 2024), and Llama-3.3-70B-Instruct. In addition, we include GPT-4o (Hurst et al., 2024) as a representative closed-source model for comparison.
A.12 Computational Resources
Our experiments were conducted in a server instance provided by the IT department of our institution with two A100 GPUs. We used the vLLM library for the inference of all open-source models. For GPT-4o, we used the OpenAI API, with approximately $1000 spent on the experiments. We conducted all the experiments over the course of four weeks.
A.13 Prompt Instructions
Below we present example prompts from our experiments, including few-shot trajectory, guided instructions, and the main task-defining prompt. Placeholders indicated by uppercase letters, such as <OUTPUT_VARIABLE>, are determined based on the current task. Prompts for the GIL guidance are inserted into <FINAL_COMMAND> placeholder.
A.14 Examples of IL Behaviors
We provide representative examples of the analyzed behaviors, covering non-strategic exploration, hypothesis biases, and different reasoning types. Due to the length of the IL/GIL trajectories, we present partial trajectories that capture the relevant behavior.
Exploration Prompt
Explore and model the relationship between the variables by alternating between STEPS steps. There are two types of Action:
(1) set(<variable1>=<value1>, ...) – assigns values to the variables.
(2) finish(<model>) – completes the exploration and returns the equation that models the dependent variable.
Observation returns all variables after value assignment using the Action set().
Use the Thought step to reason and identify how changes in independent variables impact the dependent variable, as well as what the relationships between the variables are. Do not use multiple Thought steps in a row. Each Thought step should be followed by an Action step.
Use the Hypothesis step to formulate a hypothesis about the underlying mathematical model. The hypothesis should be formulated as an inline equation using only variables and operators. If the hypothesis is not confirmed, revise it and propose a new one. Each hypothesis should be written as a single mathematical formula.
Each step should be written on a new line, followed by ":" and the step content. For example: Action: set(X=1, Y=2)
Here are examples of how to explore and model variable Z based on variables X and Y.
<FEW_SHOT_EXAMPLES>
Now, there are <NUMBER_OF_VARIABLES> variables (<LIST_OF_VARIABLES>) available for exploration. Only these variables can be explored during the set() Action.
Explore the relationship between the variables to find the correct equation that models variable <OUTPUT_VARIABLE> using variables <LIST_OF_VARIABLES> based on observations. Model the relationship using only +, -, *, and / operators. Do not include coefficients in the equation.
Do not write text outside of the defined steps. Collect datapoints and determine the underlying equation.
<AGENT_HISTORY>
<FINAL_COMMAND>
GIL Guidance Prompts
Action: Continue exploring by writing the next Action step. Modify only one variable at a time. Do not write text outside of the defined steps. Write only the next Action step.
Hypothesis: Based on the above steps, write a Hypothesis for the variable <>. Write the hypothesis as an inline mathematical equation using available variables and only +, -, * and / operators, without any additional text. Do not write text outside of the defined steps. Write only the next Hypothesis step.
Thought: Reason about the new observation by writing the Thought step. For the content of the Thought step, answer the following questions: What was the change? How did the change affect variable <OUTPUT_VARIABLE>? Do not write text outside of the defined steps. Write only the next Thought step.
Finish action: Write the finish() Action. Do not write anything else, just write the final model of the variable <OUTPUT_VARIABLE> as the argument of the finish Action. Use only available variables and operators (+, -, *, /). Do not write text outside of the finish Action. Do not write other steps.
Example trajectory for 1-shot prompting
Thought: Let's try setting variable X to 5.
Action: set(X=5)
Observation: {X: 5, Y: 0, Z: -5}
Thought: After setting X to 5, variable Z became -5. Let's decrease X by 2 and set it to 3.
Action: set(X=3)
Observation: {X: 3, Y: 0, Z: -3}
Thought: After decreasing X from 5 to 3, variable Z increased from -5 to -3. This indicates that Z takes values of -X when Y is zero.
Hypothesis: Z = -X
Thought: Let's explore the impact of variable Y on Z.
Action: set(Y=7)
Observation: {X: 3, Y: 7, Z: 4}
Thought: Increasing Y from 0 to 7 increased Z from -3 to 4. That is, Z increased by 7.
Hypothesis: Z = Y - X
Thought: Let's try increasing Y by 1, setting Y to 8, while keeping X at 3.
Action: set(X=3, Y=8)
Observation: {X: 3, Y: 8, Z: 5}
Thought: Increasing Y from 7 to 8 increased Z from 4 to 5. This supports the hypothesis that Z = Y - X.
Action: finish(Z = Y - X)
List of simple real-world equations from science
Example trajectory for Llama-70B under GIL
Observation: {A: 2, B: 3, C: 3, D: 9}
Thought: .. an increase in A from 1 to 2, while B and C remained constant at 3, and this change resulted in an increase in D from 6 to 9, ... and given the magnitude of the increase, it seems that A might have a multiplicative relationship with other variables or itself, as the increase in A by 1 corresponded to an increase in D by 3...
Action: set(A=2, B=4, C=3) → Exploring the effect of the variable B
Observation: {A: 2, B: 4, C: 3, D: 10}
Thought: The change from the previous observation was an increase in B from 3 to 4, while A and C remained constant at 2 and 3, respectively, and this change resulted in an increase in D from 9 to 10, suggesting that the positive relationship between B and D continues, with the increase in B by 1 again corresponding to an increase in D by 1, which further supports the idea of a simple additive relationship between B and D. → Identifying both qualitative and quantitative relationship
Example trajectory for Llama-70B under IL
Action: set(A=1, B=2, C=3, D=4)
Observation: {A: 1, B: 2, C: 3, D: 4, E: 14}
Thought: The value of E is 14 when A, B, C, and D are 1, 2, 3, and 4 respectively. To understand the relationship between the variables, we need to change the values of A, B, C, and D and observe the effect on E. → Stating the observation without identifying effects of variables
Action: set(A=2, B=3, C=4, D=5) → Non-strategic exploration - increasing all the variables by 1
Observation: {A: 2, B: 3, C: 4, D: 5, E: 26}
Thought: The values of E are 14 and 26 when the values of A, B, C, and D are increased from 1, 2, 3, 4 to 2, 3, 4, 5 respectively. This suggests a possible additive relationship between the variables. To test this, we can try changing the values of A, B, C, and D in different combinations and observe the effect on E. → Stating the observation
Action: set(A=3, B=2, C=1, D=6) → Non-strategic exploration - random exploration
Observation: {A: 3, B: 2, C: 1, D: 6, E: 12}
Thought: The value of E is 12 when A, B, C, and D are 3, 2, 1, and 6 respectively. This result is interesting because even though A and D are larger than in the previous observations, the value of E is smaller... → Stating the observation
Examples of hypothesis modifications
Term scaling
Hypothesis:
Hypothesis: Scaling the original hypothesis by the variable
Term addition
Hypothesis:
Hypothesis: Adding a new component to the original hypothesis
Numerical scaling
Hypothesis:
Hypothesis: Scaling the original hypothesis by a numerical term
Numerical addition
Hypothesis:
Hypothesis: Adding a numerical term to the original hypothesis
Example of non-strategic exploration of Qwen-14B (Thought and Hypothesis steps omitted)
Action: set(A=3, B=3, C=3)
Observation: {A: 3, B: 3, C: 3, D: -12}
Action: set(A=2, B=2, C=2) Decrease all variables by 1
Observation: {A: 2, B: 2, C: 2, D: -6}
Action: set(A=4, B=1, C=2)
Observation: {A: 4, B: 1, C: 2, D: -6}
Action: set(A=4, B=2, C=1) Modify 2 variables at once
Observation: {A: 4, B: 2, C: 1, D: -9}
Action: set(A=5, B=3, C=2) Increase all variables by 1
Observation: {A: 5, B: 3, C: 2, D: -17}
Action: set(A=6, B=4, C=3) Increase all variables by 1
Observation: {A: 6, B: 4, C: 3, D: -27}
Example of strategic exploration of Qwen-14B (Thought and Hypothesis steps omitted)
Action: set(A=1, B=1, C=1, D=1)
Observation: {A: 1, B: 1, C: 1, D: 1, E: 0.0}
Action: set(A=2, B=1, C=1, D=1). Modify A
Observation: {A: 2, B: 1, C: 1, D: 1, E: -1.0}
Action: set(A=1, B=2, C=1, D=1) Modify B with respect to the 1st datapoint
Observation: {A: 1, B: 2, C: 1, D: 1, E: 1.0}
Action: set(A=1, B=1, C=2, D=1) Modify C with respect to the 1st datapoint
Observation: {A: 1, B: 1, C: 2, D: 1, E: -0.5}
Action: set(A=1, B=1, C=1, D=2) Modify D with respect to the 1st datapoint
Observation: {A: 1, B: 1, C: 1, D: 2, E: 1.0}
Action: set(A=1, B=1, C=1, D=3) Modify B with respect to the previous datapoint
Observation: {A: 1, B: 1, C: 1, D: 3, E: 2.0}