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

CoSineVerifier: Tool-Augmented Answer Verification for Computation-Oriented Scientific Questions

Ruixiang Feng, Zhenwei An, Yuntao Wen, Ran Le, Yiming Jia, Chen Yang, Zongchao Chen, Lisi Chen, Shen Gao, Shuo Shang, Yang Song, Tao ZhangarXiv 2025 · DOI

Abstract

Automated verification of complex mathematical and scientific answers remains a significant hurdle for training large language models (LLMs) via Reinforcement Learning with Verifiable Rewards (RLVR). Traditional rule-based and model-based verifiers often fail due to structural variations in equivalent answers or internal calculation errors. We introduce CoSineVerifier, a 4B-parameter verifier that leverages external tools, such as a Python interpreter and unit converters, to validate scientific responses. By employing a two-stage training pipeline—cold-start supervised fine-tuning followed by tool-rewarded reinforcement learning—CoSineVerifier achieves state-of-the-art verification accuracy (96.6% on VerifyBench) while maintaining high token efficiency. Furthermore, we demonstrate that using CoSineVerifier as a reward model significantly improves the reasoning capabilities of downstream models on challenging benchmarks like AIME.

Introduction

As large language models (LLMs) increasingly rely on Reinforcement Learning with Verifiable Rewards (RLVR) to improve reasoning, the quality of the reward signal has become a critical bottleneck. In computation-heavy domains like physics, chemistry, and advanced mathematics, verifying a model's final answer is non-trivial. Rule-based verifiers often fail when a model outputs a mathematically equivalent but structurally different formula (e.g., $2 \times 2$ vs $4$). Meanwhile, LLM-based verifiers frequently hallucinate during complex algebraic simplifications or physical constant substitutions. If the verifier provides an incorrect reward, the RL pipeline penalizes correct reasoning, limiting the base model's potential.

Comparison of verification methods: Rubric-based and Model-based verifiers fail on complex symbolic math, whereas CoSineVerifier uses a Python tool to confirm equivalence.

Methodology

CoSineVerifier addresses these challenges by offloading the heavy lifting of computation to external tools. Instead of attempting to "guess" if two complex expressions are equal, the verifier writes a Python script to compute both and compares the numerical outputs.

Data Curation and Augmentation

The authors generated 1.14 million candidate samples across 15 datasets using 14 different LLMs. They specifically isolated ~63k "disagreement" cases where standard verifiers conflicted. To ensure robustness against edge cases, they used GPT-o3 to synthesize "long-tail" errors, such as boundary errors and truncated responses, which accounted for a significant portion of real-world failures.

Two-Stage Training Pipeline

  1. Cold-Start SFT: The base model was first fine-tuned on ~29k curated tool-use trajectories to establish basic proficiency in writing and executing code.
  2. Reinforcement Learning (RL): The model was optimized using the DAPO algorithm. A unique tool-use shaping reward was implemented, providing bonuses for correct answers achieved via tools and penalizing incorrect answers that ignored available tools.
The CoSineVerifier pipeline, including (a) an example tool-augmented verification trace and (b) the data curation, augmentation, and post-training stages.

Results and Key Insights

CoSineVerifier-Tool-4B achieved state-of-the-art (SOTA) performance across multiple benchmarks, including 96.6% on VerifyBench and 89.7% on Sci-Bench. Despite its small size (4B parameters), it outperformed massive closed-source models like GPT-4o and Gemini 2.5 Flash on hard verification tasks.

Key findings include:

  • Efficiency: CoSineVerifier uses 2.4x to 19x fewer tokens than standard Chain-of-Thought (CoT) verifiers. By writing concise code rather than rambling through internal reasoning, it reaches a verdict faster and more accurately.
  • Tool Mastery via RL: While SFT provided a baseline, RL pushed tool-invoked accuracy from 76% to 90%, teaching the model when and how to effectively leverage external tools.
  • Downstream Impact: Using CoSineVerifier as a reward model for training a Qwen3-4B-Instruct model resulted in a performance boost of 1.7%–6.6% on AIME 2024 and 1.8%–6.0% on AIME 2025, proving that high-fidelity verification directly yields better reasoners.

Conclusion

CoSineVerifier demonstrates that tool augmentation is a superior path for verifying computation-oriented scientific questions. While it requires a secure sandbox environment for Python execution, the resulting gains in accuracy and training efficiency are substantial. Future work may involve expanding the toolset to include web search or database querying to create universal reward models for broader domains.

Summary updated

BibTeX
@misc{feng2025cosineverifier,
  author = {Ruixiang Feng and Zhenwei An and Yuntao Wen and Ran Le and Yiming Jia and Chen Yang and Zongchao Chen and Lisi Chen and Shen Gao and Shuo Shang and Yang Song and Tao Zhang},
  title = {{CoSineVerifier: Tool-Augmented Answer Verification for Computation-Oriented Scientific Questions}},
  year = {2025},
  eprint = {2512.01224},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2512.01224},
}
Figure