SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2405.15593 · 2024

MicroAdam: Accurate Adaptive Optimization with Low Space Overhead and Provable Convergence

arXiv · PDF · Open in the Atlas

Code that ran

7 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; 0 honoured the contract we drafted, 1 violated it and 0 have no contract verdict; 6 failures of our instrument; 3 no recorded run), measured 2026-11-23; 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/2405.15593.json · badge: /api/ran/2405.15593.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
ist-daslab/microadam canonical (classifier label)
classifier basis: census
7 ran · 3 no recorded run
FunctionStatusWhere it lives
calculate_named_averages Ran
ran; our contract draft was wrong, not the code
ist-daslab/microadam/llm-foundry/llmfoundry/callbacks/eval_gauntlet_callback.py
code served (permissive licence) · get_code("62d5375f1e75a0a4")
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 torch

# Define the arguments for calculate_named_averages
ARGS = {
    "average_names": {
        "overall": ["math", "science", "english"],
        "stem": ["math", "science"],
        "humanities": ["english", "history"]
    },
    "category_scores": {
        "math": 85.5,
        "science": 90.0,
        "english": 78.3,
        "history": 88.2
    }
}
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
get_eval_parameters Ran
ran; our contract draft was wrong, not the code
ist-daslab/microadam/llm-foundry/llmfoundry/callbacks/async_eval_callback.py
code served (permissive licence) · get_code("bd9be9a296403c57")
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 torch
import torch.nn as nn
from typing import Any, Dict, List, Optional

torch.manual_seed(0)

# Create a minimal model class
class MinimalModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear = nn.Linear(4, 3)
    
    def forward(self, x):
        return self.linear(x)

# Create a minimal tokenizer
class MinimalTokenizer:
    def __init__(self):
        self.vocab_size = 100
    
    def encode(self, text):
        return [1, 2, 3]
    
    def decode(self, tokens):
        return "decoded text"

# Create parameters dict with all required and some optional params
parameters = {
    'device_eval_batch_size': 2,
    'icl_tasks': ['task1', 'task2'],
    'max_seq_len': 512,
    'model': {
        'name': 'test_model',
        'architecture': 'transformer',
        'hidden_dim': 256
    },
    'tokenizer': {
        'type': 'bpe',
        'vocab_size': 50000
    },
    'precision': 'fp32',
    'seed': 42,
    'loggers': {
        'wandb': {
            'name': 'my_training_run',
            'project': 'my_project'
        }
    },
    'eval_subset_num_batches': 10,
    'icl_subset_num_batches': 5,
}

checkpoint = '/path/to/checkpoint.pt'
training_run_name = 'my_training_run'

ARGS = {
    'parameters': parameters,
    'checkpoint': checkpoint,
    'training_run_name': training_run_name
}
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
get_run_name Ran
ran; our contract draft was wrong, not the code
ist-daslab/microadam/llm-foundry/llmfoundry/callbacks/async_eval_callback.py
code served (permissive licence) · get_code("37b437ca0eb633ca")
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 str. 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 logging

log = logging.getLogger(__name__)

RUN_NAME_PREFIX = 'eval'
MAX_RUN_NAME_BASE_LENGTH = 55

def get_run_name(training_run_name: str, current_interval: str) -> str:
    """Get the new eval run name.

    Args:
        training_run_name: The name of the current training run
        current_interval: The current interval string of the training run

    Returns:
        The new run name
    """
    name_without_uuid_suffix = training_run_name.rsplit('-', 1)[0]
    max_length = MAX_RUN_NAME_BASE_LENGTH - len(RUN_NAME_PREFIX) - len(current_interval) - 2
    if len(name_without_uuid_suffix) > max_length:
        new_name = name_without_uuid_suffix[:max_length]
        log.warning(f'Training run name {name_without_uuid_suffix} may be too long,' + f' truncating to {new_name}')
        name_without_uuid_suffix = new_name
    return f'{RUN_NAME_PREFIX}-{current_interval}-{name_without_uuid_suffix}'


