SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2507.09846 · NeurIPS · 2025

Through the River: Understanding the Benefit of Schedule-Free Methods for Language Model Training

Chulhee Yun, Kwangjun Ahn, Minhak Song, Beomhan Baek

arXiv · PDF · Open in the Atlas

Code that ran

6 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 0 have no contract verdict; 5 failures of our instrument; 3 no recorded run), measured 2026-11-23; 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/2507.09846.json · badge: /api/ran/2507.09846.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
epfml/llm-baselines canonical (classifier label)
classifier basis: plan_row
6 ran · 3 no recorded run
FunctionStatusWhere it lives
entropy_reg Ran
ran; our contract draft was wrong, not the code
epfml/llm-baselines/src/models/moe.py
code served (permissive licence) · get_code("1f1b81b26e97e55b")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn.functional as F

torch.manual_seed(0)

# Create a small logits tensor with batch size 2 and 4 logit values
# Shape: (batch_size=2, num_classes=4)
logits = torch.randn(2, 4)

# Define ARGS dict with all parameters for entropy_reg
ARGS = {
    "logits": logits,
    "mean_over_batch": True,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
load_balancing_loss_ Ran
ran; our contract draft was wrong, not the code
epfml/llm-baselines/src/models/moe.py
code served (permissive licence) · get_code("a69212d334eb9bc7")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn.functional as F

torch.manual_seed(0)

# Set up dimensions
batch_size_times_seq_length = 2
num_experts = 4
num_selected_experts = 2

# Create router_probs: shape [batch_size * sequence_length, num_experts]
# This represents probability assigned to each expert per token
router_probs = torch.rand(batch_size_times_seq_length, num_experts, dtype=torch.float32)

# Create expert_indices: shape [batch_size * sequence_length, num_selected_experts]
# These are indices identifying the top num_selected_experts for a given token
# Each value should be in range [0, num_experts)
expert_indices = torch.randint(0, num_experts, (batch_size_times_seq_length, num_selected_experts), dtype=torch.long)

ARGS = {
    'router_probs': router_probs,
    'expert_indices': expert_indices,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
log_mean Ran
ran; our contract draft was wrong, not the code
epfml/llm-baselines/src/models/moe.py
code served (permissive licence) · get_code("2f520af81f2675ca")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 1, dtype family float, shape (2,) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# Create a small tensor with shape (2, 4) - batch size 2, dimension 4
x = torch.randn(2, 4)

# dim parameter specifies which dimension to reduce over
dim = 1

ARGS = {
    "x": x,
    "dim": dim
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 1, dtype family float, shape (2,) — shape (2,) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
move_to_cpu Ran
ran; our contract draft was wrong, not the code
epfml/llm-baselines/src/logger/logger.py
code served (permissive licence) · get_code("1bd86a911c3f78a3")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import copy
import torch

torch.manual_seed(0)

# Create test data structures with tensors on CPU
tensor_on_cpu = torch.randn(2, 4)
nested_dict = {
    'a': torch.randn(2, 3),
    'b': {
        'c': torch.randn(2, 4, 5),
        'd': 42
    }
}
nested_list = [
    torch.randn(2, 4),
    [torch.randn(3, 4), 'string'],
    {'key': torch.randn(2, 2)}
]
nested_tuple = (
    torch.randn(2, 4),
    (torch.randn(3, 2), 100),
    {'nested': torch.randn(2, 3)}
)
mixed_structure = {
    'tensors': [torch.randn(2, 4), torch.randn(3, 4)],
    'scalars': [1, 2.5, 'test'],
    'nested': (torch.randn(2, 2), {'inner': torch.randn(4, 3)})
}

ARGS = {
    'data': mixed_structure,
    'clone': False
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
precompute_freqs_cis Ran
ran, honoured the contract we drafted
epfml/llm-baselines/src/models/llama.py
code served (permissive licence) · get_code("a1d6f89d43fc42e1")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 3, dtype family float, shape (2, 2, 2) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

ARGS = {
    "dim": 4,
    "end": 2,
    "theta": 10000.0,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 3, dtype family float, shape (2, 2, 2) — shape (2, 2, 2) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
self_preserving_overwrite Ran
ran; our contract draft was wrong, not the code
epfml/llm-baselines/src/logger/logger.py
code served (permissive licence) · get_code("198aea734522a443")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned function. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn
from functools import wraps

def self_preserving_overwrite(method):

    @wraps(method)
    def _impl(inner_self, *args, **kwargs):
        return method(*args, **kwargs)
    return _impl


# Create a simple test method
def test_method(*args, **kwargs):
    return "test_result"


# ARGS must map every parameter of self_preserving_overwrite to a value
# The only parameter is 'method', which should be a callable
ARGS = {
    "method": test_method
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type function — a function output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a function output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
apply_rotary_emb Not yet run
unverified (harvested, no recorded run)
epfml/llm-baselines/src/models/llama.py
code served (permissive licence) · get_code("9891174b43bd9c9a")
How it ran

no invocation recorded.

get_model Not yet run
unverified (harvested, no recorded run)
epfml/llm-baselines/src/models/utils.py
code served (permissive licence) · get_code("d2ddaef321aaffbf")
How it ran

no invocation recorded.

none_or_str Not yet run
unverified (harvested, no recorded run)
epfml/llm-baselines/src/config/base.py
code served (permissive licence) · get_code("2fc6fdb85f13dc41")
How it ran

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, 9 are also present in other papers whose code we hold (5 with at least one paper dated earlier, 0 the same month, 9 later) and 0 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
none_or_str 16 other papers
13 dated earlier, 3 later
1810.01845 (2018-10)
Task-Oriented Hand Motion Retargeting for Dexterous Manipulation Imitation
1909.10893 (2019-09)
Recurrent Independent Mechanisms
2109.11251 (2021-09)
Trust Region Policy Optimisation in Multi-Agent Reinforcement Learning
and 13 more not named here
precompute_freqs_cis 6 other papers
2 dated earlier, 4 later
2405.18392 (2024-05)
Scaling Laws and Compute-Optimal Training Beyond Fixed Training Durations
2502.05003 (2025-02)
QuEST: Stable Training of LLMs with 1-Bit Weights and Activations
2602.02016 (2026-02)
DASH: Faster Shampoo via Batched Block Preconditioning and Efficient Inverse-Root Solvers
and 3 more not named here
apply_rotary_emb 5 other papers
1 dated earlier, 4 later
2405.18392 (2024-05)
Scaling Laws and Compute-Optimal Training Beyond Fixed Training Durations
2602.02016 (2026-02)
DASH: Faster Shampoo via Batched Block Preconditioning and Efficient Inverse-Root Solvers
2602.07425 (2026-02)
Sign-Based Optimizers Are Effective Under Heavy-Tailed Noise
and 2 more not named here
move_to_cpu 5 other papers
2 dated earlier, 3 later
2405.18392 (2024-05)
Scaling Laws and Compute-Optimal Training Beyond Fixed Training Durations
2502.05003 (2025-02)
QuEST: Stable Training of LLMs with 1-Bit Weights and Activations
2602.02016 (2026-02)
DASH: Faster Shampoo via Batched Block Preconditioning and Efficient Inverse-Root Solvers
and 2 more not named here
self_preserving_overwrite 5 other papers
2 dated earlier, 3 later
2405.18392 (2024-05)
Scaling Laws and Compute-Optimal Training Beyond Fixed Training Durations
2502.05003 (2025-02)
QuEST: Stable Training of LLMs with 1-Bit Weights and Activations
2602.02016 (2026-02)
DASH: Faster Shampoo via Batched Block Preconditioning and Efficient Inverse-Root Solvers
and 2 more not named here
entropy_reg 2 other papers
2 later
2602.07425 (2026-02)
Sign-Based Optimizers Are Effective Under Heavy-Tailed Noise
2605.06615 (2026-05)
When and Why SignSGD Outperforms SGD: A Theoretical Study Based on ℓ 1 -norm Lower Bounds
get_model 2 other papers
2 later
2605.06615 (2026-05)
When and Why SignSGD Outperforms SGD: A Theoretical Study Based on ℓ 1 -norm Lower Bounds
2605.19811 (2026-05)
LionMuon: Alternating Spectral and Sign Descent for Efficient Training
load_balancing_loss_ 2 other papers
2 later
2602.07425 (2026-02)
Sign-Based Optimizers Are Effective Under Heavy-Tailed Noise
2605.06615 (2026-05)
When and Why SignSGD Outperforms SGD: A Theoretical Study Based on ℓ 1 -norm Lower Bounds
log_mean 2 other papers
2 later
2602.07425 (2026-02)
Sign-Based Optimizers Are Effective Under Heavy-Tailed Noise
2605.06615 (2026-05)
When and Why SignSGD Outperforms SGD: A Theoretical Study Based on ℓ 1 -norm Lower Bounds

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

Repositories linked to this paper

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

Abstract

As both model and dataset sizes continue to scale rapidly, conventional pretraining strategies with fixed compute budgets-such as cosine learning rate schedules-are increasingly inadequate for large-scale training. Recent alternatives, including warmup-stable-decay (WSD) schedules and weight averaging, offer greater flexibility. However, WSD relies on explicit decay phases to track progress, while weight averaging addresses this limitation at the cost of additional memory. In search of a more principled and scalable alternative, we revisit the Schedule-Free (SF) method [Defazio et al., 2024], which has shown strong empirical performance across diverse settings. We show that SF-AdamW effectively navigates the "river" structure of the loss landscape without decay phases or auxiliary averaging, making it particularly suitable for continuously scaling training workloads. To understand this behavior, we conduct a theoretical and empirical analysis of SF dynamics, revealing that it implicitly performs weight averaging without memory overhead. Guided by this analysis, we propose a refined variant of SF that improves robustness to momentum and performs better under large batch sizes, addressing key limitations of the original method. Together, these results establish SF as a practical, scalable, and theoretically grounded approach for language model training. * Equal contribution. † Work done as an undergraduate intern at KAIST. 39th Conference on Neural Information Processing Systems (NeurIPS 2025).

For agents

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

get_harvested_code_for_paper("2507.09846")
get_code_for_paper("2507.09846")
have("2507.09846")

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

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

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

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

Connect an agent — have() is free.