Cost-Effective Synthetic Data Generation for Post-Training using QWICK
synthetic data generation;post-training
Yes
No ethics review needed.
Please see the *Weakness* section for recommendations on experiments and analyses that could further enhance the paper.

**Additional questions and suggestions (not affecting the score)**:
1. How are the initial values for rewards, costs, and usage counts set for the first model in the model pool in Algorithm 1?
2. The question-level reward term occasionally lacks the question number subscript `j` (e.g., on line 136).
3. How is the cost term determined in line 25 of Algorithm 1? Should this line perhaps follow line 29? A similar issue appears in other algorithms within the appendix.
4. Why is the dataset-level reward term updated after each question in Algorithm 1 (line 30), rather than after completing the entire dataset? Has this design choice been empirically validated?
5. Is there an explanation for the observed decrease in model performance when the budget is increased for the MATH and MBPP datasets in Figure 4?
1. This paper addresses the critical challenge of generating synthetic data to enhance large language models (LLMs) in a cost-effective manner.
2. The proposed algorithm, QWICK, is technically robust, employing a multi-armed bandit formulation with budget constraints.
3. QWICK’s design is simple and has a low memory footprint, facilitating ease of implementation, adoption, and reproducibility.
4. Experimental results show that the method reduces costs by 40-50% compared to baseline methods while maintaining data quality.
5. QWICK demonstrates effectiveness across two distinct reward formulations: binary rewards and ORMs.
This paper addresses the challenge of improving LLMs through high-quality synthetic data generation in a cost-effective way. A common method to boost LLM performance involves sampling reasoning chains from teacher LLMs and fine-tuning the target model on these synthetic samples. However, choosing an optimal teacher LLM is complicated due to two primary factors. First, there is a trade-off between cost and reward: state-of-the-art (SoTA) LLMs produce high-quality reasoning chains but are expensive, while smaller models are cheaper yet prone to errors. Second, different LLMs may excel on specific subsets of data, making model selection question-dependent.

To tackle this, the paper formulates the model selection as a Multi-armed Bandit (MAB) problem with budget constraints, where each LLM functions as an arm of the MAB. It introduces QWICK, an algorithm inspired by the Fractional KUBE algorithm for MABs, which is adapted to choose models on a per-question basis based on their estimated utility (reward/cost) of the choice.

The method is evaluated against several baselines, including random model selection and dataset-level model selection using the popular UCB1 algorithm, which importantly does not consider cost. Experiments on three datasets demonstrate that the proposed approach achieves cost-efficiency and is competitive with baselines while requiring a smaller budget.
The key weaknesses of the paper can be grouped into the following broad themes:

---
### Methodological Limitations
---

1. **Sparse Data and Inefficiency**: QWICK tracks raw rewards and costs for each (question, LLM) pair individually, using average reward and cost estimates per pair for model selection. This approach has limitations, as empirical data required for reward and cost estimation can become sparse, particularly as the number of questions grows, the LLM pool expands, or the budget decreases. Furthermore, the algorithm is inefficient, as it estimates reward and cost for each question in isolation without leveraging similarities across questions. A more effective approach might involve using dense representations of questions and training reward and cost models for each LLM.

&nbsp;

---
### Inadequate Experimental Validation
---

The paper's experimental design lacks critical baseline comparisons, raising questions about the benefits of the proposed approach:

2. **Lack of Individual Model Baselines**: Current comparisons focus only on model selection approaches. Benchmarking against baselines that generate synthetic data by sampling from individual models in the pool (e.g., the weakest, strongest, etc.) within budget constraints would clarify whether model selection truly adds value or if a single model could achieve comparable performance.

3. **Question-Wise UCB1 Comparison**: The paper only benchmarks against a dataset-level UCB1 approach, where UCB1 selects a single model for the entire dataset. However, UCB1 could also be adapted for query-level model selection by using the cost term from Algorithm 1 solely to determine when to stop generating rather than to select between models. A comparison of QWICK with this question-level UCB1 algorithm would provide a fairer assessment of the benefits of incorporating cost into the model selection process.

4. **Baselines Incorporating Model Performance Priors**: LLMs often come with prior information about their general or task-specific performance, which can inform model selection by using this information as a reward prior. To evaluate QWICK more thoroughly, it should be compared against simple baselines that leverage this performance data. For instance, rather than sampling models uniformly at random (as done in the Random baseline), models could be sampled from a weighted distribution that reflects their relative performance, whether general or task-specific.

5. **Missing details**: Key experimental details are missing in the paper, such as:
    - *Diversity and Coverage Metrics*: Although these metrics are referenced throughout the paper, they are not formally defined, leaving their specific calculation and interpretation unclear.
    - *Budget Interpretation*: The paper employs normalized budgets to compare methods but lacks a clear, interpretable context for these values. For instance, it is unclear whether a normalized budget of 1 represents the resources needed for a single pass over the entire dataset by the weakest LLM, the strongest LLM, all LLMs combined, or multiple passes with these models. Without this grounding, it’s challenging to gauge the flexibility or limitations of a given budget setting, and to determine which additional baselines would be relevant for comparison.

