SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2312.02406 · 2023

Efficient Online Data Mixing For Language Model Pre-Training

arXiv · PDF · Open in the Atlas

Code that ran

7 of 9 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 1 honoured the contract we drafted, 0 violated it and 1 has no contract verdict; 5 failures of our instrument; 2 no recorded run), measured 2026-11-21; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2312.02406.json · badge: /api/ran/2312.02406.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
alon-albalak/online-data-mixing community (classifier label)
classifier basis not recorded on the link
7 ran · 2 no recorded run
FunctionStatusWhere it lives
code Ran
ran, honoured the contract we drafted
alon-albalak/online-data-mixing/bigram_model.py
pointer only (licence: Apache-2.0) · get_code("01edd35282158f9c")
How it ran

The body of this sample is withheld: Apache-2.0, as GitHub detects it on this paper's repository, alon-albalak/online-data-mixing, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

data_file_path Ran
ran; our contract draft was wrong, not the code
alon-albalak/online-data-mixing/bigram_model.py
pointer only (licence: Apache-2.0) · get_code("bdf28f9492a770dc")
How it ran

The body of this sample is withheld: Apache-2.0, as GitHub detects it on this paper's repository, alon-albalak/online-data-mixing, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_flops Ran
ran on a synthesized input
alon-albalak/online-data-mixing/megatron/logging.py
pointer only (licence: Apache-2.0) · get_code("4f686edc1148a835")
How it ran

The body of this sample is withheld: Apache-2.0, as GitHub detects it on this paper's repository, alon-albalak/online-data-mixing, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

human_readable_flops Ran
ran; our contract draft was wrong, not the code
alon-albalak/online-data-mixing/megatron/logging.py
pointer only (licence: Apache-2.0) · get_code("32c8c6d61ee207b7")
How it ran

The body of this sample is withheld: Apache-2.0, as GitHub detects it on this paper's repository, alon-albalak/online-data-mixing, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

index_file_path Ran
ran; our contract draft was wrong, not the code
alon-albalak/online-data-mixing/bigram_model.py
pointer only (licence: Apache-2.0) · get_code("8b1a74a6db32c163")
How it ran

The body of this sample is withheld: Apache-2.0, as GitHub detects it on this paper's repository, alon-albalak/online-data-mixing, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

pairwise Ran
ran; our contract draft was wrong, not the code
alon-albalak/online-data-mixing/configs/gen_docs.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from ningding-o/MemoryFormer, is pointer only (licence: NONE) · get_code("50c9c165cf801f59")
How it ran

The body of this sample is withheld: Apache-2.0, as GitHub detects it on this paper's repository, alon-albalak/online-data-mixing, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

to_md Ran
ran; our contract draft was wrong, not the code
alon-albalak/online-data-mixing/configs/gen_docs.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from ningding-o/MemoryFormer, is pointer only (licence: NONE) · get_code("64dd872a8ac47294")
How it ran

The body of this sample is withheld: Apache-2.0, as GitHub detects it on this paper's repository, alon-albalak/online-data-mixing, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

broadcast_data Not yet run
unverified (harvested, no recorded run)
alon-albalak/online-data-mixing/megatron/mpu/data.py
pointer only (licence: Apache-2.0) · get_code("ec62b348d91f2d73")
How it ran

The body of this sample is withheld: Apache-2.0, as GitHub detects it on this paper's repository, alon-albalak/online-data-mixing, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

get_docs Not yet run
unverified (harvested, no recorded run)
alon-albalak/online-data-mixing/configs/gen_docs.py
pointer only (licence: Apache-2.0) · get_code("750d7ac5c014981c")
How it ran

The body of this sample is withheld: Apache-2.0, as GitHub detects it on this paper's repository, alon-albalak/online-data-mixing, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 9 samples lifted from this paper's linked repositories, 9 carry a function identity and 0 do not. Of the 9 distinct functions with an identity, 7 are also present in other papers whose code we hold (6 with at least one paper dated earlier, 0 the same month, 6 later) and 2 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
data_file_path 8 other papers
4 dated earlier, 4 later
2022.emnlp-demos.40 (2022 (year only))
BMCook: A Task-agnostic Compression Toolkit for Big Models
2302.13939 (2023-02)
SpikeGPT: Generative Pre-trained Language Model with Spiking Neural Networks
2305.09137 (2023-05)
Pre-Training to Learn in Context
and 5 more not named here
index_file_path 8 other papers
4 dated earlier, 4 later
2022.emnlp-demos.40 (2022 (year only))
BMCook: A Task-agnostic Compression Toolkit for Big Models
2302.13939 (2023-02)
SpikeGPT: Generative Pre-trained Language Model with Spiking Neural Networks
2305.09137 (2023-05)
Pre-Training to Learn in Context
and 5 more not named here
code 7 other papers
3 dated earlier, 4 later
2022.emnlp-demos.40 (2022 (year only))
BMCook: A Task-agnostic Compression Toolkit for Big Models
2305.09137 (2023-05)
Pre-Training to Learn in Context
2307.15504 (2023-07)
Exploring Format Consistency for Instruction Tuning
and 4 more not named here
pairwise 5 other papers
1 dated earlier, 4 later
2205.09921 (2022-05)
KERPLE: Kernelized Relative Positional Embedding for Length Extrapolation
2406.12428 (2024-06)
PSLM: Parallel Generation of Text and Speech with LLMs for Low-Latency Spoken Dialogue Systems
2410.04798 (2024-10)
DAPE V2: Process Attention Score as Feature Map for Length Extrapolation
and 2 more not named here
to_md 5 other papers
1 dated earlier, 4 later
2205.09921 (2022-05)
KERPLE: Kernelized Relative Positional Embedding for Length Extrapolation
2406.12428 (2024-06)
PSLM: Parallel Generation of Text and Speech with LLMs for Low-Latency Spoken Dialogue Systems
2410.04798 (2024-10)
DAPE V2: Process Attention Score as Feature Map for Length Extrapolation
and 2 more not named here
get_docs 1 other paper
1 dated earlier
2205.09921 (2022-05)
KERPLE: Kernelized Relative Positional Embedding for Length Extrapolation
human_readable_flops 1 other paper
1 later
2410.04798 (2024-10)
DAPE V2: Process Attention Score as Feature Map for Length Extrapolation

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-21.

Repositories linked to this paper

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

Abstract

The data used to pretrain large language models has a decisive impact on a model's downstream performance, which has led to a large body of work on data selection methods that aim to automatically determine the most suitable data to use for pretraining. Existing data selection methods suffer from slow and computationally expensive processes, a problem amplified by the increasing size of models and of pretraining datasets. Data mixing, on the other hand, reduces the complexity of data selection by grouping data points together and determining sampling probabilities across entire groups. However, data mixing proportions are typically fixed before training and therefore cannot adapt to changing training dynamics. To address these limitations, we develop an efficient algorithm for Online Data Mixing (ODM) that combines elements from both data selection and data mixing. Based on multi-armed bandit algorithms, our online approach optimizes the data mixing proportions during training. Remarkably, our method trains a model that reaches the final perplexity of the next best method with 19\% fewer training iterations, and improves performance on the 5-shot MMLU benchmark by 1.9% relative accuracy, while adding negligible wall-clock time during pretraining.

For agents

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

get_harvested_code_for_paper("2312.02406")
get_code_for_paper("2312.02406")
have("2312.02406")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2312.02406.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2312.02406.svg)](https://syntology.ai/paper/2312.02406)

Connect an agent — have() is free.