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
Heavy domain fine-tuning completely suppresses, but does not erase, a model's ability to use tools, and as few as 100 domain-specific agentic traces suffice to recover it.
摘要
Heavy supervised fine-tuning (SFT) on a target domain can strongly suppress capabilities that were present in the base model. We study this phenomenon in formal mathematics using Goedel-Prover-V2, an open-source model heavily trained on 1.8M formal-math examples. After domain specialization, the model almost completely loses its ability to produce valid tool calls, even when explicitly instructed to use tools, dropping from 89.4% function-calling accuracy in the base model to nearly 0%. We ask whether this agentic collapse is permanent or instead reversible, and fine-tune the specialized model on a small amount of Lean-specific tool-use data. Remarkably, as few as 100 agentic traces are sufficient to restore strong tool-calling behavior. This recovery is not benchmark-specific optimization: the recovery dataset is entirely drawn from the Lean setting, where the model uses natural-language queries to search the Mathlib library, yet these same 100 traces improve the Berkeley Function Calling Leaderboard (BFCL) from near zero to 83.8%, approaching the base model's 89.4% despite the mismatch in task distribution and protocol. The recovered capability is also practically useful in-domain: ProofNet pass@32 improves from 21.51% to 25.81%. Controlled comparisons show that recovery depends strongly on trace structure and diversity, and a code-specialized 7B replication establishes the pattern beyond formal mathematics. Together, these results show that heavy domain SFT can suppress general tool-use ability without permanently erasing it, and that a small amount of domain-specific agentic data can awaken dormant tool-use capabilities.