State-Aware Policy Optimization for a Reliable Multi-Turn, Multi-Tool Scientific Agent in Kinetic Biological Models

Ansh Kumar, Sanjana Balaji Kuttae, Charlie George Barker, Thomas Rückle, Anastasios Siokis, Sven Jager, Thomas Klabunde, Tommaso Andreani, Gurdeep Singh, Ahmad Wisnu MulyadiAI4Science @ ICML 2026

TL;DR

Researchers have developed a "state-aware" reinforcement learning framework that enables small language models to act as highly reliable scientific agents for biological modeling. By replaying previous actions to reconstruct a simulator's state at every step, they trained a compact 3B-parameter model to achieve 98% tool accuracy, outperforming massive frontier models like GPT-4o and Claude 3.5.

What Problem Does This Paper Address?

Scientific discovery increasingly relies on complex computational "toolchains"—sequences of simulations and data analyses. For an AI agent to be useful here, it must handle multi-turn interactions with stateful backends (like a kinetic biological simulator).

The core challenge is error propagation. In a standard "stateless" approach, if an agent makes a tiny mistake in Turn 1 (e.g., a slightly wrong parameter value), that error cascades. By Turn 4, the simulator's internal state is so corrupted that the agent has no hope of success. Existing reinforcement learning (RL) methods often struggle with this because they either ignore the environment's state entirely or try to learn from "full trajectories," where it's hard for the model to tell which specific action in a long sequence caused the eventual failure.

Methods

The authors introduce a state-aware version of Group Relative Policy Optimization (GRPO). GRPO is a recent RL variant that is memory-efficient because it eliminates the need for a separate "critic" model.

The "State-Aware" innovation involves a pre-warming phase:

  1. Decomposition: They break a long conversation into individual turns.
  2. State Reconstruction: Before the model generates a response for Turn N, the system "replays" all the ground-truth tool calls from Turns 1 to N-1 against a live simulation backend.
  3. Isolated Optimization: This ensures the model starts every training episode in the "perfect" environment state. It can then be rewarded or penalized solely based on its performance in the current turn, enabling much finer-grained credit assignment.

They combine this with a hybrid reward function:

  • Deterministic Verification: Rule-based checks for tool names and argument schemas (e.g., "Did you provide a valid JSON?").
  • Soft Numerical Tolerance: A graduated reward for numerical arguments (getting within 1% of the target is better than getting within 10%).
  • LLM-as-a-Judge: A frozen, larger LLM evaluates the final natural language answer for task completion.

Datasets

The study uses Talk2BioModels (T2B), an open-source agent framework for kinetic biological models.

  • Synthetic Benchmark: They generated 1,200 multi-turn conversations based on 20 real-world biological models (ODEs) from the BioModels repository.
  • Scenarios: The benchmark covers 10 scenarios, such as "run a simulation, then query a specific species concentration, then perform a parameter scan."
  • OOD Evaluation: They also created an Out-of-Distribution (OOD) set with novel tool combinations and entirely new tools to test how well the agent generalizes beyond its training.

Key Insights and Ideas

  • The "Argument Construction" Bottleneck: The researchers found that most frontier models are actually quite good at picking the right tool (tool selection). The real failure point is "plumbing"—constructing the complex, nested arguments and precise numerical values required by scientific software.
  • Small Models Can Be Specialists: A 3B-parameter model (Qwen2.5-3B) was able to crush models 200x its size. This suggests that for specialized scientific tasks, targeted policy optimization is more important than raw parameter count.
  • State Replay as a Training Scaffold: By replaying ground-truth actions during training, the authors provide a "scaffold" that prevents the model from getting lost in its own early mistakes. This allows the model to learn what a "correct" turn looks like even if it hasn't mastered the entire sequence yet.

Key Results

The optimized 3B model achieved:

  • 98% Tool Correctness: Almost never picked the wrong tool.
  • 88% Argument Correctness: A massive leap over the best baseline (Claude Opus 4.6 at 63%).
  • 77% Task Completion: Outperforming all 24 evaluated baselines, including GPT-5.4 and DeepSeek-V3.
  • Robustness: While baseline models' performance fell off a cliff by Turn 4, the state-aware agent maintained near-perfect accuracy throughout the conversation.

Limitations and Future Work

  • The Training-Inference Gap: During training, the model is "fed" the correct previous state. During real-world use, it must live with its own mistakes. While the authors showed their model still performs well (73.3% perfect conversation rate), this gap remains a challenge.
  • Tabular Data Limits: The agent still struggles when simulation results are returned as massive tables that exceed the model's context window. The authors suggest a dedicated "data-analysis agent" might be needed for this.
  • Upstream Bottlenecks: The framework assumes the biological model is already perfectly specified. In reality, researchers often start with messy, unstructured papers. Integrating "literature-to-model" extraction is a major next step.

Summary updated

BibTeX
@inproceedings{kumar2026state,
  author = {Ansh Kumar and Sanjana Balaji Kuttae and Charlie George Barker and Thomas Rückle and Anastasios Siokis and Sven Jager and Thomas Klabunde and Tommaso Andreani and Gurdeep Singh and Ahmad Wisnu Mulyadi},
  title = {{State-Aware Policy Optimization for a Reliable Multi-Turn, Multi-Tool Scientific Agent in Kinetic Biological Models}},
  booktitle = {AI4Science @ ICML},
  year = {2026},
  url = {https://openreview.net/forum?id=YGtz4ywf4V},
}
Figure