Comba: Improving Bilinear RNNs with Closed-loop Control

Jiaxi Hu, Yongqi Pan, Jusen Du, Disen Lan, Xiaqiang Tang, Qingsong Wen, Yuxuan Liang, Weigao Sun

TL;DR

Comba is a novel Bilinear RNN architecture inspired by closed-loop control theory that addresses the memory and efficiency bottlenecks of standard Transformers. By introducing a scalar-plus-low-rank (SPLR) state transition alongside both state and output feedback corrections, Comba achieves state-of-the-art performance and computational efficiency across language and vision modeling tasks.

What Problem Does This Paper Address?

While autoregressive Transformers dominate modern AI, their softmax-based self-attention mechanism suffers from quadratic time complexity and unbounded memory growth (the KV cache problem) during inference. Linear RNNs and State Space Models (SSMs) like Mamba offer a constant-memory, $O(1)$ inference alternative, but their heuristic gating mechanisms often forget information uniformly, degrading performance on long-context retrieval and complex reasoning tasks.

Recently, "Bilinear RNNs" (such as Gated DeltaNet and RWKV-7) introduced the Delta learning rule to supervise memory updates, creating richer interactions between the recurrent state and input keys. However, these models still struggle to balance model expressiveness, hardware-friendly parallelization, and stability (often suffering from overfitting or gradient explosion).

Methods

The authors propose Comba, a Bilinear RNN variant designed through the lens of closed-loop control theory.

   Input (v_t) ---> [State Feedback Correction] ---> Recurrent State (S_t)
                                                           |
   Query (q_t) ---> [Output Feedback Correction] ----------> Output (o_t)

Comba introduces several key innovations:

  1. Scalar-Plus-Low-Rank (SPLR) State Transition: Instead of using complex diagonal-plus-low-rank matrices that can impair model capacity, Comba uses a data-dependent scalar combined with a low-rank update to govern state transitions. This structure naturally admits negative eigenvalues, enhancing the model's state-tracking capability.
  2. Two-Stage Feedback Correction: Inspired by closed-loop controllers, Comba applies negative feedback at two points: it corrects the input value vector $v_t$ based on the current state (state feedback), and it refines the query vector $q_t$ at the output stage (output feedback) using the similarity objective $\langle q_t, d k_t \rangle$.
  3. Hardware-Efficient Chunk-Wise Parallelism: To make the architecture viable for large-scale pretraining, the authors designed a custom Triton kernel. By applying a novel mathematical induction to the WY representation and UT transform, Comba reduces the required lower-triangular matrix inversions from two (in previous models like Gated DeltaNet) down to just one per chunk.

The overall architecture variants (including standard, Mamba-like, and hybrid attention configurations) are illustrated below:

Figure 2: Comba Families. The Mamba-like architecture omits MLP layers, uses multi-value attention, and doubles the model depth. For the hybrid model, we incorporate sliding window attention in flexible proportions to boost the model’s recall ability. The window size is set to the context length, equivalent to softmax attention.

Datasets

Comba was pretrained and evaluated across multiple domains:

  • Language Modeling: Pretrained on the SlimPajama dataset (340M parameter model trained on 15B tokens; 1.3B parameter model trained on 100B tokens).
  • Downstream Language Evaluation: Evaluated via lm-evaluation-harness for commonsense reasoning (Lambada, WikiText, ARC, HellaSwag, PIQA, WinoGrande) and long-context capabilities via LongBench. Recall-intensive capabilities were tested using synthetic MQAR (Multi-Query Associative Recall) settings.
  • Vision Modeling: Image classification on ImageNet-1K, and object tracking on the GOT-10k and LaSOT datasets.

Key Insights and Ideas

  • Bilinear RNNs as Control Systems: Viewing recurrent neural networks as control loops reveals why output feedback matters. While prior models only corrected the state matrix during the "write" phase, Comba's single-line output correction ($q_t - d k_t$) acts as a robust error-correction mechanism during the "read" phase, significantly dropping language perplexity.
  • Geometric Memory Management: The Delta learning rule acts as a Householder transformation, effectively reflecting stored memories across a hyper-plane orthogonal to the key vector $k_t$. This implicitly enforces orthogonal memory management, preventing historical memory conflicts over long sequences.
Figure 1: Householder transform as mirror transform with factor β.
  • The Overfitting Trap of DPLR: The authors discovered that while Diagonal-Plus-Low-Rank (DPLR) extensions yield rapid initial loss decreases, they are highly prone to overfitting in visual modeling. The simpler SPLR structure proved more stable and computationally efficient.

Key Results

  • Computation Speedup: Thanks to the single-matrix-inversion optimization in the Triton kernel, Comba achieves a 40% speed improvement in forward propagation compared to Gated DeltaNet.
Figure 3: Operator computation time (ms) evaluated on the Triton-Testing-Benchmark across varying context lengths.
  • Language Modeling: At both 340M and 1.3B scales, Comba outperformed strong baselines like Mamba, GLA, and RWKV-7 on commonsense reasoning and recall-intensive tasks, achieving performance remarkably close to standard quadratic Transformers. It also demonstrated perfect recall ($100\%$ accuracy) on the synthetic MQAR task.
  • Vision Modeling: On ImageNet-1K, Comba-T achieved 76.3% Top-1 accuracy, outperforming Vision Mamba (Vim-T) and Agent Attention while utilizing fewer FLOPs and parameters. In object tracking (GOT-10k/LaSOT), Comba variants consistently outperformed standard attention mechanisms, demonstrating superior temporal modeling during occlusions.

Limitations and Future Work

Due to academic resource constraints, the authors could not scale Comba beyond 1.3B parameters to massive large language model (LLM) sizes (e.g., 7B+). Additionally, several contemporary non-linear RNN architectures (like Titans or MIRAS) remain closed-source, preventing direct empirical comparisons.

Moving forward, the authors aim to optimize chunk-wise parallelism for fully non-linear recurrent networks and explore hybrid architectures that combine Comba with Gated Slot Attention (GSA).

Summary updated

BibTeX
@misc{hu2025comba,
  author = {Jiaxi Hu and Yongqi Pan and Jusen Du and Disen Lan and Xiaqiang Tang and Qingsong Wen and Yuxuan Liang and Weigao Sun},
  title = {{Comba: Improving Bilinear RNNs with Closed-loop Control}},
  year = {2025},
  eprint = {2506.02475},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2506.02475},
}
Figure