Reproduce “Filter-then-Weight: Online Data Selection and Reweighting for LLM Fine-Tuning” on OpenResearch
Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.
Universal app for Apple silicon and Intel. Requires macOS 11 or later.
About this paper
Fangxin Wang, Peyman Baghershahi, Langzhou He, Henry Peng Zou, Sourav Medya, Philip S. Yu
An optimizer-aware online data selection and reweighting framework, "Filter-then-Weight," enhances large language model fine-tuning by efficiently identifying high-utility data. It improves downstream performance and convergence, frequently surpassing full-data training while utilizing just 5% of the available data.
Key insights
- Decoupling the filtering and reweighting stages is crucial for stability and effectiveness when working with noisy LLM gradients, preventing issues like overfitting to noise or destructive cancellation.
- Applying non-negative weights in subset-level gradient matching is essential to prevent destructive gradient cancellation and ensure constructive accumulation, thereby stabilizing LLM fine-tuning.
- Integrating adaptive optimizer dynamics through optimizer-aware preconditioning into the data selection and reweighting objective significantly improves the alignment of the composite gradient with the target update direction.
Summary by alphaXiv.
Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.