Papers
Topics
Authors
Recent
Search
2000 character limit reached

Cross-layer Low-Rank Residual Network (CR-Net)

Updated 12 July 2026
  • CR-Net is a framework that leverages the observation that adjacent-layer activation residuals are low-rank, enabling efficient residual modeling while preserving high-rank information.
  • It replaces full-rank linear operators with a dual-path operator that combines a scaled carry-over with a learned low-rank correction, reducing parameters, FLOPs, and activation memory.
  • Empirical results show improved pre-training efficiency and scalability on Transformer models, though its benefits depend on the degree of inter-layer similarity.

Cross-layer Low-Rank Residual Network (CR-Net) is a parameter- and activation-efficient framework for Transformer and LLM pre-training that exploits the empirical regularity that adjacent-layer activation residuals are low-rank. In its canonical formulation, CR-Net reconstructs a layer’s activations as a scaled carry-over of the previous layer plus a learned low-rank correction, thereby preserving high-rank information while reducing parameters, FLOPs, and activation memory (Kong et al., 23 Sep 2025). The same structural idea has subsequently been reused outside pre-training—for example, as a “CR-Net view” of KV-cache compression in long-context inference, where neighboring layers share a low-rank cache backbone and only salient token-specific deviations receive residual capacity (Cordoba et al., 7 Jul 2026).

1. Low-rank cross-layer residuals as the organizing principle

CR-Net was proposed against three shortcomings attributed to existing low-rank methods for LLM pre-training: compromised model performance, considerable computational overhead, and limited activation memory savings. Its central empirical observation is that for linear activations within a Transformer block, the inter-layer difference

ΔYl=YlβYl1\Delta Y_l = Y_l - \beta Y_{l-1}

admits a significantly lower-rank structure than YlY_l itself. Accordingly, for fixed rank rr and scaling β\beta, the reconstruction

YlβYl1+LRr(YlβYl1)Y_l \approx \beta Y_{l-1} + LR_r(Y_l - \beta Y_{l-1})

achieves lower relative error than LRr(Yl)LR_r(Y_l) alone across LLaMA-3 8B and GPT-2-small at multiple training stages (Kong et al., 23 Sep 2025).

This reformulates low-rank approximation from a direct compression problem into a residual modeling problem. Rather than compressing a full-rank weight or activation and accepting representational loss, CR-Net keeps a high-rank carrier path and compresses only the deviation from that path. The paper further connects this to empirical layer-wise similarity: adjacent-layer activations exhibit high cosine similarity throughout training, and under a high-cosine-similarity assumption the residual YlPβYl1PY_l^P - \beta Y_{l-1}^P has lower energy and a shrunk singular spectrum relative to YlPY_l^P itself (Kong et al., 23 Sep 2025).

A plausible implication is that CR-Net is strongest in regions of the network where layer transitions are incremental rather than abrupt. The original analysis states this explicitly as a condition: the low-rank residual assumption is strongest where inter-layer similarity is high, especially in most middle layers and later training stages, and weaker where representational shifts are abrupt (Kong et al., 23 Sep 2025).

2. Dual-path operator and Transformer integration

CR-Net replaces each full-rank linear operator after the first layer with a dual-path form. For any sub-layer position

P{Q,K,V,O,gate,up,down},P \in \{Q, K, V, O, \text{gate}, \text{up}, \text{down}\},

with layer input XlRs×hX_l \in \mathbb{R}^{s \times h} and output activation YlY_l0, the first layer remains full-rank:

YlY_l1

For YlY_l2, CR-Net uses

YlY_l3

where YlY_l4, YlY_l5, and

YlY_l6

is a learnable cross-layer scaling (Kong et al., 23 Sep 2025).

The architecture is therefore explicitly bifurcated. The term YlY_l7 is the high-rank path, carrying forward previous-layer information without compressing it. The term YlY_l8 is the low-rank residual path, which supplies a learned correction derived from the current layer input. The first layer is kept full-rank to bootstrap high-rank information, and all subsequent layers use the dual-path low-rank form (Kong et al., 23 Sep 2025).

