SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2312.15184 · 2023

ZO-AdaMU Optimizer: Adapting Perturbation by the Momentum and Uncertainty in Zeroth-order Optimization

arXiv · PDF · Open in the Atlas

Code that ran

6 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; 2 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 4 failures of our instrument; 4 no recorded run), measured 2026-11-24; 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.15184.json · badge: /api/ran/2312.15184.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
mathisall/zo-adamu canonical (classifier label)
classifier basis: census
6 ran · 4 no recorded run
FunctionStatusWhere it lives
encode_prompt Ran
ran; our contract draft was wrong, not the code
mathisall/zo-adamu/utils.py
pointer only (licence: NONE) · get_code("7c5d9ba063f6642c")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, mathisall/zo-adamu 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.

f1 Ran
ran, honoured the contract we drafted
mathisall/zo-adamu/metrics.py
pointer only (licence: NONE) · get_code("b989d4bce26f77ce")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, mathisall/zo-adamu 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_module Ran
ran; our contract draft was wrong, not the code
mathisall/zo-adamu/lora.py
pointer only (licence: NONE); the stored copy get_code serves, from JingXuTHU/Random-Masking-Finds-Winning-Tickets-for-Parameter-Efficient-Fine-tuning, is pointer only (licence: NONE) · get_code("b5adfd6ac99a1b18")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, mathisall/zo-adamu 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.

forward_wrap_with_option_len Ran
ran; our contract draft was wrong, not the code
mathisall/zo-adamu/utils.py
pointer only (licence: NONE) · get_code("54a6124d697bc2c2")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, mathisall/zo-adamu 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_sign Ran
ran, honoured the contract we drafted
mathisall/zo-adamu/trainer.py
pointer only (licence: NONE) · get_code("adf9d109842104ff")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, mathisall/zo-adamu 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.

normalize_answer Ran
ran; our contract draft was wrong, not the code
mathisall/zo-adamu/metrics.py
pointer only (licence: NONE); the stored copy get_code serves, from borealisai/radar-decoding, is pointer only (licence: LGPL-3.0) · get_code("e7e75981cb464788")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, mathisall/zo-adamu 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.

attn_forward_hook Not yet run
unverified (harvested, no recorded run)
mathisall/zo-adamu/prefix.py
pointer only (licence: NONE) · get_code("bdb460cb247501dc")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, mathisall/zo-adamu 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.

calculate_metric Not yet run
unverified (harvested, no recorded run)
mathisall/zo-adamu/metrics.py
pointer only (licence: NONE) · get_code("84c658f2c9252878")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, mathisall/zo-adamu 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.

get_task Not yet run
unverified (harvested, no recorded run)
mathisall/zo-adamu/tasks.py
pointer only (licence: NONE) · get_code("f7c384f1e681ea7a")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, mathisall/zo-adamu 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.

