MAR: Efficient Large Language Models via Module-aware Architecture Refinement
Junhong Cai, Guiqin Wang, Kejie Zhao, Jianxiong Tang, Xiang Wang, Luziwei Leng, Ran Cheng, Yuxin Ma, Qinghai Guo
TL;DR
The paper tackles the high energy demands of large language models by proposing Module-aware Architecture Refinement (MAR), a two-stage framework that first adopts State Space Models for linear-time sequence processing and then sparsifies activations with spiking neurons to reduce FFN costs. It introduces Adaptive Ternary Multi-step Neuron (ATMN) to boost information density and Spike-aware Bidirectional Distillation Strategy (SBDS) to reconcile temporal dynamics and retain performance under constraints. Through extensive experiments on Llamba-1B, MAR restores teacher-level accuracy across multiple benchmarks while substantially lowering inference energy, and it outperforms larger efficient models of comparable scale. These results demonstrate MAR’s potential to enable practical, energy-efficient LLMs suitable for deployment under resource limitations.
Abstract
Large Language Models (LLMs) excel across diverse domains but suffer from high energy costs due to quadratic attention and dense Feed-Forward Network (FFN) operations. To address these issues, we propose Module-aware Architecture Refinement (MAR), a two-stage framework that integrates State Space Models (SSMs) for linear-time sequence modeling and applies activation sparsification to reduce FFN costs. In addition, to mitigate low information density and temporal mismatch in integrating Spiking Neural Networks (SNNs) with SSMs, we design the Adaptive Ternary Multi-step Neuron (ATMN) and the Spike-aware Bidirectional Distillation Strategy (SBDS). Extensive experiments demonstrate that MAR effectively restores the performance of its dense counterpart under constrained resources while substantially reducing inference energy consumption. Furthermore, it outperforms efficient models of comparable or even larger scale, underscoring its potential for building efficient and practical LLMs.
