ShishuLM: Lightweight Language Model with Hybrid Decoder-MLP Architecture and Paired Weight Sharing
Shivanshu Kumar, Gopalakrishnan Srinivasan
TL;DR
ShishuLM introduces a hybrid decoder-MLP architecture that omits attention in deeper blocks and shares weights across adjacent MLP layers to reduce parameter count and KV cache requirements. By leveraging linearity in the attention components and interpretability-driven weight distribution analyses, the paper demonstrates that up to ~2/3 of attention layers can be removed with minimal performance loss, while weight sharing in the remaining MLP blocks yields notable memory and latency gains. Evaluations on MobileLLM-125M and -600M show up to 25% memory reduction and up to 40% latency improvement with negligible drops in zero-shot performance on several downstream tasks. The work offers a practical, pre-training-friendly path toward more efficient small-language-model architectures, with limitations tied to model scale and architecture specificity.
Abstract
While the transformer architecture has achieved state-of-the-art performance on natural language processing tasks, these models impose substantial memory and computational overhead. Recent research has identified significant architectural redundancies within these models, presenting opportunities for optimization without compromising performance. Taking insights from research in AI interpretability and inference-time layer pruning, we introduce an efficient language model architecture, referred to as ShishuLM, which reduces both the parameter count and Key-Value (KV) cache requirements. Given the increasing importance of Small Language Models (SLMs) in agentic AI systems, we evaluate our approach on two SLMs of different scales. Our analysis reveals that for moderate-context scenarios, normalization coupled with attention computation is roughly linear with the input, enabling entire transformer blocks to be approximated through Multi-Layer Perceptrons (MLPs). Our results show that ShishuLM provides up to 25% reduction in memory requirements and up to 40% improvement in latency during both training and inference, compared to parent models. Our experimental and analytical findings provide insights towards building more efficient SLM architectures from a pre-training standpoint.