&nbsp;

---
### Unclear Broader Impact
---
The broader impact and applicability of the paper’s approach are unclear, as it is evaluated within a narrow context: generating Chain-of-Thought (CoT) responses from a limited pool of LLMs for fine-tuning. This limited scope raises questions about the approach's generalizability and whether QWICK is the optimal method for synthetic data generation under resource constraints.

6. Specifically, the paper lacks comparison to alternative methodologies that could also offer an efficient use of the data generation budget, such as:
- *Advanced Inference Techniques*: More sophisticated (and costlier) methods, like Monte Carlo Tree Search (MCTS) or self-refinement, could be used to generate higher-quality responses rather than relying on standard CoT sampling.
- *Focusing on Challenging Tasks*: Instead of generating numerous correct answers for simpler tasks, prioritizing accurate solutions for more challenging tasks could make better use of resources, especially when combined with advanced inference techniques.
- *Training with Other Preference Learning Approaches*: Preference learning methods like Direct Preference Optimization (DPO) can utilize incorrect samples, which QWICK currently discards. Comparing QWICK’s performance when training with DPO rather than Supervised Fine-tuning (SFT) on its generated data, alongside appropriate DPO baselines, would provide a more thorough evaluation of its cost-effectiveness.

Comparison with these alternative approaches would offer a clearer view of QWICK’s relative strengths and limitations, contributing more substantially to understanding best cost-effective synthetic data generation practices for fine-tuning LLMs.

&nbsp;

---
### Ablation and Scaling Experiments
---
The paper lacks ablation experiments on various components of the algorithm, and its scalability remains uncertain.

