TL;DR
PhysGym is a new interactive benchmark that tests whether LLM agents perform genuine scientific discovery or simply pattern-match memorized formulas. By systematically masking textual descriptions, variable semantics, and naming conventions across four levels of prior knowledge, the platform reveals that rich priors can actually handicap LLM reasoning and exploration.
What Problem Does This Paper Address?
Recent advances have led to "AI Scientist" systems designed to automate hypothesis generation, experimental design, and paper writing. However, existing benchmarks evaluate these models on static datasets or with fixed prompts. This makes it impossible to separate memorized pattern-matching from true mechanistic inference:
- If an agent is told an experiment involves a simple harmonic pendulum with variables
lengthandgravity, it can trivially recall $T = 2\pi\sqrt{L/g}$. - If those same variables are anonymized to $\text{var}_1$ and $\text{var}_2$ without descriptive context, the agent must actively design informative experiments, observe input–output responses, and infer the underlying mathematical relationship.
Current benchmarks lack the fine-grained control needed to analyze how models adapt to unfamiliar settings, handle missing context, and balance deduction with induction.
Methods
The authors introduce PhysGym, an interactive simulation environment and evaluation framework:
- Interactive Discovery Loop: LLM agents iteratively propose parameter configurations (under a fixed experiment quota of 100), receive numerical outputs from an execution sandbox, formulate mathematical hypotheses, and request oracle symbolic checks.
- Controlled Prior Levels: PhysGym systematically strips metadata across four distinct levels:
- Level 1 (Full Context): Problem description, full variable descriptions, and physical units provided.
- Level 2 (No Context): Context replaced with "Unknown context.", but variable names and physical descriptions remain.
- Level 3 (No Descriptions): Variable descriptions replaced with generic text ("Some variable."), keeping standard variable names (e.g., $m, v$).
- Level 4 (Fully Obfuscated): Context and descriptions removed; variable names anonymized to $\text{var}_1, \text{var}_2, \dots$ (pure interactive symbolic regression).
- Two-Stage Equivalence Evaluation: Success is judged first by strict SymPy-based symbolic equivalence against the ground-truth equation, with an LLM fallback evaluator for alternative representations (e.g., NumPy syntax).
Datasets
- PhysGym Dataset: Built from 97 physics problems curated from PHYBench across six domains: Mechanics (39), Electricity (31), Thermodynamics (10), Optics (7), Modern Physics (7), and Advanced Physics (3).
- Each task averages 4.7 input variables and 1.0 dummy variable (parameters mentioned in the setup that do not causally affect the target output).
- Tasks include full step-by-step physical derivations, ground-truth symbolic equations, and sandboxed Python scripts with input/output validity checks.
Key Insights and Ideas
- Prior knowledge is a double-edged sword: While aggregate accuracy falls as priors decrease, individual tasks exhibit strong non-monotonicity. Some tasks failed when context was available and succeeded only at Levels 3 and 4.
- Semantic priors bias experimental design: In Environment 716 (rotational speed), providing physical variable names caused Gemini-Pro to set realistic physical constants (e.g., Coulomb's constant $\approx 9 \times 10^9$, charge $\sim 10^{-6}\text{ C}$), restricting the exploration space and preventing formula discovery. Once anonymized at Level 4, it picked cleaner values and solved the problem.
- Variable names induce functional preconceptions: In Environment 409, retaining electromagnetic variable symbols at Level 3 biased models toward forms like $\epsilon_0 E_0 f(a/r)$, fitting noise rather than the ground-truth equation. Anonymizing variables in Level 4 broke this cognitive trap.
- Failure to probe extreme scenarios: In relativistic settings (Environment 310), models without textual hints failed to test high $E/m$ ratios, observing $\beta_1 \approx \beta_0$ and failing to discover relativistic correction terms.
- "Thinking" models scale exploration under uncertainty: Reasoning models (Gemini-2.5-Flash, o4-mini) increased interaction steps as priors decreased (e.g., Gemini-Flash averaged 10.62 experiments at Level 1 vs. 20.63 at Level 4), whereas non-reasoning models (Claude 3.7 Sonnet) struggled to leverage iterative feedback.
Key Results
- Performance drops across all models as priors are removed:
- Gemini-2.5-Pro: 74.23% (L1) $\rightarrow$ 60.82% (L2) $\rightarrow$ 36.08% (L3) $\rightarrow$ 31.96% (L4)
- Gemini-2.5-Flash: 65.98% (L1) $\rightarrow$ 49.48% (L2) $\rightarrow$ 36.08% (L3) $\rightarrow$ 30.93% (L4)
- OpenAI o4-mini: 62.89% (L1) $\rightarrow$ 41.24% (L2) $\rightarrow$ 31.96% (L3) $\rightarrow$ 27.84% (L4)
- Claude 3.7 Sonnet (non-reasoning): 22.68% (L1) $\rightarrow$ 20.62% (L2) $\rightarrow$ 21.65% (L3) $\rightarrow$ 12.37% (L4)
- Open-source baselines: gpt-oss-20b achieved 34.02% (L1) dropping to 12.37% (L4); Qwen3-32B achieved 21.65% (L1) dropping to 12.05% (L4).
- Dimensionality cliff: For complex problems with 10+ variables, models were only able to succeed at Level 1, failing completely once explicit context was removed.
Limitations and Future Work
- Static Problem Set: The current benchmark contains 97 static problems sourced from PHYBench, which poses eventual risks of dataset contamination or overfitting. The authors emphasize the need for automated generation of novel physics environments.
- Heuristic Complexity Metrics: Task difficulty was proxied primarily by input variable counts and equation character length, which do not fully capture topological or mathematical complexity.
- Future Directions:
- Testing on counterfactual physics (where real-world physical constants or laws are intentionally altered) to directly penalize memorization.
- Training dedicated exploration modules focused on information gain, causal reasoning, and active hypothesis falsification.
- Utilizing PhysGym’s Level 1–4 curriculum for fine-tuning agents to transition from deductive to inductive reasoning.
Summary updated