Share from 0:00
0:00
/

"Flow-DPO: Improving LLM Mathematical Reasoning through Online Multi-Agent Learning"

The podcast on this paper is generated with Google's Illuminate.

Two LLMs collaborate to solve math problems step-by-step, learning from each other's mistakes

πŸ“š https://arxiv.org/abs/2410.22304

🎯 Original Problem:

Mathematical reasoning remains a significant challenge for LLMs. While datasets with questions and answers exist, generating detailed, accurate reasoning steps is difficult. Human-annotated steps are often too concise or disorganized for effective training.

-----

πŸ”§ Solution in this Paper:

β†’ Introduces Flow-DPO, a multi-agent framework using two LLMs working together:

- Answer LLM: Generates small solution chunks

- Stop LLM: Determines if the answer is complete

β†’ Uses online Direct Preference Optimization (DPO) with random rollouts:

- Generates alternative answer paths at each node

- Forms DPO training pairs when paths lead to different outcomes

- Updates models in real-time as new data arrives

β†’ Allows flexible chunk sizes instead of predefined reasoning steps

-----

πŸ’‘ Key Insights:

β†’ Multi-agent collaboration beats single model inference

β†’ Real-time learning with dense rewards improves performance

β†’ Incremental verification works better than final answer checking

β†’ Compatible with other enhancement techniques

-----

πŸ“Š Results:

β†’ Llama-3-8B-Instruct: 20% accuracy improvement within 2000 training instances

β†’ Phi-3-medium: Improved from 79% to 83% accuracy

β†’ Flow-generated traces outperformed both ground truth and self-generated traces on GSM8K and MATH benchmarks

Discussion about this video

User's avatar

Ready for more?