atlas

Research map / Large language models / Agents, code and math

Building Math Agents with Multi-Turn Iterative Preference Learning

ICLR 2025 · Large language models › Agents, code and math · approach: LLMs for optimization and heuristics · 1 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes multi-turn direct preference learning (M-DPO and M-KTO) with online iterative training for tool-integrated (Python interpreter) math reasoning, masking external-observation tokens from the loss.

Problem

Improving LLM math problem solving with external tools requires multi-turn decision making; existing work relies on SFT over synthetic data, and single-turn preference methods treat tool outputs as model-generated text, which hurts reasoning.

Approach

Formulate tool-integrated reasoning as a KL-regularized MDP, derive a multi-turn DPO loss (M-DPO) and multi-turn KTO (M-KTO) that sum log-ratios over model-generated turns only (masking external messages, valid under deterministic tool outputs), and run them in an online iterative framework with mixture sampling and reference-model updates.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Apply iterative M-DPO instead of SFTGemma-1.1-it-7B · GSM8K testaccuracy: 77.5 -> 83.9Helped
Apply iterative M-DPO instead of SFTGemma-1.1-it-7B · MATH testaccuracy: 46.1 -> 51.2Helped
Use multi-turn rather than single-turn iterative DPOGemma-1.1-it-7B · GSM8K testaccuracy: 81.7 -> 83.9Helped
Use multi-turn rather than single-turn iterative DPOGemma-1.1-it-7B · MATH testaccuracy: 48.9 -> 51.2Helped
Set KL coefficient eta to 0.01 rather than 0.1 (ablation)Gemma-1.1-it-7B iterative M-DPO · GSM8K testaccuracy: 83.9 -> 81.7Hurt
Set KL coefficient eta to 0.01 rather than 0.1 (ablation)Gemma-1.1-it-7B iterative M-DPO · MATH testaccuracy: 51.2 -> 50.1Hurt
Set KL coefficient eta to 0.5 rather than 0.1 (ablation)Gemma-1.1-it-7B iterative M-DPO · GSM8K testaccuracy: 83.9 -> 82.8Hurt
Set KL coefficient eta to 0.5 rather than 0.1 (ablation)Gemma-1.1-it-7B iterative M-DPO · MATH testaccuracy: 51.2 -> 49.7Hurt
Keep the reference fixed to the SFT policy instead of updating it each iteration (ablation)Gemma-1.1-it-7B iterative M-DPO · GSM8K testaccuracy: 83.9 -> 79.9Hurt
Keep the reference fixed to the SFT policy instead of updating it each iteration (ablation)Gemma-1.1-it-7B iterative M-DPO · MATH testaccuracy: 51.2 -> 48.0Hurt
Use mixture sampling rather than only on-policy sampling (ablation)Gemma-1.1-it-7B iterative preference learning · MATH testaccuracyHelped
Increase trajectories per prompt from N=12 to N=30 (ablation)Gemma-1.1-it-7B iterative preference learning · test accuracyaccuracyNo clear effect

Surprising findings

Limitations

Experimental setup

Datasets: Open-MathInstruct MATH train GSM8K train MetaMathQA MMIQC

Benchmarks: GSM8K MATH

Metrics: accuracy pass@n

Baselines: SFT (tool-integrated) RAFT Iterative single-turn DPO Iterative single-turn KTO WizardMath CodeLLaMA-2

Builds on: DPO KTO Iterative DPO (online RLHF) RAFT Open-MathInstruct

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy