From Redundancy to Efficiency: A Similarity-based Filter Sharing for Deep Model Compression
Abstract
Deep CNNs have achieved significant performance across a variety of computer vision tasks. However, their effectiveness comes at a cost of overparameterization. This leads to extensive computation and memory requirements, thereby limiting practical deployment in resource-constrained environments. A growing body of evidence suggests that many of these parameters are redundant, motivating the need for compression strategies that go beyond parameter-level heuristics. To overcome these challenges, we propose a layerwise, similarity-based filter-sharing framework for optimizing parameters of deep models by identifying and exploiting redundancy among filters. By leveraging representational similarity of the filters measured via Centered Kernel Alignment (CKA), our approach enables efficient filter-sharing over layers, significantly reducing the number of parameters, FLOPs and overall memory footprint. We form clusters of filters by measuring their feature-map similarity scores on the dataset, enabling compression decisions guided by representational behaviour rather than raw parameter values. We further use an entropy- and energy-based scaling mechanism that adaptively determines the number of shared filters per layer. Additionally, we extend the framework with a class-conditional formulation, enabling the construction of specialized compressed sub-models tailored to different subsets of tasks. This provides insight into how representational redundancy varies with task difficulty and allows the model to allocate capacity in a data-dependent manner. We conduct extensive experiments over VGG16, AlexNet, ResNet and MobileNetV2 models across standard benchmark datasets. The results demonstrate the effectiveness of our proposed method in achieving substantial parameter and FLOP reductions, while maintaining competitive accuracy. We compare our framework against several state-of-the-art compression methods from the literature. Our proposed framework offers a simple and effective approach to exploiting redundancy in deep networks, with practical implications for efficient deployment and adaptive model design.