Residual-Histogram Block Coordinate Fine-Tuning
Implementation & benchmark of arXiv:2607.20130 — Learning to Decode Quantum LDPC Codes via Cluster-Based Sequential Belief Propagation
Source paper: Learning to Decode Quantum LDPC Codes via Cluster-Based Sequential Belief Propagation arXiv:2607.20130 ⓘ · analyzed Aug 30, 2026
AI-generated research hypothesis, automatically tested. Not peer-reviewed.
Idea description
Use the cluster-state construction to schedule which groups of trainable parameters receive an expensive update at each optimizer micro-step. Instead of updating every LoRA block, expert group, or layer uniformly, select the block whose local error histogram predicts the largest loss reduction per unit compute.
Formulas
Mathematical statement
Partition trainable modules into parameter clusters C_a. Associate each module i with a local mismatch weight omega_i, constructed from active examples, gradient magnitude, or objective conflicts. Let delta_j be an indicator that example j is hard or that a local training constraint is active. The mismatch weight is omega_i = sum_{j in N(i)} delta_j, where N(i) is the set of examples or objectives associated with module i. The permutation-invariant cluster observation is h_{a,r} = B_a^{-1} sum_i 1{q(omega_i)=r}, with B_a the cluster size and q(omega) = floor(R omega / A_max). The selected cluster receives an optimizer update while other clusters are skipped. A Q-learning controller can estimate the value of selecting each cluster using Q(s,a) <- Q(s,a) + alpha [r + gamma max_{a'} Q(s',a') - Q(s,a)]. A useful compute-normalized reward is loss decrease divided by estimated update cost.
Implementation notes
Integrate this at the optimizer step of a model with separable trainable blocks, such as LoRA adapters grouped by Transformer layer, expert groups in an MoE model, or partitions of a large embedding table. Freeze the base model initially so the scheduling effect is isolated. After each minibatch forward and backward pass, compute per-example losses ell_j and per-block gradient magnitudes g_i. Set delta_j = 1 when ell_j exceeds threshold tau, or alternatively when the example produces a gradient above tau_g. For each trainable block i, aggregate associated active indicators into omega_i, clip omega_i to [0,A_max], quantize it, and form the normalized histogram for each parameter cluster. Feed all histograms, current loss, update age, and recent reward to a two-layer scheduler MLP. Select one cluster with epsilon-greedy exploration. Apply AdamW only to parameters in that cluster; retain parameters and optimizer moments for unselected blocks. Prevent starvation with an age penalty or a hard rule that every cluster must be updated at least once within K minibatches. Define reward as (L_t - L_{t+1}) divided by estimated FLOPs plus epsilon, minus lambda, with L_t an exponential moving average of minibatch loss. Compare against all-block AdamW, round-robin block updates, random selection, and top-gradient greedy selection. The first cheap experiment should fine-tune a 12-layer Transformer with LoRA on GLUE or a small language-model corpus using 4 to 8 adapter clusters. Measure validation loss versus optimizer FLOPs, wall-clock time, final accuracy, and the number of skipped updates per block. A positive result is equal validation accuracy with 25 to 40 percent fewer adapter updates, or faster loss descent at equal optimizer compute without oscillatory starvation.
Verification
This idea has not been verified yet.
Verification happens in two stages: Stage 1 — a mechanism check on a toy system confirms the claimed mathematical phenomenon reproduces; Stage 2 — a benchmark implements the idea on a real (small) neural network task and compares it against a tuned baseline over 8 paired seeds with a permutation test.
Artifacts
Artifacts unavailable.