Hybrid Architectures for Language Models: Systematic Analysis and Design Insights
Sangmin Bae, Bilge Acun, Haroun Habeeb, Seungyeon Kim, Chien-Yu Lin, Liang Luo, Junjie Wang, Carole-Jean Wu
TL;DR
This work systematically evaluates hybrid language-model architectures that combine Transformer self-attention with Mamba state-space models to balance modeling quality and long-context efficiency. It contrasts inter-layer (sequential) and intra-layer (parallel) fusion, performs extensive ablations, and analyzes scaling, training/inference efficiency, and long-context retrieval. Key findings show that both hybrid strategies outperform homogeneous baselines under equal compute, with intra-layer hybrids achieving the best quality-efficiency Pareto frontier, and Mixture-of-Experts integration providing additional gains. The study provides practical design recipes, reveals robust long-context advantages, and points to future work on scale validation and multimodal extensions, offering actionable guidance for building scalable, long-context LLMs.
Abstract
Recent progress in large language models demonstrates that hybrid architectures--combining self-attention mechanisms with structured state space models like Mamba--can achieve a compelling balance between modeling quality and computational efficiency, particularly for long-context tasks. While these hybrid models show promising performance, systematic comparisons of hybridization strategies and analyses on the key factors behind their effectiveness have not been clearly shared to the community. In this work, we present a holistic evaluation of hybrid architectures based on inter-layer (sequential) or intra-layer (parallel) fusion. We evaluate these designs from a variety of perspectives: language modeling performance, long-context capabilities, scaling analysis, and training and inference efficiency. By investigating the core characteristics of their computational primitive, we identify the most critical elements for each hybridization strategy and further propose optimal design recipes for both hybrid models. Our comprehensive analysis provides practical guidance and valuable insights for developing hybrid language models, facilitating the optimization of architectural configurations.
