arXiv Machine Learning

Geometry-Guided Layerwise FFN Width Allocation in Transformers

arXiv:2608. 02064v1 Announce Type: new Abstract: Feed-forward networks (FFNs) account for a large fraction of Transformer parameters, yet their hidden width is usually constant across depth.

arXiv Machine Learning
Oct 23

Neural Spectral Capacity with Residual Context for Heterogeneous Resource Allocation within Transformers

The paper introduces Residual-Aware Neural Spectral Capacity (ResNSC) for Transformers, enhancing the original NSC heuristic by incorporating residual updates into capacity calculations. ResNSC-DP jointly allocates residual and feed‑forward widths under a resource budget, providing certified bounds on the best achievable ResNSC score. Experiments on 121M and 374M models show that architectures selected by ResNSC-DP achieve lower perplexity than uniform or tapered allocations, and in LLaMA‑7B pruning ResNSC-DP improves average accuracy by 3.28–5.46 percentage points across eight tasks.

By Chenyu Zhu, Ruoyu Zhao, Zhichao Lu
arXiv Machine Learning
Nov 2

Hierarchical Residuals: A Minimalist Decoupling of Residual Width from Compute Width

Hierarchical Residuals (HiRes) is a minimalist architectural change that decouples residual width from compute width in Transformers. By grouping layers into blocks with standard d‑dimensional PreNorm layers and a wider D‑dimensional PostNorm outer residual, HiRes widens the residual state while keeping per‑layer compute fixed. Across various model sizes and depths, HiRes consistently outperforms vanilla residual addition, achieving a 1.30‑fold improvement in FLOPs efficiency and better training loss and downstream accuracy on large‑scale pretraining.

By Ziteng Wang, Jianqiao Lu, Xinyu Ma, Jintao Zhang, Jun Zhu, Yiyuan Ma, Jianfei Chen
arXiv AI
Aug 19

Gradient Heterogeneity Complements Hessian Heterogeneity in Transformer Optimization

The paper investigates why adaptive optimizers like Adam outperform SGD when fine‑tuning Transformers. It introduces gradient heterogeneity—the variation in gradient norms across parameter blocks—and shows, both theoretically and experimentally, that this heterogeneity, together with Hessian heterogeneity, hampers SGD convergence while sign‑based methods such as SignSGD are less affected. The study links the source of gradient heterogeneity to layer‑normalization placement, finding that Post‑LN architectures exhibit the strongest effect, and uses SignSGD as a tractable proxy to analyze Adam‑like behavior and learning‑rate scaling.

By Akiyoshi Tomihari, Issei Sato
arXiv Machine Learning
Sep 22

Neural Spectral Capacity: Measuring and Designing Architectures from Network Specification Alone

The paper introduces Neural Spectral Capacity (NSC), a closed‑form metric derived from the singular‑value spectrum of weight matrices that can be computed solely from a network’s architectural specification. Unlike traditional measures such as #Params and #FLOPs, NSC captures architectural structure (depth, width, head, FFN allocations) and can be evaluated without instantiating the model, data, or gradients. Using a dynamic‑programming solver (NSC‑DP), the authors demonstrate that NSC can efficiently identify architectures that outperform existing training‑free proxies across Transformer and CNN families, and achieve state‑of‑the‑art results in tasks such as WikiText‑103 and commonsense reasoning with LLaMA‑7B. whyItMatters":"NSC provides a fast, architecture‑only proxy that outperforms conventional metrics and training‑free proxies, enabling more effective design and pruning of large models without costly training or data."

By Chenyu Zhu, Ruoyu Zhao, Zhichao Lu
arXiv AI
Jul 16

DeepLoop: Depth Scaling for Looped Transformers

arXiv:2607. 13491v1 Announce Type: cross Abstract: Looped Transformers scale sequential computation by applying a compact stack of physical blocks for multiple rounds, increasing unrolled depth without increasing stored parameters.

By Shuzhen Li, Yifan Zhang, Jiacheng Guo, Quanquan Gu, Mengdi Wang