DA3: Dynamic Additive Attention Adaption for Memory-Efficient On-Device Multi-Domain Learning

Li Yang, Adnan Siraj Rakin, Deliang Fan

Abstract

On-device learning is often hindered by the high memory requirements of backpropagation, primarily due to activation storage. We present Dynamic Additive Attention Adaption (DA³), a framework that shifts from multiplicative to additive model updates to eliminate the need for storing massive activation maps. DA³ reduces training memory by up to 37x and achieves a 2x speedup on edge hardware like the NVIDIA Jetson Nano, while maintaining state-of-the-art accuracy across multiple visual domains.

Introduction

Deep learning models typically require significant computational resources for training, making them difficult to adapt to new tasks on edge devices. Multi-domain learning (MDL) seeks to adapt pre-trained models to diverse tasks sequentially. However, the primary bottleneck in on-device training is not the number of parameters, but the activation memory required for gradient calculation.

Training memory usage and training time comparison between standard methods and DA³.

As shown in Figure 1, while parameter counts may be similar across methods, activation memory is often several times larger than the model itself. On resource-constrained hardware, this leads to significant performance degradation or failure. DA³ addresses this by rethinking the mathematical operations used for model adaptation.

Methods: Dynamic Additive Attention Adaption

The core innovation of DA³ is the transition from multiplicative to additive relationships in the network's adaptation layers. In standard backpropagation, multiplicative weights require storing input activations to compute gradients. In contrast, additive components, such as biases or the proposed DA³ module, are "activation-free" because their gradients do not depend on the previous layer's snapshot.

The DA³ architecture featuring the additive adaptor and spatial attention gating within bottleneck blocks.

The DA³ framework consists of two primary components:

  1. The Additive Adaptor: A small parallel branch added to each network block. Since it is additive, it does not require storing the large activation maps of the frozen backbone.
  2. Spatial Attention Gating: A mechanism that identifies task-specific important regions in an image. To minimize overhead, the gating mechanism is "detached" from the gradient graph during training, allowing it to guide the forward pass without increasing memory during backpropagation.

Experimental Results

We evaluated DA³ on the NVIDIA Jetson Nano using five diverse datasets (WikiArt, Sketch, Stanford Cars, CUBS, and Flowers) and the Visual Decathlon Challenge.

Memory and Speed Efficiency

DA³ demonstrated exceptional efficiency on edge hardware. Compared to standard fine-tuning, it reduced activation memory consumption from approximately 343 MB to just 10.49 MB—a reduction of over 32x. This efficiency translated into a 2x speedup in training time per epoch on the Jetson Nano.

Accuracy and Inference

Despite the reduced memory footprint, DA³ achieved state-of-the-art performance. On the Visual Decathlon Challenge, it reached a score of 3498, surpassing established methods like Piggyback and Parallel Residual Adaptors. Furthermore, the spatial attention gating provided a secondary benefit by reducing inference computation costs by 1.08x to 1.47x through effective feature pruning.

Conclusion

DA³ represents a significant step toward making on-device learning practical. By identifying activation memory as the primary bottleneck and utilizing additive operations, the framework enables efficient adaptation of deep models on low-power edge devices. Future work will explore the applicability of this additive approach to non-convolutional architectures like Vision Transformers and its long-term performance in continuous learning scenarios.

Summary updated

BibTeX
@inproceedings{yang2022da,
  author = {Li Yang and Adnan Siraj Rakin and Deliang Fan},
  title = {{DA3: Dynamic Additive Attention Adaption for Memory-Efficient On-Device Multi-Domain Learning}},
  booktitle = {Workshops @ CVPR},
  year = {2022},
  doi = {10.1109/cvprw56347.2022.00295},
}
Figure