A Unified Merge Calculus for Learning-Rate Scaling on Neural Computation Graphs

Haosong Zhang, Shenxi Wu, Zhiyuan Che, Xi Chen, Wei Lin, Yichi ZhangNeurIPS 2026

TL;DR

Finding the right learning rate when scaling up a neural network is notoriously expensive, and existing mathematical shortcuts break down once architectures branch out beyond simple sequential stacks. This paper introduces a "merge calculus" that treats neural networks as computation graphs, accounting for how incoming branches combine—whether by addition, concatenation, or weighted fusion. By condensing a model’s global wiring and local merge rules into a single complexity number, the authors uncover a universal $-1/2$ power law that lets you predict optimal learning rates across diverse architectures without tuning from scratch.

What Problem Does This Paper Address?

Imagine you’ve spent days tuning a small prototype model, and now it’s time to scale it up. How do you adjust the learning rate without running another bank-breaking grid search?

Recent breakthroughs like Maximal Update Parametrization ($\mu$P) solved how to transfer learning rates across network width, and subsequent scaling laws tackled depth for sequential models. However, modern deep learning is rarely a straight line. Architectures like DenseNets, U-Nets, BiFPNs, and hybrid Vision-Transformers are complex directed acyclic graphs (DAGs) tangled with skip connections, multi-branch aggregations, and cross-scale fusions. Counting "depth" as a single number misses the whole story: two networks of similar depth behave very differently on their first gradient step depending on how they merge parallel signals. The authors ask: how should learning-rate scaling work when the core object isn't a depth variable, but a computation graph with explicit merge rules?

Methods

Instead of treating a network as a stack of layers, the authors model it as a neural computation graph where signals flow from trainable source nodes along various paths to the output. Building on the maximal-update principle—which aims to keep feature updates stable and $\Theta(1)$-sized after one SGD step from initialization—they introduce a unified graph-aware complexity coefficient, $\mathcal{C}(G)$.

To compute $\mathcal{C}(G)$, you average over all trainable nodes and trace every downstream path of length $L_p$ to the output, weighting each path's $L_p^3$ update contribution by two local quantities at every merge node:

  1. Normalized parent weights ($\lambda_{u|v}$): How much relative influence parent $u$ has among all incoming branches.
  2. Nodewise propagation gain ($\gamma_v$): How much the merge amplifies or dampens the overall signal variance.

What’s new here is how cleanly four ubiquitous architectural patterns slot into one master equation, $\eta^\star(G) = \Theta(\mathcal{C}(G)^{-1/2})$:

  • Uniform Sum: Standard fan-in averaging gives equal weight ($1/d_{\text{in}}$) to each parent with unit gain.
  • Residual-Aware Sum: Treats identity shortcuts and transformed branches distinctly rather than averaging them blindly, measuring the transformed branch's Jacobian gain ($\beta_v$) at initialization to set $\gamma_v = 1 + \beta_v$.
  • Concatenation: Reduces channel concatenation followed by a mixing layer to width-weighted parent influences—wider incoming branches get proportionally larger $\lambda_{u|v}$.
  • Weighted Fusion: Separates explicit branch weights and fixed alignments from trainable projections to compute both relative influence and total merge gain.

Datasets

The authors evaluate their scaling laws using existing public image classification and text benchmarks (no new datasets are introduced):

  • Vision: CIFAR-10, CIFAR-100, and CINIC-10.
  • Language: AG News (used for causal byte-level next-token language modeling).

Key Insights and Ideas

  • Merge semantics beat raw topology: Previous DAG scaling laws counted non-linear path lengths, which works for uniform ReLU networks. However, on multi-branch residual networks, ignoring shortcut identity preservation and branch Jacobian gains caused a pure path-counting baseline to fail ($R^2 = -1.906$), whereas the merge-aware predictor captured the variance cleanly ($R^2 = 0.855$).
  • Two-dimensional architectural changes collapse onto a 1D line: Whether you make a DenseNet-style concat model deeper or widen its lookback window—or make a residual network deeper or split it into more bottleneck branches—the shifting optimal learning rates collapse neatly onto a single $\mathcal{C}(G)^{-1/2}$ curve.
  • First-step math holds up over multi-epoch windows: Although the calculus analyzes the very first gradient step at initialization, empirically selected learning rates over 1 to 4 epochs of training still follow the predicted $-1/2$ exponent.

