Awakening the Sleeping Agent: Lean-Specific Agentic Data Reactivates General Tool Use in Goedel Prover

Jui-Hui Chung, Hongzhou Lin, Lai Jiang, Shange Tang, Chi Jin

TL;DR

When AI models are heavily specialized for a single task—like formal mathematics—they often suffer from "agentic collapse," losing their ability to use general tools and APIs. This paper demonstrates that this capability isn't permanently erased but merely suppressed; by fine-tuning on as few as 100 domain-specific examples, researchers "awakened" latent general-purpose tool-use abilities, restoring performance from near-zero to over 83%.

What Problem Does This Paper Address?

In the world of Large Language Models (LLMs), there is a well-known risk called catastrophic forgetting. When you take a general-purpose model (like Qwen3) and "super-specialize" it for a difficult domain (like Lean 4 formal mathematics), the model often loses its broader capabilities.

The authors highlight a specific phenomenon they call agentic collapse. Their specialized model, GOEDEL-PROVER-V2, is a world-class math prover, but it became "agentically lobotomized": it dropped from an 89.4% success rate in calling general tools (like weather or database APIs) to nearly 0%.

The central question is: Is this capability gone forever, or is it just "sleeping"? If it's just suppressed, can we bring it back using only data from the specialized domain, rather than re-introducing general-purpose training data?

Methods

The researchers explored two main ways to bring back tool-use:

  1. Model Merging (Baseline): They tried interpolating the weights of the specialized model with the base model (SLERP). While this brought back some tool-use, it caused a massive drop in math performance, proving that simple merging is a zero-sum game.
  2. Cross-Model Trace Distillation: This is the paper's core innovation. Since no single model was good at both tool-use and Lean math, they combined two:
  3. The Scaffolder: A general model (Qwen3-32B) planned the tool use and searched for theorems.
  4. The Specialist: The GOEDEL-PROVER-V2 model generated the actual high-quality Lean code.
  5. The Result: They created 18,000 high-quality "agentic traces" where a model reasons, calls a search tool, and then writes a successful proof.

They then performed Post-hoc Supervised Fine-Tuning (SFT), training the "collapsed" specialist model on tiny subsets of this data (100, 1,000, and 18,000 traces).

Datasets

  • Training Data: 18K curated Lean agentic traces derived from Open Math Reasoning (OMR) problems.
  • Math Evaluation:
    • PROOFNET: Undergraduate-level math problems.
  • MINIF2F: Formalized Olympiad-level math.
  • General Evaluation:
    • Berkeley Function Calling Leaderboard (BFCL v4): A rigorous benchmark for general tool use (APIs for weather, travel, etc.) that uses JSON formatting—completely different from the XML-style math tools used in training.

Key Insights and Ideas

  • Suppression, Not Erasure: The most "aha" moment is that the model didn't forget how to use tools; it forgot when and how to format them. The underlying "agentic logic" remained latent in the weights.
  • Extreme Data Efficiency: It only took 100 examples to restore the majority of the model's general tool-use capability. This suggests that "alignment" for tool use is a low-rank or high-level abstract skill that can be toggled on with minimal stimulus.
  • Cross-Domain Generalization: Even though the model was only trained to use a math search tool in an XML format, it regained the ability to use general-purpose APIs in JSON format. This proves that "agentic behavior" is a transferable meta-skill.
  • Retrieval as a Power-Up: By "awakening" the agent, the model could use the search tool to find theorems it literally could not generate on its own. About 45-50% of the theorems used in successful proofs were "out-of-model," meaning the tool provided knowledge the model's parameters didn't contain.

Key Results

  • General Tool Use (BFCL): The specialized model started at ~4.6% accuracy. After training on just 100 math traces, it jumped to 83.8%, nearly reaching the base model's 89.4%.
  • In-Domain Math (PROOFNET): The "awakened" model improved its math proving score (pass@32) from 21.51% to 25.81% because it could now effectively use a search tool to find complex lemmas.
  • Compliance: Tool-call execution became near-universal, with 99.1% to 99.9% of generations successfully attempting a tool call when prompted.

Limitations and Future Work

  • The "Trigger-Happy" Agent: The authors noted a trade-off in irrelevance detection. Because the training data only contained examples where tool use was helpful, the model became biased toward calling tools even when they weren't needed. Its accuracy on "irrelevance" tasks dropped significantly.
  • SFT vs. RL: The paper notes that models specialized via Reinforcement Learning (RL) behave differently than those specialized via SFT, and the recovery trajectories for RL models are not yet fully understood.
  • Formatting Fragility: While the model generalized well, it still isn't 100% back to the base model's level of nuance, particularly in complex multi-turn interactions.

In short: If your specialized AI seems to have "forgotten" its general skills, don't panic—it might just need a very small, very specific alarm clock to wake up.

Summary updated

BibTeX
@inproceedings{chung2026awakening,
  author = {Jui-Hui Chung and Hongzhou Lin and Lai Jiang and Shange Tang and Chi Jin},
  title = {{Awakening the Sleeping Agent: Lean-Specific Agentic Data Reactivates General Tool Use in Goedel Prover}},
  booktitle = {COLM},
  year = {2026},
  url = {https://openreview.net/forum?id=AkMaFtPrdk},
}
Figure