Tiny Models are the Computational Saver for Large Models

Qingyuan Wang,Barry Cardiff,Antoine Frappé,Benoit Larras,Deepu John
2024-07-17
Abstract:This paper introduces TinySaver, an early-exit-like dynamic model compression approach which employs tiny models to substitute large models adaptively. Distinct from traditional compression techniques, dynamic methods like TinySaver can leverage the difficulty differences to allow certain inputs to complete their inference processes early, thereby conserving computational resources. Most existing early exit designs are implemented by attaching additional network branches to the model's backbone. Our study, however, reveals that completely independent tiny models can replace a substantial portion of the larger models' job with minimal impact on performance. Employing them as the first exit can remarkably enhance computational efficiency. By searching and employing the most appropriate tiny model as the computational saver for a given large model, the proposed approaches work as a novel and generic method to model compression. This finding will help the research community in exploring new compression methods to address the escalating computational demands posed by rapidly evolving AI models. Our evaluation of this approach in ImageNet-1k classification demonstrates its potential to reduce the number of compute operations by up to 90\%, with only negligible losses in performance, across various modern vision models.
Artificial Intelligence
What problem does this paper attempt to address?
The problem that this paper attempts to solve is the high demand for computing resources in large - scale AI models. With the rapid growth of AI model scale, especially in the fields of natural language processing (NLP) and computer vision, these models not only consume a large amount of computing resources, but also have a significant impact on the overall energy consumption of society. Therefore, it has become particularly urgent to develop more efficient computing reduction methods. Specifically, the paper proposes a method named TinySaver, which aims to save computing resources by using small - scale models to replace part of the tasks of large - scale models. This method belongs to the dynamic model compression technology. Different from the traditional static compression methods, it can dynamically decide whether to exit the computing process in advance according to the complexity of the input samples. TinySaver uses the pre - trained small - scale model as an early exit point. For simple tasks, it can be directly processed by the small - scale model, while for complex tasks, it is transferred to the large - scale model for processing. In this way, the amount of computation can be greatly reduced while maintaining performance. The main contributions of the paper include: 1. Proposing a simple method that combines the pre - trained small - scale model with the concept of early exit (EE) to create a general computing compression method under the dynamic model architecture. 2. Analyzing the effectiveness and efficiency of using small - scale models for computing savings in the EE and Mixture of Experts (MoE) frameworks. 3. Introducing a method for selecting the most effective small - scale model to compress a specified base model and discussing the possible extensions of this method. 4. Research shows that the computing requirements of modern vision models can be significantly reduced by TinySaver, verifying the practical feasibility and efficiency of dynamic model compression. Through these contributions, the paper not only solves the current problem of tight computing resources, but also provides a new perspective for the development of efficient and scalable AI systems in the future.