UNIFY: Unified Learning with One Model via Batch Norm Switching
Abstract
Neural networks are typically trained separately for individual datasets or tasks, resulting in many task-specific models. This redundancy increases memory footprint, deployment costs, and energy consumption limiting their scalability. We propose UNIFY, a unified learning framework that enables a single model to jointly learn and perform inference across multiple datasets via Batch Normalization Switching (BNS). Instead of maintaining separate models for each dataset, UNIFY shares the parameter-intensive backbone while maintaining dataset-specific BN statistics and parameters, along with dataset-specific classification heads. We validate our framework using five datasets (MNIST, Fashion-MNIST, CIFAR-10, CIFAR-100, Tiny-ImageNet) across six Convolutional Neural Networks (CNNs) of different sizes (SqueezeNet 1.1, WideResNet-40-2, WideResNet-16-8, ResNet-18, ResNet-34, ResNet-50). Notably, a single UNIFIED ResNet-34 trained on these datasets achieves accuracies of 99.53%, 94.84%, 96.12%, 80.32%, and 67.67%, respectively, outperforming the average performance of the corresponding independently trained task-specific models while reducing the memory footprint by approximately 4.94x, from 428.30 MB (five separate models) to 86.71 MB (one unified model). UNIFY aims not only to consolidate (K) models into a single model but also to enhance model-effectiveness by leveraging complementary knowledge across datasets. It paves the way for scalable, efficient, and unified learning capable of handling diverse image classification tasks. Code is available at: https://github.com/saktx/UNIFY.
Create a lesson
Metadata
- Categories
- cs.CV, cs.LG
- Comments
- 8 pages, 3 figures, 4 tables
Related papers
UniDR: Learning To Generate Anatomical Deformations From Images via Unified Diffusion Modeling and Registration
Shared title terminologycs.CVSwakshar Deb, Tonmoy Hossain, Tom Fletcher et al.
ArgsWorld: Unifying 3DGS Scene Reconstruction, Generation and Extrapolation with Autoregressive Diffusion Transformer
Shared title terminologycs.CVWeiming Chen, Shuaiyan Liu, Xinyu Shao et al.
AdapToC: A Unified Framework for Multi-Task Visual Token Communication
Shared title terminologycs.CVZhicheng Liu, Chenliang Wu, Zhouxiang Zhao et al.
Open Vision Banana: An Open Framework for Unified Visual Perception through Generation in RGB Space
Shared title terminologycs.CVXu Lin, Ruilin Yao, Haoran Xu et al.
SUPERVISE: A Unified Framework for Standardized and Reproducible Superpixel Evaluation
Shared title terminologycs.CVJulien Walther, Rémi Giraud, Michaël Clément