Introduction
Training deep neural networks on resource-constrained edge devices, such as smartphones or IoT sensors, presents significant challenges due to high computational costs and battery drain. Split Learning (SL) addresses this by partitioning the network between an edge device and a powerful cloud server. The edge device computes initial layers and transmits intermediate "activations" to the server, which completes the computation. During backpropagation, gradients are sent back to the edge.
However, the transmission of raw activations and gradients often creates a severe communication bottleneck. Existing compression methods—such as autoencoders, quantization, or simple sparsification—frequently apply a uniform approach that fails to distinguish between critical and trivial data. This leads to substantial accuracy loss under tight bandwidth constraints. This paper introduces Attention-based Double Compression (ADC), a context-aware framework designed to prioritize important features and drastically reduce communication overhead for Vision Transformers (ViTs).
The ADC Framework
ADC is a two-step compression strategy specifically tailored for ViTs. It leverages the inherent architecture of ViTs—specifically the Class (CLS) token's attention scores—to identify informative data. Since these scores are calculated during the standard forward pass, ADC introduces negligible computational overhead.
The "Double Compression" process consists of two orthogonal steps:
- Batch Compression (Reducing Samples): The edge device employs K-means clustering on CLS-token attention scores to group images with similar attention patterns. Activations within each cluster are averaged, and "soft-labels" are created. This process is class-agnostic; images from different classes can be merged if they exhibit similar spatial attention patterns.
- Token Selection (Reducing Features): Within each merged cluster, ADC identifies the top-$k$ most important tokens based on averaged attention scores. Background or uninformative tokens are discarded, retaining only the most relevant patches (e.g., the primary object).
By reducing both the number of samples and the tokens per sample, the forward pass is highly compressed. Gradients returned by the server are naturally compressed to the same dimensions, eliminating the need for additional gradient approximation.
Experimental Evaluation
The authors evaluated ADC using the Small and Tiny versions of the Data-efficient Image Transformer (DeiT-S and DeiT-T) on two standard benchmarks:
- CIFAR100: General object classification.
- Food101: Fine-grained classification of 101 food types.
Key Results
ADC consistently outperformed state-of-the-art baselines, including BottleNet++, Top-K, RandTopK, and C3-SL, across various compression ratios ($\xi$).
At an extreme compression ratio of $\xi \approx 0.1$ (where only 10% of data is transmitted), ADC maintained near-baseline accuracy on CIFAR100 with DeiT-T. In contrast, competing methods experienced severe performance degradation or failed to converge. Visual analysis via attention rollouts confirmed that ADC successfully isolates tokens representing primary objects at high compression rates while retaining relevant context at lower rates.
Insights and Discussion
- Efficiency of Attention: Using existing CLS token attention scores as a proxy for importance avoids the need for bulky, separate compression modules like autoencoders.
- Class-Agnostic Merging: Merging images based on attention maps rather than class labels preserves semantic consistency, as the model focuses on similar spatial features.
- Optimal Balance: Performance is maximized when the compression ratio is balanced between batch merging and token selection.
- Implicit Regularization: The clustering and token-dropping mechanisms appear to act as a regularizer, contributing to stable convergence and preventing overfitting.
Conclusion and Future Work
While ADC demonstrates significant promise, the current study assumes ideal communication channels. Future work will explore robustness in real-world wireless environments characterized by noise and fading. Additionally, the authors intend to extend the ADC framework to multi-client scenarios, such as Federated Learning, to investigate collaborative compression across distributed edge networks.
Summary updated