paper-with-me

홈 › Papers

Programming Every Example: Lifting Pre-training Data Quality like Experts at Scale

2024-09-25 · Fan Zhou, Zengzhi Wang, Qian Liu, Junlong Li, PengFei Liu

Large language model pre-training has traditionally relied on human experts to craft heuristics for improving the corpora quality, resulting in numerous rules developed to date. However, these rules lack the flexibility to address the unique characteristics of individual example effectively. Meanwhile, applying tailored rules to every example is impractical for human experts. In this paper, we demonstrate that even small language models, with as few as 0.3B parameters, can exhibit substantial data refining capabilities comparable to those of human experts. We introduce Programming Every Example (ProX), a novel framework that treats data refinement as a programming task, enabling models to refine corpora by generating and executing fine-grained operations, such as string normalization, for each individual example at scale. Experimental results show that models pre-trained on ProX-curated data outperform either original data or data filtered by other selection methods by more than 2% across various downstream benchmarks. Its effectiveness spans various model sizes and pre-training corpora, including C4, RedPajama-V2, and FineWeb. Furthermore, ProX exhibits significant potential in domain-specific continual pre-training: without domain specific design, models trained on OpenWebMath refined by ProX outperform human-crafted rule-based methods, improving average accuracy by 7.6% over Mistral-7B, with 14.6% for Llama-2-7B and 20.3% for CodeLlama-7B, all within 10B tokens to be comparable to models like Llemma-7B trained on 200B tokens. Further analysis highlights that ProX significantly saves training FLOPs, offering a promising path for efficient LLM pre-training.We are open-sourcing ProX with >100B corpus, models, and sharing all training and implementation details for reproducible research and future innovation. Code: https://github.com/GAIR-NLP/ProX

📄 PDF Abstract BibTeX arXiv:2409.17115

Code (1)

gair-nlp/prox 공식 구현 pytorch

Tasks

Large Language Model

Similar Papers 제목 키워드 기반

A Model-Oriented Approach for Lifting Symmetries in Answer Set Programming

2022-08-05 · Alice Tarzariol

When solving combinatorial problems, pruning symmetric solution candidates from the search space is essential. Most of the existing approaches are instance-specific and focus on the automatic computation of Symmetry Brea…

Inductive logic programming

Lifting Symmetry Breaking Constraints with Inductive Logic Programming

2021-12-22 · Alice Tarzariol, Martin Gebser, Konstantin Schekotihin

Efficient omission of symmetric solution candidates is essential for combinatorial problem-solving. Most of the existing approaches are instance-specific and focus on the automatic computation of Symmetry Breaking Constr…

Inductive logic programming

Training Quantized Neural Networks to Global Optimality via Semidefinite Programming

2021-05-04 · Burak Bartan, Mert Pilanci

Neural networks (NNs) have been extremely successful across many tasks in machine learning. Quantization of NN weights has become an important topic due to its impact on their energy efficiency, inference time and deploy…

Quantization

Exact Convex Reformulations of Linear Neural Networks via Completely Positive Lifting

2026-05-17 · Karthik Prakhya, Alp Yurtsever arxiv

We show that the training problem of a deep linear neural network under the squared loss admits an exact convex reformulation in a lifted space over a generalized completely positive cone. The reformulation has the same …

DS*: Tighter Lifting-Free Convex Relaxations for Quadratic Matching Problems

2017-11-29 · CVPR 2018 6 · Florian Bernard, Christian Theobalt, Michael Moeller

In this work we study convex relaxations of quadratic optimisation problems over permutation matrices. While existing semidefinite programming approaches can achieve remarkably tight relaxations, they have the strong dis…

Graph Matching