Within attention, the construction is applied to YlY_l9, rr0, rr1, and rr2:

rr3

rr4

rr5

rr6

Within the SwiGLU MLP, the same pattern is used for gate, up, and down projections (Kong et al., 23 Sep 2025).

This design differs from adapter-style or optimizer-centric low-rank methods in a precise way. LoRA and related schemes add low-rank components on top of full-rank weights, whereas CR-Net replaces the full-rank weights after layer 1. Low-rank gradient methods alter optimizer state or gradient representation but not the forward linear projections; CR-Net reduces forward and backward projection costs directly (Kong et al., 23 Sep 2025).

3. Parameterization, compute, and activation recomputation

For a dense linear layer with input dimension rr7 and output dimension rr8, the dense parameter count is rr9. Under CR-Net with rank β\beta0, the corresponding low-rank parameterization uses β\beta1 parameters. In a LLaMA-like Transformer with SwiGLU MLP, CR-Net keeps the first layer dense and applies low-rank factors to all later layers, reducing parameter complexity when β\beta2; the paper reports that in practice β\beta3 cuts parameters by about half while matching or exceeding full-rank performance at scale (Kong et al., 23 Sep 2025).

The dominant forward+backward complexity retains the attention softmax terms but reduces projection costs in later layers. For sequence length β\beta4, hidden size β\beta5, and MLP size β\beta6, the first layer has dense cost, whereas later layers scale with β\beta7 rather than β\beta8 for the linear projections. The paper’s interpretation is explicit: CR-Net reduces compute if β\beta9, particularly when YlβYl1+LRr(YlβYl1)Y_l \approx \beta Y_{l-1} + LR_r(Y_l - \beta Y_{l-1})0, but attention’s YlβYl1+LRr(YlβYl1)Y_l \approx \beta Y_{l-1} + LR_r(Y_l - \beta Y_{l-1})1 terms remain unchanged (Kong et al., 23 Sep 2025).

A distinctive systems contribution is the activation recomputation strategy. Naïve gradient checkpointing is suboptimal because cross-layer residual dependencies can induce YlβYl1+LRr(YlβYl1)Y_l \approx \beta Y_{l-1} + LR_r(Y_l - \beta Y_{l-1})2 recomputation. CR-Net exploits an exact inverse:

YlβYl1+LRr(YlβYl1)Y_l \approx \beta Y_{l-1} + LR_r(Y_l - \beta Y_{l-1})3

which permits reconstruction of prior activations when checkpoints are not stored. During forward, it stores YlβYl1+LRr(YlβYl1)Y_l \approx \beta Y_{l-1} + LR_r(Y_l - \beta Y_{l-1})4 for all layers, stores YlβYl1+LRr(YlβYl1)Y_l \approx \beta Y_{l-1} + LR_r(Y_l - \beta Y_{l-1})5 for all YlβYl1+LRr(YlβYl1)Y_l \approx \beta Y_{l-1} + LR_r(Y_l - \beta Y_{l-1})6 and all YlβYl1+LRr(YlβYl1)Y_l \approx \beta Y_{l-1} + LR_r(Y_l - \beta Y_{l-1})7, and stores full YlβYl1+LRr(YlβYl1)Y_l \approx \beta Y_{l-1} + LR_r(Y_l - \beta Y_{l-1})8 only for a sparse subset of layers such as every eighth layer. During backward, if YlβYl1+LRr(YlβYl1)Y_l \approx \beta Y_{l-1} + LR_r(Y_l - \beta Y_{l-1})9 was not stored, the method reconstructs it and the required LRr(Yl)LR_r(Y_l)0 algebraically (Kong et al., 23 Sep 2025).

The resulting activation storage is

LRr(Yl)LR_r(Y_l)1

and the recompute FLOPs per step are reported as

LRr(Yl)LR_r(Y_l)2

With LRr(Yl)LR_r(Y_l)3, this becomes

LRr(Yl)LR_r(Y_l)4