ARGS = {
    'training_run_name': 'my_training_run_experiment-abc123def456',
    'current_interval': 'step_1000'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str 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
import_file Ran
ran; our contract draft was wrong, not the code
ist-daslab/microadam/llm-foundry/llmfoundry/registry.py
code served (permissive licence) · get_code("eda9ea6f0622874c")
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 module. 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 tempfile
import os
from pathlib import Path

# Create a temporary Python file to import
with tempfile.NamedTemporaryFile(mode='w', suffix='.py', delete=False) as f:
    f.write("""
# Sample Python module
def hello():
    return "world"

class TestClass:
    def __init__(self):
        self.value = 42
""")
    temp_file_path = f.name

try:
    ARGS = {
        'loc': temp_file_path,
    }
finally:
    # Clean up after defining ARGS so the file exists during function execution
    pass
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type module — a module output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a module 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
is_excluded_layer Ran
ran, violated the contract we drafted
ist-daslab/microadam/huggingface_glue_mnli/glue.py
code served (permissive licence) · get_code("dbc7da64de6882d1")
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 bool, 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 as nn

torch.manual_seed(0)

# Analyze the function:
# - layer_name: string that will be checked for substring containment
# - excluded_layers: iterable (list/tuple) of strings to check against layer_name

# Construct test case
layer_name = "transformer.layer.0.attention.weight"
excluded_layers = ["attention", "dropout", "norm"]

ARGS = {
    "layer_name": layer_name,
    "excluded_layers": excluded_layers,
}
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 bool, 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
param_groups_weight_decay Ran
ran; our contract draft was wrong, not the code
ist-daslab/microadam/huggingface_glue_mnli/glue.py
code served (permissive licence) · get_code("83a7912b3e0b32f4")
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 list, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim 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

torch.manual_seed(0)

class SimpleModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.layer1 = nn.Linear(4, 3)
        self.layer2 = nn.Linear(3, 2)
        self.excluded_layer = nn.Linear(2, 1)
        self.bias_layer = nn.Linear(2, 1)
    
    def forward(self, x):
        return x

model = SimpleModel()

ARGS = {
    'model': model,
    'weight_decay': 1e-05,
    'excluded_layers': ['excluded_layer'],
    'no_weight_decay_list': ('bias_layer.bias',)
}
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 list, ndim 1, dtype family float — a list output has no array shape of its own; none is stated
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
param_groups_weight_decay_natural_order Ran
ran; our contract draft was wrong, not the code
ist-daslab/microadam/huggingface_glue_mnli/glue.py
code served (permissive licence) · get_code("e25b382678ba9e73")
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 list, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim 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

torch.manual_seed(0)

# Create a simple model with various parameter types
class SimpleModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear1 = nn.Linear(4, 3)
        self.linear2 = nn.Linear(3, 2)
        self.bn = nn.BatchNorm1d(2)
        self.conv = nn.Conv1d(2, 1, 3)
    
    def forward(self, x):
        x = self.linear1(x)
        x = self.linear2(x)
        x = self.bn(x)
        x = self.conv(x.unsqueeze(-1))
        return x

model = SimpleModel()

# Define ARGS dictionary
ARGS = {
    'model': model,
    'weight_decay': 1e-05,
    'excluded_layers': ['bn'],
    'no_weight_decay_list': ('linear2.bias',)
}
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 list, ndim 1, dtype family float — a list output has no array shape of its own; none is stated
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
download_from_oras Not yet run
unverified (harvested, no recorded run)
ist-daslab/microadam/llm-foundry/llmfoundry/utils/model_download_utils.py
code served (permissive licence) · get_code("2904bff0953c2943")
How it ran

no invocation recorded.

get_cuda_capability Not yet run
unverified (harvested, no recorded run)
ist-daslab/microadam/huggingface_glue_mnli/helpers.py
code served (permissive licence) · get_code("97bfc07ce3b89c71")
How it ran

no invocation recorded.

setup_wandb Not yet run
unverified (harvested, no recorded run)
ist-daslab/microadam/huggingface_glue_mnli/helpers.py
code served (permissive licence) · get_code("a5159521471b0e58")
How it ran

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, 1 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 9 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
get_run_name 1 other paper
1 same year, order not determinable
2024.findings-emnlp.134 (2024 (year only))
Learning to Paraphrase for Alignment with LLM Preference

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 propose a new variant of the Adam optimizer called MicroAdam that specifically minimizes memory overheads, while maintaining theoretical convergence guarantees. We achieve this by compressing the gradient information before it is fed into the optimizer state, thereby reducing its memory footprint significantly. We control the resulting compression error via a novel instance of the classical \emph{error feedback} mechanism from distributed optimization in which *the error correction information is itself compressed* to allow for practical memory gains. We prove that the resulting approach maintains theoretical convergence guarantees competitive to those of AMSGrad, while providing good practical performance. Specifically, we show that MicroAdam can be implemented efficiently on GPUs: on both million-scale (BERT) and billion-scale (LLaMA) models, MicroAdam provides practical convergence competitive to that of the uncompressed Adam baseline, with lower memory usage and similar running time. Our code is available at https://github.com/IST-DASLab/MicroAdam.

For agents

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

get_harvested_code_for_paper("2405.15593")
get_code_for_paper("2405.15593")
have("2405.15593")

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

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

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

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

Connect an agent — have() is free.