Key Results

Across hundreds of learning-rate sweeps, fitted log-log slopes ($b$) consistently hover right around the theoretical $-0.5$ target:

Figure 3: CIFAR-10 residual sweep. Cells show three-seed mean log10 η⋆.
Figure 4: Residual scaling for Figure 3 configurations. WLS and −1/2 reference.
  • Controlled Merge Families (CIFAR-10): Jointly varying depth and connectivity yields slopes of $b = -0.452$ ($R^2_{\text{w}} = 0.878$) for concat networks, $b = -0.447$ ($R^2_{\text{w}} = 0.930$) for multi-branch residual networks, and $b = -0.504$ ($R^2 = 0.617$) for multi-stage weighted-fusion networks.
  • Practical Zero-Shot Transfer: Calibrating an anchor learning rate at depth $L=16$ and transferring it across depths $L \in [10, 32]$ via $\mathcal{C}_{\text{concat}}^{-1/2}$ cut $\log_{10}$ learning-rate prediction RMSE from $0.274 \to 0.092$ on CIFAR-10, $0.209 \to 0.073$ on CIFAR-100, and $0.380 \to 0.172$ on CINIC-10 compared to naively reusing the anchor rate.
  • Hybrids and Language Modeling: Testing lightweight normalization-free vision hybrids (Image Conformer, Conformer-Lite, CoAtNet-style) and causal concat-conv language models on AG News produced slopes between $-0.486$ and $-0.517$, with $R^2_{\text{w}}$ ranging from $0.792$ to $0.996$.

Limitations and Future Work

  • Vanilla SGD vs. Modern Optimizers: Both the theory and experiments focus on plain SGD without momentum, warmup, or schedules. Extending the merge calculus to adaptive optimizers like Adam and AdamW—where update geometry changes substantially—is left for future work.
  • Short Horizons and Lightweight Models: Experiments measure training loss over short windows (500 steps to 4 epochs) on relatively small networks, leaving full-training validation accuracy on large-scale foundation models yet to be tested.
  • Normalization Nuances: The controlled vision hybrids omit LayerNorm and BatchNorm. While the appendix outlines conditional math for normalization, handling post-merge normalization and training-time correlation drift requires tracking full matrix overlaps rather than simple scalars.
  • Not Purely Static: For residual and hybrid blocks, you can't just count edges on paper—you have to measure Jacobian branch gains at initialization before predicting the learning rate.

Summary updated

Abstract

Learning-rate selection is one of the most consequential and repeatedly tuned decisions in modern deep learning, and the ability to transfer it quickly across widths, depths, and architectures can substantially reduce the cost of scaling new models. Existing transfer laws explain width through maximal-update parameterization and depth through depth-based scaling laws, but many modern architectures are better described as neural computation graphs with heterogeneous merge rules rather than by depth alone. We develop a unified merge calculus for learning-rate scaling on such graphs. Its central object is a graph-aware complexity coefficient that combines local merge semantics with global path structure and induces a $-1/2$ power law for the target learning-rate scale. We further show that depth alone is generally insufficient once merge semantics vary across architecture families. We validate the framework on controlled graph families and lightweight representative architectures covering uniform sum, residual-aware sum, concat, weighted fusion, and hybrid designs. Across these settings, the resulting graph coefficients organize optimal learning rates more effectively than depth alone and support practical learning-rate transfer.
BibTeX
@inproceedings{zhang2026unified,
  author = {Haosong Zhang and Shenxi Wu and Zhiyuan Che and Xi Chen and Wei Lin and Yichi Zhang},
  title = {{A Unified Merge Calculus for Learning-Rate Scaling on Neural Computation Graphs}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=TzJ1RmUWQr},
}
Figure