EPAS: Efficient Training with Progressive Activation Sharing
Rezaul Karim, Maryam Dialameh, Yang Liu, Boxing Chen, Walid Ahmed
TL;DR
EPAS addresses the high computational cost of training and inferring large Transformer models by exploiting redundancy in deep-layer activations. It introduces a switchable activation-sharing decoder and a deterministic, progressive schedule that expands a sharing region from the model's deep layers toward the shallow ones, reducing FLOPs without sacrificing accuracy. Empirically, EPAS achieves up to 11% faster training throughput and up to 29% faster inference throughput on LLaMA-family models, with minimal loss in final performance. Additionally, continual pretraining with EPAS converts pretrained models into efficient activation-sharing variants, yielding about a 10% improvement in LM accuracy under sharing, demonstrating the method's practical impact for efficient, budget-flexible large-language models.
Abstract
We present a novel method for Efficient training with Progressive Activation Sharing (EPAS). This method bridges progressive training paradigm with the phenomenon of redundant QK (or KV ) activations across deeper layers of transformers. EPAS gradually grows a sharing region during training by switching decoder layers to activation sharing mode. This results in throughput increase due to reduced compute. To utilize deeper layer redundancy, the sharing region starts from the deep end of the model and grows towards the shallow end. The EPAS trained models allow for variable region lengths of activation sharing for different compute budgets during inference. Empirical evaluations with QK activation sharing in LLaMA models ranging from 125M to 7B parameters show up to an 11.1% improvement in training throughput and up to a 29% improvement in inference throughput while maintaining similar loss curve to the baseline models. Furthermore, applying EPAS in continual pretraining to transform TinyLLaMA into an attention-sharing model yields up to a 10% improvement in average accuracy over state-of-the-art methods, emphasizing the significance of progressive training in cross layer activation sharing models.