7. **Question-Level Rewards Ablation**: It would be insightful to ablate the question-level rewards in QWICK, which can get sparse, and rely solely on dataset-level rewards for model selection. This comparison would clarify the necessity of question-level reward tracking.
8. **Dataset-Level Rewards Ablation**: Similarly, removing dataset-level rewards and evaluating its impact on overall performance would provide useful insights.
9. **Scaling the Number of Models**: The current experiments limit QWICK to selecting among a maximum of three models from the same family. Testing QWICK’s scalability with a larger and more diverse model pool could reveal how it handles sparser rewards and increased costs, and may also help identify an optimal range for the number of candidate models.
10. **Scaling the Dataset Size**: Evaluating QWICK’s performance on larger datasets could yield valuable insights as well, as this would also lead to sparser rewards and increased costs.
Yes
N/A
No ethics review needed.
- What is the red dotted line in the figures?
- The paper makes contributions to improving synthetic data generation for finetuning. The authors study this in the setting of limited budget as synthetic data generation is still costly even for finetuning.
- The authors have included algorithms in the paper that detail the implementations including for baseline comparisons in the appendix.  This makes the proposed approach and related approaches easy to understand.
This paper introduces Question-Wise model Pick (QWICK) an approach for generating high quality synthetic data with compute budgets.  QWICK uses a multi-armed bandit strategy to select models that can be used for generation.  The proposed approach is evaluated on mat and coding finetuning benchmarks and results indicate compute improvements from training with QWICK finetuning data.
- There are some missing comparisons including comparison to always using the best and worst models as well as comparisons with real data.  it was unclear to me if this is the red dotted line in the figures as this line was not included in the legend.  Having the results for each model included the figure would also help show how much better the selection is at various amounts of compute versus only using the 2B, 9B, or 27B models respectively.
- It is unclear how strong the models have to be as even the Gemma-2-2B models are already quite powerful, and the effectiveness of the algorithm is contingent on there being a large diversity in the models.  Can the authors include some ablation with a larger variance of models? This also goes in hand with the previous comment on showing the performance of each model individually.
- One limitation of the proposed approach is that the proposed approach is applied to tasks where the answer is easy to verify.  For other tasks (summarization or more complex instruction following), it may be hard to extend the proposed approach as knowing whether a model produces the correct answer is more difficult.
- The experiments only evaluate on train/test with the same data.  It would be interesting to know if the synthetic data has other impact on the evaluation particularly downstream robustness (e.g. train on MATH and test on GSM).
Yes
No ethics review needed.
Please see weaknesses.
- Cost-Efficiency: The paper proposes a cost-saving solution for synthetic data generation, achieving significant budget reductions without compromising data quality.
- Adaptive Model Selection: QWICK's question-wise approach allows it to adapt to specific data points by selecting models dynamically, which improves data generation's quality and validity across diverse datasets.
- Empirical Validation: The algorithm demonstrates superior performance in experiments compared to baseline methods
This paper presents QWICK (Question-Wise model pICK), a novel algorithm designed to efficiently generate high-quality synthetic data for post-training large language models (LLMs) by dynamically selecting the optimal model for each specific question based on a balance of cost and quality. The approach formulates the problem as a budget-limited multi-armed bandit (MAB), allowing the algorithm to achieve reduction in cost on programming tasks and mathematics datasets compared to traditional methods. QWICK aims to address the challenge of cost-effective synthetic data generation by leveraging both strong and weak models to optimize data quality without exceeding budget constraints.
- Dependency on Initial Model Pool: The algorithm's performance is tied to the quality of the initial pool of models, and it does not account for model improvement over time, which may limit its effectiveness in environments with evolving model capabilities.
- Constrained scenario: I assume the authors consider the scenario where the constructer of the dataset uses only API calls. This scenario is kind of narrow, since most of the companies and researchers may have their own GPU resources, I wonder this approach is still applicable under the assumption that some GPU is accessible, so that inference can be done locally.
- What happens to the data generated in previous iterations: I wonder are the samples generated in iterations prior to the termination still kept in the generated dataset? Or are they simply abandoned? If it is the latter, wouldn't it cause waste of computation?
Yes
No ethics review needed.
please refer to weakness
- The motivation to reduce the cost of generating high-quality synthetic data is compelling. As written in Lines 186–187, models can exhibit varying performance across the entire dataset, so selecting different models is not only appropriate for specific questions but also more cost-effective than relying solely on larger models.
- With the help of budget-limited multi-armed bandits, QWICK considers utility in determining which model to use, the evaluation metrics are the cost of LLM and the reward with ground truth or ORM. 
- Experimental results show that QWICK consistently outperforms both the random selection baseline and UCB1 specifically while maintaining sample diversity and coverage.
This paper focuses on addressing the great cost of existing synthetic data generation methods. While stronger models generally produce higher-quality data, they come with significant computational demands. So this paper proposes QWICK, a cost-efficient framework that strategically selects among strong or weak models. By employing a reward mechanism, QWICK identifies the suitable model for each specific question, significantly reducing the cost of generating high-quality data while maintaining strong performance.
- This paper may be challenging for readers unfamiliar with reinforcement learning, including multi-armed bandits. The authors could consider presenting the methods in a more straightforward manner for clarity.
- The authors only test each dataset on models from the same series. Since models from different series could have comparable costs, how would selecting models from different origins impact the results?
- The prompt to generate synthetic data is missing, whether baselines are the same with QWICK.
@inproceedings{
anonymous2024costeffective,
title={Cost-Effective Synthetic Data Generation for Post-Training using {QWICK}},
author={Anonymous},
booktitle={Submitted to The Thirteenth International Conference on Learning Representations},
year={2024},
url={https://openreview.net/forum?id=tp1QiTH2aa},
note={under review}
}
Large language models (LLMs) are showing expert-level ability in various fields (e.g., programming and math). However, this progress heavily relies on the generation of high-quality synthetic data to improve the models’ capabilities during post-training. Generating such data in a cost-effective manner presents a significant challenge. Specifically, stronger models tend to generate higher-quality data but come with a substantial computational cost, while weaker models are cheaper to run but may produce weaker outputs. In this paper, we introduce Question-Wise model pICK (QWICK) to address this challenge. By tracking the empirical reward, cost, and number of trials for each model, QWICK strikes a balance between exploitation and exploration, ultimately converging on a cost-effective model for each specific question. Specifically, QWICK achieves a 50\% cost reduction on a programming dataset and a 40\% cost reduction on a mathematics dataset, without compromising data quality. Furthermore, compared to baseline methods, our approach can produce up to 2.1 times more valid synthetic data at the same cost. Our anonymized code is available at https://anonymous.4open.science/r/QWICK-17C3
I certify that there is no URL (e.g., github page) that could be used to find authors’ identity.
I acknowledge that I and all co-authors of this work have read and commit to adhering to the ICLR Code of Ethics.
synthetic data generation post-training
I certify that there is no acknowledgement section in this submission for double blind review.
/pdf/921131378b38e68ea93d8ab07e100c5bd1b531fa.pdf
generative models
I understand the reciprocal reviewing requirement as described on https://iclr.cc/Conferences/2025/CallForPapers. If none of the authors are registered as a reviewer, it may result in a desk rejection at the discretion of the program chairs. To request an exception, please complete this form at https://forms.gle/Huojr6VjkFxiQsUp6.
I certify that this submission complies with the submission instructions as described on https://iclr.cc/Conferences/2025/AuthorGuide.
Cost-Effective Synthetic Data Generation for Post-Training using QWICK
ICLR 2025 Conference Submission
ICLR.cc/2025/Conference/Submission