AIMech AI

MicroAdam (Sparse-Gradient Adaptive Optimization with Quantized Error Feedback)

Algorithms AIMech:MicroAdamSparseGradientWithQuantizedErrorFeedbackOptimization DRAFT
Aliases: MicroAdam, MicroAdam Optimizer, MicroAdamW, Top-k Sparse Sliding-Window Adam with Quantized Error Feedback
A memory-efficient adaptive optimization algorithm that replaces dense first- and second-moment optimizer states with a circular sliding window of m Top-k sparse error-compensated gradients (storing block-relative int16 indices and bfloat16 values) alongside a 4-bit quantized error-feedback accumulator, dynamically reconstructing bias-corrected Adam statistics at each step with provable AMSGrad-rate non-convex convergence.
Identity Notes & Concept Scope Distinct from 8-bit Adam (AIMech:EightBitOptimizerBlockwiseQuantization), which quantizes dense first- and second-moment vectors m_t, v_t in R^d to 8 bits (2d bytes total); MicroAdam stores a circular window of m = 10 Top-k sparse gradients (k = d/100) plus a 4-bit quantized error-feedback vector e_t (0.5d + 4mk = 0.9d bytes, less than half of 8-bit Adam). Distinct from GaLore (AIMech:GaLoreGradientLowRankProjection), which projects gradients into a low-rank SVD subspace without error feedback.

Claims & Grounded Evidence

5 Claims
Mechanism #microadam-sliding-window-topk-and-quantized-ef-mechanism
At each step t, MicroAdam dequantizes the 4-bit error-feedback state into the gradient accumulator a_t = g_t + Q^{-1}(e_t, delta_t, Delta_t), extracts the Top-k largest-magnitude entries (I_t, V_t) = T_k(|a_t|) (with k = d/100 and block-relative int16 indices within blocks B_d < 2^{15} - 1), zeros those entries in a_t, quantizes the residual error e_{t+1} = Q(a_t, delta_{t+1}, Delta_{t+1}) to b = 4 bits, writes (I_t, V_t) into row t mod m of circular buffer G, and dynamically computes m_hat_t = AdamStats(beta_1, G) and v_hat_t = AdamStats(beta_2, G^2) via unrolled decay z[I_i] <- z[I_i] + beta^r V_i.
Mechanism #microadam-optimizer-state-memory-footprint-mechanism
Storing the 4-bit error feedback buffer (0.5d bytes) and the circular window G of m sparse gradients with int16 indices and bfloat16 values (4mk bytes) yields total optimizer-state memory M_{mu A}(m) = 0.5d + 4mk bytes, which for k = d/100 is strictly smaller than 8-bit AdamW's 2d bytes whenever m < m_max = 37.5, requiring 0.9d bytes (5.65 GB vs 12.55 GB for 8-bit AdamW and 50.21 GB for FP32 AdamW) on LLaMA-2 7B at m = 10.
Scope #microadam-contractive-unbiased-convergence-scope
Under a q-contractive gradient compressor C (q = sqrt(1 - k/d)) and an unbiased omega-bounded error quantizer Q (Lemma 1: omega = (sqrt(d - 2) / (2^b - 1)) * (Delta - delta) / sqrt(Delta^2 + delta^2)) satisfying q_omega = (1 + omega) * q < 1, Lemma 3 bounds the error buffer by ||e_t||^2 <= 4 * q_omega^2 * G^2 / (1 - q_omega^2)^2, Theorem 1 proves O(1/sqrt(T) + d/T) non-convex gradient stationarity matching AMSGrad, and Theorem 2 proves O(log(T)/T) convergence under the Polyak-Lojasiewicz condition.
Application #microadam-llm-finetuning-and-imagenet-resnet-application
Applied to full fine-tuning of BERT-Base/Large and OPT-1.3B on GLUE/MNLI, LLaMA-2 7B/13B on GSM-8k and Open-Platypus, and from-scratch pre-training of ResNet-18/50 on ImageNet, MicroAdam matches or exceeds uncompressed AdamW and 8-bit AdamW accuracy (including 77.37% vs 72.05% for AdamW on ResNet-50 due to sparse-update implicit regularization) while enabling LLaMA-2 7B full fine-tuning on a single 40 GB GPU.
Limitation #microadam-sparse-update-llm-pretraining-limitation
With window size m = 10 and density k = d/100, the per-step parameter update u_t has at least 90% sparsity, which is insufficient for from-scratch pre-training of large language models whose self-attention projection matrices require dense updates to learn global token correlations.

⚠️ Curated Limitations & Negative Results

Artificial Intelligence Ontology (AIO) Grounding

Mapped AIO Classes
AIO Target Class Mapping Relation Mapping Rationale
AIO:ArtificialNeuralNetwork
Artificial Neural Network
related_match MicroAdam is a memory-efficient adaptive gradient optimizer for fine-tuning large language models and training convolutional neural networks.
AIO:SparseLearning
Sparse Learning
related_match MicroAdam applies Top-k gradient sparsification (99% sparsity) over a circular sliding window coupled with 4-bit quantized error feedback to reconstruct sparse adaptive updates.

Evidence Sources & Primary Literature

3 Sources
Source ID Publication / Document Type / Access Reference & Checksum
r639-primary-pdf
Ionut-Vlad Modoranu, Mher Safaryan, Grigory Malinovsky, Eldar Kurtic, Thomas Robert, Peter Richtárik, Dan Alistarh
primary paper
full_text
ID: https://dblp.org/rec/conf/nips/ModoranuSMK0RA24
sha256:199f75a4fee3…
r639-arxiv-abs
Ionut-Vlad Modoranu, Mher Safaryan, Grigory Malinovsky, Eldar Kurtic, Thomas Robert, Peter Richtárik, Dan Alistarh
primary paper
abstract_only
ID: https://arxiv.org/abs/2405.15593
sha256:6629c4e74ce7…
r639-metadata-cr
Ionut-Vlad Modoranu, Mher Safaryan, Grigory Malinovsky, Eldar Kurtic, Thomas Robert, Peter Richtárik, Dan Alistarh
primary paper
abstract_only
ID: https://dblp.org/rec/conf/nips/ModoranuSMK0RA24
sha256:3326d806e668…

Ontology & Grounding Topology

Open in interactive network graph →
CONCEPT KIND Algorithms AIMech:MicroAdamSparseGradientWithQuantizedErrorFeedbackOptimization MicroAdam... 5 claims · 3 sources AIO GROUNDING AIO:ArtificialNeuralNetwork (2)

Curation Provenance

Curator: Antigravity
Method: ai_assisted
Model: Gemini
Created: 2026-10-19T12:02:00Z
Updated: 2026-10-19T12:02:00Z
Source File: data/curated/MicroAdamSparseGradientWithQuantizedErrorFeedbackOptimization.yaml · Schema: curated_concept.yaml

Explore across X-Mech

Related computational & biological Mechs: Embedding Map Network Graph ProteinTraitsMech (ESM-2 pLM) DUFMech (Domain pLM) TraitMech CultureMech All 14 X-Mech Repositories