Empirically, the paper states that CR-Net’s recompute overhead is substantially lower than vanilla GCP and slightly lower than CoLA-M while storing fewer activations (Kong et al., 23 Sep 2025).

4. Empirical scaling behavior in pre-training

CR-Net was evaluated in pre-training across model scales from 60M to 7B parameters, including LLaMA-2 models from 60M, 130M, 350M, 1B, and 7B, LLaMA-3 1B with GQA, and a Qwen-3-based MoE model with 1.8B total and 650M active parameters. Typical ranks were around LRr(Yl)LR_r(Y_l)5, with refined per-layer rank allocations such as LRr(Yl)LR_r(Y_l)6 for 1B aligned-parameter runs and LRr(Yl)LR_r(Y_l)7 for 7B (Kong et al., 23 Sep 2025).

On C4-en pre-training, CR-Net generally outperformed LoRA, ReLoRA, SLTrain, and CoLA at matched parameter budgets. At 1B scale, it achieved perplexity 15.22, better than full-rank at 15.56 and CoLA at 15.52, while reducing parameters by approximately 56.5% and per-step FLOPs by approximately 63.2% (Kong et al., 23 Sep 2025). At matched memory budgets against GaLore, RSO, and Apollo, the reported trend is that Apollo is competitive at smaller scales, but CR-Net closes or surpasses the gap beyond 1B scale (Kong et al., 23 Sep 2025).

The large-scale runs reinforce that trend. On LLaMA-2 7B with recomputation, CR-Net used 27.60 GB activation memory versus 28.82 GB for CoLA-M, and achieved perplexity 13.72 at 80K steps versus 13.82 for CoLA-M. On LLaMA-3 1B with GQA, it outperformed GaLore across 40K–110K steps, including 15.65 at 110K tokens versus 16.40 for GaLore. On the Qwen-3 MoE model, it tracked the full-rank trend with perplexity 18.12 at 40K tokens versus 17.85 full-rank, which the paper presents as evidence of scalability to MoE architectures (Kong et al., 23 Sep 2025).

Ablation results localize several design choices. Higher ranks in middle layers perform better than uniform rank allocation under the same parameter budget. Learnable scaling LRr(Yl)LR_r(Y_l)8 improves convergence stability and final perplexity, with values empirically concentrating in LRr(Yl)LR_r(Y_l)9. CR-Net also outperformed alternative cross-layer residual strategies such as ResFormer and DenseFormer when paired with low-rank parameterization (Kong et al., 23 Sep 2025).

5. Generalizations: cache-space CR-Net, parameter-space residual sharing, and tensor-factorized precursors

A later reuse of the CR-Net idea appears in DepthWeave-KV, which treats long-context KV-cache compression as a cross-layer low-rank residual network. Layers are partitioned into overlapping windows YlPβYl1PY_l^P - \beta Y_{l-1}^P0, and within each window the key and value states are reconstructed as

YlPβYl1PY_l^P - \beta Y_{l-1}^P1

where the shared bases YlPβYl1PY_l^P - \beta Y_{l-1}^P2 are low-rank channel backbones across neighboring layers, YlPβYl1PY_l^P - \beta Y_{l-1}^P3 are depth-conditioned coefficients, YlPβYl1PY_l^P - \beta Y_{l-1}^P4 are token-local residuals, and YlPβYl1PY_l^P - \beta Y_{l-1}^P5 are residual gates (Cordoba et al., 7 Jul 2026). A token-conditional depth router allocates residual rank

YlPβYl1PY_l^P - \beta Y_{l-1}^P6

using online salience features and a memory-budget threshold, while a calibration-free probe tracks the relative attention-output reconstruction error

YlPβYl1PY_l^P - \beta Y_{l-1}^P7

At 64K context, the reported configuration achieved 8.3× KV memory reduction, 72.8 tokens/s decode throughput, average task score 62.9% versus 63.8% for Full KV, Needle-in-a-Haystack retrieval accuracy 96.1% versus 98.7% for Full KV, perplexity delta 0.09, and reconstruction error 0.027, the lowest among compressed methods (Cordoba et al., 7 Jul 2026).

