SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2606.14971 · 2026

FastMix: Fast Data Mixture Optimization via Gradient Descent

Xiaojuan Qi, Jun Xia, Bin Xia, Ruobing Xie, Haoru Tan, Xingwu Sun, Itong Wu, Yanfeng Chen

arXiv · PDF · Open in the Atlas

Code that ran

9 of 10 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; 5 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 4 failures of our instrument; 1 no recorded run), measured 2026-11-22; 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/2606.14971.json · badge: /api/ran/2606.14971.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
hrtan/fastmix canonical (classifier label)
classifier basis: census
9 ran · 1 no recorded run
FunctionStatusWhere it lives
apply_rope Ran
ran; our contract draft was wrong, not the code
hrtan/fastmix/lit_gpt/model.py
pointer only (licence: NONE) · get_code("5728c74084e12d35")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hrtan/fastmix when it was checked. 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.

build_rope_cache Ran
ran, honoured the contract we drafted
hrtan/fastmix/lit_gpt/model.py
pointer only (licence: NONE) · get_code("a30c7463cb6330d7")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hrtan/fastmix when it was checked. 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.

chunked_cross_entropy Ran
ran; our contract draft was wrong, not the code
hrtan/fastmix/lit_gpt/utils.py
pointer only (licence: NONE) · get_code("4e35a3ab2bb8fa7f")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hrtan/fastmix when it was checked. 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.

code Ran
ran, honoured the contract we drafted
hrtan/fastmix/lit_gpt/packed_dataset.py
pointer only (licence: NONE) · get_code("fa298642043e1282")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hrtan/fastmix when it was checked. 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.

encode_with_append_zero Ran
ran, honoured the contract we drafted
hrtan/fastmix/pretrain/train_fastmix_sft.py
pointer only (licence: NONE) · get_code("3875f2f28e63bee8")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hrtan/fastmix when it was checked. 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.

find_multiple Ran
ran, honoured the contract we drafted
hrtan/fastmix/lit_gpt/utils.py
pointer only (licence: NONE) · get_code("f5d9c92914e0ccfa")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hrtan/fastmix when it was checked. 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.

load_sft_data Ran
ran; our contract draft was wrong, not the code
hrtan/fastmix/pretrain/train_fastmix_sft.py
pointer only (licence: NONE) · get_code("8fcbbb3fc6816617")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hrtan/fastmix when it was checked. 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.

maybe_align Ran
ran; our contract draft was wrong, not the code
hrtan/fastmix/lit_gpt/rmsnorm.py
pointer only (licence: NONE) · get_code("c6283b7a1a1785ba")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hrtan/fastmix when it was checked. 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.

num_parameters Ran
ran, honoured the contract we drafted
hrtan/fastmix/lit_gpt/utils.py
pointer only (licence: NONE) · get_code("367d564f9b814546")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hrtan/fastmix when it was checked. 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_available Not yet run
unverified (harvested, no recorded run)
hrtan/fastmix/lit_gpt/speed_monitor.py
pointer only (licence: NONE) · get_code("3f3d25ea807f6d5c")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hrtan/fastmix when it was checked. 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 10 samples lifted from this paper's linked repositories, 10 carry a function identity and 0 do not. Of the 10 distinct functions with an identity, 6 are also present in other papers whose code we hold (6 with at least one paper dated earlier, 0 the same month, 0 later) and 4 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
build_rope_cache 8 other papers
8 dated earlier
2401.02385 (2024-01)
TinyLlama: An Open-Source Small Language Model
2408.03506 (2024-08)
1.5-Pints Technical Report: Pretraining in Days, Not Months -- Your Language Model Thrives on Quality Data
2409.17115 (2024-09)
Programming Every Example: Lifting Pre-training Data Quality Like Experts at Scale
and 5 more not named here
apply_rope 7 other papers
7 dated earlier
2401.02385 (2024-01)
TinyLlama: An Open-Source Small Language Model
2405.20340 (2024-05)
MotionLLM: Understanding Human Behaviors from Human Motions and Videos
2408.03506 (2024-08)
1.5-Pints Technical Report: Pretraining in Days, Not Months -- Your Language Model Thrives on Quality Data
and 4 more not named here
find_multiple 6 other papers
6 dated earlier
2307.09288 (2023-07)
Llama 2: Open Foundation and Fine-Tuned Chat Models
2406.06046 (2024-06)
MATES : Model-Aware Data Selection for Efficient Pretraining with Data Influence Models
2408.15793 (2024-08)
Language Adaptation on a Tight Academic Compute Budget: Tokenizer Swapping Works and Pure bfloat16 Is Enough
and 3 more not named here
code 5 other papers
5 dated earlier
2401.02385 (2024-01)
TinyLlama: An Open-Source Small Language Model
2406.06046 (2024-06)
MATES : Model-Aware Data Selection for Efficient Pretraining with Data Influence Models
2410.08102 (2024-10)
Efficient Pretraining Data Selection for Language Models via Multi-Actor Collaboration
and 2 more not named here
maybe_align 5 other papers
5 dated earlier
2401.02385 (2024-01)
TinyLlama: An Open-Source Small Language Model
2407.05483 (2024-07)
Just read twice: closing the recall gap for recurrent language models
2410.05363 (2024-10)
Towards World Simulator: Crafting Physical Commonsense-Based Benchmark for Video Generation
and 2 more not named here
get_flops_available 2 other papers
2 dated earlier
2412.06464 (2024-12)
Gated Delta Networks: Improving Mamba2 with Delta Rule
2503.15450 (2025-03)
SkyLadder: Better and Faster Pretraining via Context Window Scheduling

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-22.

Repositories linked to this paper

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

Abstract

While large and diverse datasets have driven recent advances in large models, identifying the optimal data mixture for pre-training and post-training remains a significant open problem. We address this challenge with FASTMIX, a novel framework that automates data mixture discovery while training only a single proxy model. Instead of relying on predefined heuristics or resource-intensive simulations, FASTMIX jointly optimizes mixture coefficients and model parameters, substantially improving efficiency and scalability over prior approaches. At the core of FASTMIX is a reformulation of mixture selection as a bilevel optimization problem. Under this reformulation, we show that optimizing mixture ratios is mathematically equivalent to assigning per-source loss weights under uniform source sampling. This embeds the mixture coefficients directly into the differentiable iterative optimization objective, enabling efficient, gradient-based optimization of both mixture and model. To solve the optimization problem, FASTMIX implements an approximate iterative optimization procedure, alternating between (i) updating model parameters on data sampled according to current mixture ratios (inner loop) and ( ii) updating mixture ratios based on validation feedback (outer loop). Across pre-and post-training, FASTMIX outperforms baselines while drastically reducing search cost. Code (https://github.com/hrtan/fastmix) 🔥 x55 🔥 x550 🔥

For agents

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

get_harvested_code_for_paper("2606.14971")
get_code_for_paper("2606.14971")
have("2606.14971")

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

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

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

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

Connect an agent — have() is free.