Overcoming Non-Linear Barriers for Structural Reparameterization

This direction is split into other directions: non-affine operation barriers. Its last version stays readable and citable here.

Version 1 of 120 papers25 conceptsfrozen 2026-10-04

In the pursuit of efficient deep learning, we often treat neural networks as sequences of independent layers. However, from a mathematical and hardware perspective, the most efficient network is often the simplest one. If we could collapse multiple operations into a single matrix multiplication, we could significantly reduce latency and memory overhead.

The fundamental obstacle to this simplification is the non-linear activation function. While essential for a model's expressive power, functions like ReLU, GeLU, and Softmax act as "computational barriers" that prevent the algebraic merging of surrounding linear layers. A growing body of research focuses on identifying, removing, or mathematically bypassing these barriers to enable a new generation of "collapsed" or "re-parameterized" architectures.

The Sandwich Problem: Linear-Nonlinear-Linear

The core intuition of this research direction lies in the "sandwich" structure of modern networks. Consider two consecutive linear operations, $W_1$ and $W_2$. If they are applied directly to an input $x$, they can be mathematically merged into a single operation: $W_{merged} = W_2 W_1$.

However, as noted by Haichuan Yang and Meng Li in DepthShrinker, the presence of a non-linear activation $\sigma$ between them—$W_2(\sigma(W_1 x))$—breaks this mathematical equivalence. These non-linearities force hardware to execute layers sequentially, blocking the potential to exploit the parallel processing power of modern GPUs.

Removing Redundant Barriers

One strategy is to identify which non-linearities are actually necessary. DepthShrinker demonstrates that many activation functions in compact networks are redundant. By removing them, "irregular" operations like depthwise convolutions can be merged into single, dense convolutions that are much friendlier to hardware.

Similarly, Fanxu Meng and Hao Cheng propose RMNet, which removes the residual connections (a form of linear branching) that typically require non-linearities to maintain stability. By "reserving and merging" these paths, they transform complex multi-branch ResNets into "plain" models that achieve high accuracy without the architectural overhead of skip connections.

Folding and Squeezing Operations

Even when non-linearities cannot be removed, they can sometimes be "folded." A classic example is Batch Normalization (BN). While BN is non-linear during training, it becomes a simple affine transformation during inference.

Edouard Yvinec and Arnaud Dapogny introduce BaN-OFF in To Fold or Not to Fold, providing a rigorous condition for when BN layers can be folded into surrounding layers even in complex architectures. This prevents BN from acting as a barrier that traps parameters in a sub-optimal, multi-layer execution graph.

Taking this further, Mu Hu and Jianqiang Huang developed OREPA (Online Convolutional Re-parameterization). OREPA "squeezes" complex multi-branch blocks into a single convolution during training by linearizing the components. This bypasses the memory bottlenecks caused by executing separate branches, which are usually kept apart by intermediate non-linear operations.

Joint Compression Across Non-Linearities

In the context of Large Language Models (LLMs), the barrier problem appears in Multi-Layer Perceptrons (MLPs) and Attention blocks. Standard compression techniques like Singular Value Decomposition (SVD) usually treat each weight matrix as an "isolated island" because the activation function (like GeLU) or the Softmax function prevents joint optimization.

Recent work seeks to bridge these islands:

Why It Works: Hardware Realities

The ultimate goal of overcoming these barriers is to align neural network math with hardware reality. Modern accelerators are optimized for large, dense matrix multiplications. Every time a non-linear activation or a normalization layer appears, the hardware must stop, write intermediate results to memory, and start a new kernel.

By using structural re-parameterization—as seen in RePaViT by Xuwei Xu and Yang Li—researchers can maintain the training-time benefits of deep, non-linear architectures while deploying "collapsed" versions that run significantly faster. As Itay Yona and Nicholas Carlini demonstrate in their work on stealing production models, these non-linearities are the only things protecting the internal secrets of a model's weights; in the world of efficiency, they are the final frontier to be conquered.

Papers in this version

History & citationVersion 1 · 2026-10-04

Split into other directions · Permanent link

View frozen version 1

Cite this direction

Latest version (a living page):

@misc{lacuna_overcoming_non_linear_barriers_for_struc_7e4ac26f,
  title = {Overcoming Non-Linear Barriers for Structural Reparameterization},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/overcoming-non-linear-barriers-for-structural-reparameterization/rdr_7e4ac26faa404fb4bf1af275e8a9fe9f},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-11-23},
}

This exact version (version 1, frozen text):

@misc{lacuna_overcoming_non_linear_barriers_for_struc_7e4ac26f_v1,
  title = {Overcoming Non-Linear Barriers for Structural Reparameterization},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/overcoming-non-linear-barriers-for-structural-reparameterization/rdr_7e4ac26faa404fb4bf1af275e8a9fe9f/v/1},
  note = {Version 1, frozen 2026-10-04. Accessed 2026-11-23},
}