SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2410.16103 · ICLR · 2025

LDAdam: Adaptive Optimization from Low-Dimensional Gradient Statistics

Dan Alistarh, Thomas Robert, Ionut-Vlad Modoranu

arXiv · PDF · Open in the Atlas

Code that ran

3 of 5 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (2 of them constructed an object rather than computing a result; 1 honoured the contract we drafted, 0 violated it and 2 have no contract verdict; 0 failures of our instrument; 2 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/2410.16103.json · badge: /api/ran/2410.16103.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
jiaweizzhao/GaLore community
Papers with Code archive
2 ran · 1 no recorded run
IST-DASLab/LDAdam marked official in Papers with Code
Papers with Code archive
1 ran · 1 no recorded run
FunctionStatusWhere it lives
GaLoreProjector Ran
ran on a synthesized input · constructed an object; no result was computed
jiaweizzhao/GaLore/galore_torch/adamw.py
code served (permissive licence) · get_code("2dec918decbbe9df")
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 an instance of its own class, GaLoreProjector: the run constructed the object and did not call it, so no result was computed. 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

torch.manual_seed(0)

# GaLoreProjector expects:
# - rank: int
# - verbose: bool (optional, default False)
# - update_proj_gap: int (optional, default 200)
# - scale: float (optional, default 1.0)
# - proj_type: str (optional, default 'std')

ARGS = {
    'rank': 2,
    'verbose': False,
    'update_proj_gap': 200,
    'scale': 1.0,
    'proj_type': 'std',
}
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 GaLoreProjector — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a GaLoreProjector 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
GaLoreProjectorTensor Ran
ran on a synthesized input · constructed an object; no result was computed
jiaweizzhao/GaLore/galore_torch/adamw.py
code served (permissive licence) · get_code("9f225e051982934c")
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 an instance of its own class, GaLoreProjectorTensor: the run constructed the object and did not call it, so no result was computed. 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 numpy as np
from tensorly.decomposition import tucker
from tensorly import tenalg

torch.manual_seed(0)

# Create a small tensor for testing
# Shape: (4, 3, 2) - a 3D tensor with distinct dimensions
full_rank_grad = torch.randn(4, 3, 2)

ARGS = {
    "rank": (2, 2, 1),  # Tucker rank tuple matching 3D tensor dimensions
    "verbose": False,
    "update_proj_gap": 200,
    "scale": 1.0,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, tensorly, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type GaLoreProjectorTensor — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a GaLoreProjectorTensor 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
Gram_Schmidt Ran
ran, honoured the contract we drafted
IST-DASLab/LDAdam/ldadamw_torch/ldadamw.py
code served (permissive licence) · get_code("4ac9ad053822de77")
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 2, dtype family float, shape (4, 3) 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 matrix for Gram-Schmidt orthogonalization
# Using shape (4, 3) - 4 rows, 3 columns
matrix = torch.randn(4, 3, dtype=torch.float32)

ARGS = {
    "matrix": matrix
}
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 2, dtype family float, shape (4, 3) — shape (4, 3) 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
AdamW Not yet run
unverified (harvested, no recorded run)
jiaweizzhao/GaLore/galore_torch/adamw.py
code served (permissive licence) · get_code("5724b2651f5136bb")
How it ran

no invocation recorded.

LDAdamW Not yet run
unverified (harvested, no recorded run)
IST-DASLab/LDAdam/ldadamw_torch/ldadamw.py
code served (permissive licence) · get_code("d85c118ddb0cfcad")
How it ran

no invocation recorded.

Also present in other papers' code

Of 5 samples lifted from this paper's linked repositories, 5 carry a function identity and 0 do not. Of the 5 distinct functions with an identity, 1 are also present in other papers whose code we hold (1 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
GaLoreProjector
brick of this paper's assembly: helper
1 other paper
1 dated earlier · 1 only as an assembly brick
2403.03507 (2024-03)
GaLore: Memory-Efficient LLM Training by Gradient Low-Rank Projection

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

We introduce LDAdam, a memory-efficient optimizer for training large models, that performs adaptive optimization steps within lower dimensional subspaces, while consistently exploring the full parameter space during training. This strategy keeps the optimizer's memory footprint to a fraction of the model size. LDAdam relies on a new projection-aware update rule for the optimizer states that allows for transitioning between subspaces, i.e., estimation of the statistics of the projected gradients. To mitigate the errors due to low-rank projection, LDAdam integrates a new generalized error feedback mechanism, which explicitly accounts for both gradient and optimizer state compression. We prove the convergence of LDAdam under standard assumptions, and show that LDAdam allows for accurate and efficient fine-tuning and pre-training of language models. Code is available at https://github.com/IST-DASLab/LDAdam.

For agents

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

get_harvested_code_for_paper("2410.16103")
get_code_for_paper("2410.16103")
have("2410.16103")

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

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

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

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

Connect an agent — have() is free.