A related but parameter-space formulation is LORS, which represents each layer-specific parameter matrix as a global shared matrix plus a per-layer low-rank residual:

YlPβYl1PY_l^P - \beta Y_{l-1}^P8

An adaptive variant conditions the private term on the query vector. In AdaMixer’s six-layer decoder, this reduced decoder parameters by up to approximately 70% while preserving or improving AP under longer schedules; for example, with ResNet-50 and 300 queries over 36 epochs, AP improved from 47.0 to 47.6 while total parameters dropped from 139M to 60M (Li et al., 2024). The paper explicitly describes this as a cross-layer shared base plus low-rank residual adapters per layer, which is closely aligned with CR-Net’s structural logic (Li et al., 2024).

An earlier CNN analogue appears in the Collective Residual Unit (CRU), which factorizes convolutional residual operators with generalized block term decomposition and shares factors across residual units. The shared factors correspond to input channel mixing and grouped spatial filtering, while output mixing remains unit-specific. The paper states that CRU is effectively a cross-layer low-rank residual network, and reports that CRU-Net-56 achieved 21.7% top-1 error on ImageNet-1k at roughly ResNet-50 model size, comparable to ResNet-200 at 21.7% (Yunpeng et al., 2017).

Formulation Shared component Residual specificity
CR-Net pre-training Previous-layer activation path Low-rank correction per sub-layer
DepthWeave-KV Shared low-rank KV basis across layer windows Token- and depth-routed cache residuals
LORS Shared parameter matrix or generator Per-layer low-rank parameter residual
CRU Shared tensor factors across residual units Unit-specific output mixing

Taken together, these formulations show that “cross-layer low-rank residual network” is less a single implementation than a recurring architectural template: share a dominant cross-layer structure, then reintroduce the missing layer- or token-specific information through low-rank or sparsely routed residual paths. This suggests a common inductive bias: cross-layer redundancy is abundant, but deviations from it are structured rather than arbitrary.

6. Scope, limitations, and terminological ambiguity

The main limitations of CR-Net in pre-training are explicitly tied to the strength of adjacent-layer similarity. If that similarity drops, the residual may be less low-rank and require larger YlPβYl1PY_l^P - \beta Y_{l-1}^P9 or more frequent checkpoints. The recomputation mechanism also requires careful implementation to avoid numerical drift, and the first layer remains full-rank, which may be undesirable under extremely tight parameter budgets. In addition, CR-Net does not reduce the YlPY_l^P0 attention terms; it targets linear projections (Kong et al., 23 Sep 2025).

The cache-space CR-Net instantiation in DepthWeave-KV has its own edge cases. Highly entangled attention everywhere may require larger shared basis rank and broadly higher residual ranks, reducing memory savings. Instruction-heavy prompts with many boundaries can cause the router to allocate high residual rank to many tokens, diminishing bandwidth gains. Rapid topic shifts or late citations can make earlier learned bases lag, although the paper states that residual gates and probes mitigate this by adapting thresholds and memory allocation (Cordoba et al., 7 Jul 2026).

A separate issue is terminological ambiguity. In biomedical image segmentation, “CR-Net” denotes a Convolutional–Recurrent Network rather than a Cross-layer Low-Rank Residual Network. The chest X-ray paper “Lung Segmentation in Chest X-rays with Res-CR-Net” is explicit on this point: Res-CR-Net is a residual, fully convolutional instantiation of a Convolutional–Recurrent Network, uses parallel atrous separable convolutions and optional orthogonal bidirectional ConvLSTM blocks, and does not include explicit cross-layer dense connections across distant layers or explicit low-rank regularization terms (Abdulah et al., 2020).

This distinction matters because the phrase “CR-Net” can therefore name materially different objects across subfields. In the LLM literature, it refers to cross-layer low-rank residual structure in activations, parameters, or caches; in the biomedical segmentation literature, it refers to a different architecture family altogether. The shared abbreviation should not be taken as evidence of conceptual identity (Abdulah et al., 2020).

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Cross-layer Low-Rank Residual Network (CR-Net).