NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Adapting While Learning: Grounding LLMs for Scientific Problems with Intelligent Tool Usage Adaptation

Bohan Lyu, Yadi Cao, Duncan Watson-Parris, Leon Bergen, Taylor Berg-Kirkpatrick, Rose Yu · DOI

TL;DR

This paper introduces "Adapting While Learning" (AWL), a novel training method for Large Language Models (LLMs) that allows them to intelligently choose between direct reasoning and using external scientific tools based on problem complexity. AWL significantly boosts both answer accuracy and efficient tool usage, outperforming existing models and even rivaling top-tier LLMs on challenging scientific tasks.

What Problem Does This Paper Address?

Large Language Models (LLMs) show great promise for scientific problem-solving, but they often struggle with "hallucinations" – generating incorrect or nonsensical information. While integrating LLMs with specialized scientific tools (like simulators) can improve accuracy, current methods often lead to LLMs becoming overly reliant on these tools, even for simple problems. This is inefficient and costly. Human experts, on the other hand, intuitively assess a problem's difficulty and decide whether to tackle it directly or use external resources. This paper aims to equip LLMs with this adaptive decision-making capability, balancing accuracy with computational efficiency.

Methods

The core of the proposed solution is the "Adapting While Learning" (AWL) framework, which consists of two main components:

  1. World Knowledge Learning (WKL): This phase uses supervised fine-tuning and preference learning to help LLMs internalize scientific knowledge. The model learns from high-quality solutions generated by tools, effectively "learning" the underlying scientific principles without necessarily needing to call the tool every time.
  2. Tool Usage Adaptation (TUA): After WKL, the model's direct answering ability is evaluated. Questions are then classified as "easy" (model answers correctly without tools) or "hard" (model struggles). For easy questions, the model is trained to continue direct reasoning. For hard questions, it's trained to follow tool-usage traces, learning when and how to use tools effectively.

A combined loss function ensures consistency between these two components, and the framework is extended for open-ended questions using Direct Preference Optimization (DPO).

Datasets

The authors evaluated their method on a diverse range of scientific datasets:

  • Public Benchmarks: MATH and SciBench.
  • Custom Datasets:
    • Mujoco: Problems in rigid and soft-body dynamics using the Mujoco physics engine.
  • PDEs (Partial Differential Equations): Solvers for 1D and 2D diffusion processes.
  • Climate Science: Predicting Earth's surface temperature changes based on climate scenarios, using a neural surrogate model.
  • Epidemiology: Simulating disease spread and predicting epidemiological states, using a state-of-the-art surrogate model.

The custom datasets were designed with domain-specific question templates and evaluated using simulators and task-specific metrics.

Key Insights and Ideas

  • Mimicking Human Expertise: The core idea is to replicate how human scientists approach problems – by first assessing complexity and then deciding on the best strategy (direct reasoning vs. tool use). This adaptive approach is key to efficient and accurate problem-solving.
  • Internalizing Knowledge: WKL is crucial for making LLMs more self-sufficient. By learning from tool-generated solutions, LLMs can internalize scientific knowledge, reducing the need for constant tool calls.
  • Intelligent Tool Selection: TUA is where the "adaptation" happens. Classifying problems as easy or hard allows the LLM to learn a nuanced strategy, avoiding unnecessary tool usage for simple tasks while leveraging tools for complex ones.
  • Robustness to Noise: The AWL method shows remarkable robustness to noisy training data, a common issue in real-world LLM training. It intelligently defaults to tool usage when faced with uncertainty.

Key Results

  • Significant Accuracy Gains: The AWL-trained 8B model achieved an average of 29.11% higher answer accuracy and 12.72% better tool usage accuracy across datasets compared to the base model.
  • State-of-the-Art Performance: AWL-trained models surpassed even larger, closed-source models like GPT-40 and Claude-3.5 on custom-created datasets.
  • Efficient Tool Usage: The method significantly reduced the average number of tool calls per question (e.g., from 7.21 to 2.70 in Climate tasks) without compromising output quality.
  • Ablation Studies: Removing either WKL or TUA led to tool over-reliance, highlighting the necessity of both components. WKL was particularly important for answer accuracy.

Limitations and Future Work

  • Domain-Specific Fine-tuning: The current approach requires domain-specific fine-tuning. Future work could explore unified training across related scientific domains.
  • Binary Difficulty Classification: The easy/hard classification is binary. Real-world problems often exist on a spectrum of complexity, suggesting a need for more granular difficulty evaluation and tool selection strategies.
  • Stepwise Tool Utilization: The authors suggest exploring stepwise adaptive tool utilization for multi-step scientific workflows.
  • Multi-modal Inputs/Outputs: Expanding the method to handle multi-modal data would broaden its applicability.
  • Base Model Size: While AWL improves performance, the authors note that using larger base models could further close the gap with frontier models.

Summary updated

BibTeX
@inproceedings{lyu2025adapting,
  author = {Bohan Lyu and Yadi Cao and Duncan Watson-Parris and Leon Bergen and Taylor Berg-Kirkpatrick and Rose Yu},
  title = {{Adapting While Learning: Grounding LLMs for Scientific Problems with Intelligent Tool Usage Adaptation}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=owulFly8oQ},
}
Figure