Systems and Algorithms for Convolutional Multi-Hybrid Language Models at Scale

Jerome Ku, Eric Nguyen, David W. Romero, Garyk Brixi, Brandon Yang, Anton Vorontsov, Ali Taghibakhshi, Amy X. Lu, Dave P. Burke, Greg Brockman, Stefano Massaroli, Christopher Ré, Patrick D. Hsu, Brian L. Hie, Stefano Ermon, Michael PoliarXiv 2025 · DOI

TL;DR

This paper introduces "StripedHyena 2," a novel convolutional multi-hybrid architecture for language models that achieves significant speedups and improved efficiency over Transformers, especially at scale. By carefully designing specialized convolutional operators and co-optimizing them with hardware, they demonstrate faster training and better performance on long sequences, particularly for byte-level data.

What Problem Does This Paper Address?

The dominant architecture for large language models (LLMs) is the Transformer. While powerful, Transformers have limitations, particularly in terms of computational cost and efficiency when processing very long sequences. Existing alternatives like linear attention and state-space models (SSMs) offer some improvements but often struggle to match Transformer quality or efficiency across all scenarios. The challenge is to develop architectures that can scale effectively, maintain high performance, and efficiently handle long contexts, especially for specialized data like byte-tokenized sequences. This paper aims to bridge this gap by proposing a new class of "convolutional multi-hybrid" models that combine the strengths of different operators in a hardware-aware manner.

Methods

The core of this work lies in the convolutional multi-hybrid architecture, named StripedHyena 2. This architecture is built upon three specialized input-dependent convolutional operators:

  • Hyena-SE (Short Explicit): Uses short, explicit filters for efficient local multi-token recall.
  • Hyena-MR (Medium Regularized): Employs medium-length, explicitly parameterized filters with a regularization term for efficient modeling over hundreds of tokens.
  • Hyena-LI (Long Implicit): Utilizes long, implicit filters to capture information across the entire sequence.

These operators are combined in various "striped layouts" within the model. A key innovation is the hardware-aware algorithm design, particularly the two-stage block algorithm for convolutions. This algorithm leverages filter grouping and optimizes for tensor cores on GPUs, transforming matrix-vector multiplications into efficient matrix-matrix multiplications. Additionally, the paper details context parallelism strategies (all-to-all and point-to-point) tailored for these convolutional operators to handle long sequences efficiently across multiple devices.

Datasets

  • OpenGenome2: Used for pretraining and evaluation, particularly for byte-tokenized (nucleotide) sequences.
  • Evo 2 line of models: Built upon StripedHyena 2, these models are state-of-the-art foundation models for genomics, trained on byte-tokenized sequences.

Key Insights and Ideas

  • Operator Specialization: Different convolutional operators can be tailored for specific token manipulation tasks (e.g., recall, compression), offering complementary strengths.
  • Hardware-Software Co-design: Optimizing convolutional operators and algorithms specifically for hardware (like tensor cores) is crucial for achieving significant efficiency gains, especially at scale.
  • Multi-Hybrids for Byte-Level Data: Convolutional multi-hybrids excel at sequence modeling over byte-tokenized data, demonstrating their potential for specialized domains like genomics.
  • Efficiency Beyond Transformers: StripedHyena 2 demonstrates that architectures beyond Transformers can achieve competitive or superior performance and efficiency, particularly in terms of training speed.
  • Context Parallelism for Convolutions: Adapting context parallelism techniques to convolutional operators is essential for scaling to very long sequences.

Key Results

  • Training Speedups: At the 40 billion parameter scale, StripedHyena 2 trains 1.2 to 2.9 times faster than optimized Transformers and 1.1 to 1.4 times faster than previous generation hybrids.
  • Operator Throughput: On H100 GPUs with a model width of 4096, individual operators in StripedHyena 2 achieve two-fold throughput improvement over linear attention and state-space models.
  • Perplexity: The Evo 2 40B model, built on StripedHyena 2, is a state-of-the-art foundation model for genomics.
  • Scaling: The architecture scales effectively to 40 billion parameters and 9 trillion tokens.
  • Context Extension: The models demonstrate good performance with context extension up to 1 million sequence length.

Limitations and Future Work

  • MFU at Long Sequences: While hybrids achieve higher throughput, they note a lower Model Floating-point Utilization (MFU) at very long sequence lengths compared to Transformers. This is attributed to subquadratic scaling in sequence length and suggests further tuning of distributed settings.
  • Block Layout Ablation: The authors recommend ablating block layouts for new tasks or domains, as the optimal configuration might vary.
  • Future Applications: The paper suggests that the efficiency of multi-hybrids will unlock new applications for foundation models.
  • Replacing MLPs: Early designs showed that replacing feed-forward layers with Hyena-SE offered improved convergence with a small decrease in throughput, suggesting future multi-hybrid designs could further optimize this ratio.

Summary updated

BibTeX
@misc{ku2025systems,
  author = {Jerome Ku and Eric Nguyen and David W. Romero and Garyk Brixi and Brandon Yang and Anton Vorontsov and Ali Taghibakhshi and Amy X. Lu and Dave P. Burke and Greg Brockman and Stefano Massaroli and Christopher Ré and Patrick D. Hsu and Brian L. Hie and Stefano Ermon and Michael Poli},
  title = {{Systems and Algorithms for Convolutional Multi-Hybrid Language Models at Scale}},
  year = {2025},
  eprint = {2503.01868},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2503.01868},
}
Figure