Bilevel Optimization of Synthetic Trajectories for Multi-Turn LLM Fine-Tuning
Shresth Verma, Mauricio Tec, Cheol Woo Kim, Kai Wang, Milind Tambe
NeurIPS page · OpenReview · alphaXiv · Open on the map
Category: LLM Post-Training: RL & Distillation › Reward Shaping for LLM Reasoning · Type: new method · Keywords: multi-turn LLM fine-tuning, synthetic trajectory reweighting, bilevel optimization, offline reinforcement learning, PAC-Bayesian analysis
Areas: RL for LLMs & Agents › Language Model Agents › Agentic Reinforcement Learning
Summary
BOOST is a bilevel optimization framework that reweights synthetic trajectories for multi-turn LLM fine-tuning, improving performance over baselines.
Explained to a 5-year-old
People want computers that can have long conversations, not just answer one question at a time. To teach the computer, we give it many example conversations. Some of these examples are real conversations people have had, while others are made up by other computers and can be good or bad. The computer learns to pay more attention to the good examples and less to the bad ones. It also tries to use new examples to learn new things, but not too many so it doesn't forget what it already knows. This helps the computer talk better in long conversations.
Explained to a 5-year-old, longer
Computers called LLMs are good at answering one question at a time. But they often struggle when you need them to keep talking for a long time, like a long chat. To help them learn, we give them lots of example conversations. Some of these examples are real conversations people have had. Others are made up by other computers, which can be either very good or not so good. If we just use all examples the same way, the bad ones can mess up the learning. So we need a way to tell which examples are better and give them more importance. The paper comes up with a method where a small part of the system learns to weight each example. It looks at a few real conversations that the system hasn't seen before to decide which made-up examples are useful. This way the system pays more attention to the good made-up examples and less to the bad ones. It also keeps some new examples to avoid forgetting how to do things. As a result, the computer gets better at having long, useful conversations.
For a technical reader
The paper tackles fine-tuning large language models for long, multi-turn conversations where real interaction data is scarce. It introduces BOOST, a bilevel optimization that learns to reweight synthetic trajectory data by training an inner LLM on the weighted data and an outer lightweight head on held-out real tasks. A PAC-Bayesian analysis provides insight into the trade-off between using diverse synthetic data and focusing on high-quality examples. Experiments show that BOOST consistently outperforms several baseline fine-tuning strategies on multi-turn dialogue benchmarks. The approach requires only a small validation set and can be integrated into existing pipelines without extensive engineering overhead.
Problem
Fine-tuning large language models for long, multi-turn interactions suffers from limited high-quality trajectory data. Offline reinforcement learning methods rely on trajectory data, but synthetic data can be heterogeneous, and using all trajectories equally can degrade performance.
Method
The approach formulates a bilevel optimization where an inner loop fine-tunes the LLM on reweighted synthetic trajectories, while an outer loop learns trajectory-level weights using a lightweight head on held-out real tasks, optimizing a PAC-Bayesian bound that balances diversity and quality.
Results
The approach consistently outperforms multiple baselines on multi-turn LLM fine-tuning tasks.
Contributions
A bilevel optimization framework for learning trajectory-level weights for synthetic data, a PAC-Bayesian analysis revealing trade-offs between diversity, task-shift risk, and effective sample size, and empirical validation on multi-turn dialogue tasks.
Research questions this paper is counted under
This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction