Introduction
Deep learning models are scaling at an unprecedented rate, often hitting a "memory wall" where the intermediate activation data required for backpropagation exceeds the capacity of modern GPUs. While techniques like recomputation and data migration exist, they often introduce significant computational overhead or are limited by interconnect speeds. COMET (lossy Compresion Optimized Memory-Efficient Training) addresses this by utilizing error-bounded lossy compression to drastically reduce the memory footprint of deep neural networks (DNNs) with negligible impact on accuracy.
The COMET Framework
The core innovation of COMET lies in its intelligent application of lossy compression within the training loop. Unlike standard compression methods, COMET is specifically tailored to the stochastic nature of DNN training.
Modified cuSZ Compressor
Standard lossy compressors like SZ can introduce "near-zero" noise (e.g., $10^{-6}$), which may lead to gradient explosion in sparse activation maps produced by ReLU. COMET modifies the cuSZ algorithm with a "re-zeroing" filter, ensuring that exact zeros in the original data remain exact zeros after decompression, preserving the sparsity critical for stable training.
Adaptive Error-Bound Control
COMET does not rely on a static compression ratio. Instead, it employs an adaptive mechanism that performs a theoretical analysis of error propagation. By monitoring loss, gradient momentum, and activation sparsity, the framework dynamically adjusts the error bound ($eb$) every 1,000 iterations to maintain gradient distortion within a 1% threshold.
Hybrid Strategy
To balance efficiency and overhead, COMET employs a hybrid approach. It uses recomputation for computationally "cheap" layers, such as Pooling or Batch Normalization, and focuses its compression resources on memory-intensive Convolutional layers.
Evaluation and Results
The framework was rigorously tested on the ImageNet-2012 and Stanford Dogs datasets across various architectures, including VGG-16, ResNet, and EfficientNet.
Performance Gains
COMET achieved up to a 13.5x reduction in activation memory compared to baseline training, outperforming previous state-of-the-art methods like JPEG-ACT by 1.8x. This memory efficiency allows for significantly larger batch sizes, which in turn can lead to a 2x improvement in total training throughput for models like AlexNet.
Accuracy Preservation
Crucially, the top-1 accuracy drop on ImageNet was typically less than 0.3%. In some instances, the introduced noise appeared to have a regularization effect, slightly improving final model performance. This confirms the authors' insight that DNN training is inherently robust to zero-centered, normally distributed noise.
Discussion and Limitations
While COMET offers substantial memory savings, it introduces a computational overhead of approximately 11% to 17% per iteration due to the compression/decompression cycles. This trade-off is generally favorable when it enables larger batch sizes or training of larger models that would otherwise be impossible. However, for models dominated by 1x1 convolutions or those that are already heavily compute-bound, the benefits may be less pronounced. Future work aims to extend this framework to Transformer architectures and further optimize the compression overhead.
Summary updated