Mixtraining: A Better Trade-Off Between Compute and Performance
Zexin Li, Jiancheng Zhang, Yufei Li, Yinglun Zhu, Cong Liu
TL;DR
MixTraining tackles the data- and compute-efficiency gap in SSL+SL pipelines by inserting a middle mixtraining phase that jointly optimizes self-supervised and supervised objectives. By merging backbone forward/backward passes and constructing a mixed dataset, it achieves smoother optimization and reduced computation, yielding significant accuracy improvements (for example 8.81% absolute and 18.89% relative on TinyImageNet) with up to 1.29x speedups on ViT-Tiny. The approach proves effective across single-task and multi-task settings and remains robust when SSL and SL data differ, with stronger gains under data-limited regimes. Overall, MixTraining provides a practical, plug-and-play path to better compute-performance trade-offs in SSL-informed models with broad applicability to vision tasks and beyond.
Abstract
Incorporating self-supervised learning (SSL) before standard supervised learning (SL) has become a widely used strategy to enhance model performance, particularly in data-limited scenarios. However, this approach introduces a trade-off between computation and performance: while SSL helps with representation learning, it requires a separate, often time-consuming training phase, increasing computational overhead and limiting efficiency in resource-constrained settings. To address these challenges, we propose MixTraining, a novel framework that interleaves several SSL and SL epochs within a unified mixtraining training phase, featuring a smooth transition between two learning objectives. MixTraining enhances synergy between SSL and SL for improved accuracy and consolidates shared computation steps to reduce computation overhead. MixTraining is versatile and applicable to both single-task and multi-task learning scenarios. Extensive experiments demonstrate that MixTraining offers a superior compute-performance trade-off compared to conventional pipelines, achieving an 8.81% absolute accuracy gain (18.89% relative accuracy gain) on the TinyImageNet dataset while accelerating training by up to 1.29x with the ViT-Tiny model.