prepare_inputs_for_generation Not yet run
unverified (harvested, no recorded run)
mathisall/zo-adamu/prefix.py
pointer only (licence: NONE) · get_code("84920a8095dca4fa")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, mathisall/zo-adamu 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, 9 are also present in other papers whose code we hold (9 with at least one paper dated earlier, 0 the same month, 8 later) and 1 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
normalize_answer 133 other papers
55 dated earlier, 76 later, 1 same year, order not determinable, 1 undated · 1 only as an assembly brick
1508.06615 (2015-08)
Character-Aware Neural Language Models
1606.05250 (2016-06)
SQuAD: 100,000+ Questions for Machine Comprehension of Text
1608.07905 (2016-08)
Machine Comprehension Using Match-LSTM and Answer Pointer
and 130 more not named here
find_module 8 other papers
2 dated earlier, 6 later
2305.17333 (2023-05)
Fine-Tuning Language Models with Just Forward Passes
2310.09639 (2023-10)
DPZero: Private Fine-Tuning of Language Models without Backpropagation
2402.11417 (2024-02)
LoRETTA: Low-Rank Economic Tensor-Train Adaptation for Ultra-Low-Parameter Fine-Tuning of Large Language Models
and 5 more not named here
calculate_metric 7 other papers
2 dated earlier, 5 later
2305.17333 (2023-05)
Fine-Tuning Language Models with Just Forward Passes
2310.09639 (2023-10)
DPZero: Private Fine-Tuning of Language Models without Backpropagation
2402.11417 (2024-02)
LoRETTA: Low-Rank Economic Tensor-Train Adaptation for Ultra-Low-Parameter Fine-Tuning of Large Language Models
and 4 more not named here
f1 7 other papers
2 dated earlier, 5 later
2305.17333 (2023-05)
Fine-Tuning Language Models with Just Forward Passes
2310.09639 (2023-10)
DPZero: Private Fine-Tuning of Language Models without Backpropagation
2402.11417 (2024-02)
LoRETTA: Low-Rank Economic Tensor-Train Adaptation for Ultra-Low-Parameter Fine-Tuning of Large Language Models
and 4 more not named here
get_task 7 other papers
2 dated earlier, 5 later
2305.17333 (2023-05)
Fine-Tuning Language Models with Just Forward Passes
2310.09639 (2023-10)
DPZero: Private Fine-Tuning of Language Models without Backpropagation
2402.11592 (2024-02)
Revisiting Zeroth-Order Optimization for Memory-Efficient LLM Fine-Tuning: A Benchmark
and 4 more not named here
attn_forward_hook 6 other papers
2 dated earlier, 4 later
2305.17333 (2023-05)
Fine-Tuning Language Models with Just Forward Passes
2310.09639 (2023-10)
DPZero: Private Fine-Tuning of Language Models without Backpropagation
2402.11417 (2024-02)
LoRETTA: Low-Rank Economic Tensor-Train Adaptation for Ultra-Low-Parameter Fine-Tuning of Large Language Models
and 3 more not named here
prepare_inputs_for_generation 6 other papers
2 dated earlier, 4 later
2305.17333 (2023-05)
Fine-Tuning Language Models with Just Forward Passes
2310.09639 (2023-10)
DPZero: Private Fine-Tuning of Language Models without Backpropagation
2402.11417 (2024-02)
LoRETTA: Low-Rank Economic Tensor-Train Adaptation for Ultra-Low-Parameter Fine-Tuning of Large Language Models
and 3 more not named here
encode_prompt 2 other papers
2 dated earlier
2305.17333 (2023-05)
Fine-Tuning Language Models with Just Forward Passes
2310.09639 (2023-10)
DPZero: Private Fine-Tuning of Language Models without Backpropagation
forward_wrap_with_option_len 2 other papers
1 dated earlier, 1 later
2305.17333 (2023-05)
Fine-Tuning Language Models with Just Forward Passes
2505.13430 (2025-05)
Fine-tuning Quantized Neural Networks with Zeroth-order Optimization

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

Repositories linked to this paper

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

Abstract

Lowering the memory requirement in full-parameter training on large models has become a hot research area. MeZO fine-tunes the large language models (LLMs) by just forward passes in a zeroth-order SGD optimizer (ZO-SGD), demonstrating excellent performance with the same GPU memory usage as inference. However, the simulated perturbation stochastic approximation for gradient estimate in MeZO leads to severe oscillations and incurs a substantial time overhead. Moreover, without momentum regularization, MeZO shows severe over-fitting problems. Lastly, the perturbation-irrelevant momentum on ZO-SGD does not improve the convergence rate. This study proposes ZO-AdaMU to resolve the above problems by adapting the simulated perturbation with momentum in its stochastic approximation. Unlike existing adaptive momentum methods, we relocate momentum on simulated perturbation in stochastic gradient approximation. Our convergence analysis and experiments prove this is a better way to improve convergence stability and rate in ZO-SGD. Extensive experiments demonstrate that ZO-AdaMU yields better generalization for LLMs fine-tuning across various NLP tasks than MeZO and its momentum variants.

For agents

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

get_harvested_code_for_paper("2312.15184")
get_code_for_paper("2312.15184")
have("2312.15184")

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

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

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

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

Connect an agent — have() is free.