SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2402.14270 · 2024

Take the Bull by the Horns: Hard Sample-Reweighted Continual Training Improves LLM Generalization

arXiv · PDF · Open in the Atlas

Code that ran

We lifted 3 functions out of this paper's own repositories and ran 3 of them in a sandbox. "Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results.

RepositoryRoleRan
vita-group/hardfocustraining canonical 3 of 3
FunctionStatusWhere it lives
f_func Ran vita-group/hardfocustraining/batch_training.py
pointer only (licence: NONE) · get_code("da7c2784b0e8d4b2")
g_func Ran vita-group/hardfocustraining/batch_training.py
pointer only (licence: NONE) · get_code("5e45eb1426da6e53")
h_func Ran vita-group/hardfocustraining/batch_training.py
pointer only (licence: NONE) · get_code("3bcd3f948c4f3f2e")

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

In the rapidly advancing arena of large language models (LLMs), a key challenge is to enhance their capabilities amid a looming shortage of high-quality training data. Our study starts from an empirical strategy for the light continual training of LLMs using their original pre-training data sets, with a specific focus on selective retention of samples that incur moderately high losses. These samples are deemed informative and beneficial for model refinement, contrasting with the highest-loss samples, which would be discarded due to their correlation with data noise and complexity. We then formalize this strategy into a principled framework of Instance-Reweighted Distributionally Robust Optimization (IR-DRO). IR-DRO is designed to dynamically prioritize the training focus on informative samples through an instance reweighting mechanism, streamlined by a closed-form solution for straightforward integration into established training protocols. Through rigorous experimentation with various models and datasets, our findings indicate that our sample-targeted methods significantly improve LLM performance across multiple benchmarks, in both continual pre-training and instruction tuning scenarios. Our codes are available at https://github.com/VITA-Group/HardFocusTraining.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2402.14270")
get_code_for_paper("2402.14270")
have("2402.14270")

Connect an agent — have() is free.