DynamicAug: Enhancing Transfer Learning Through Dynamic Data Augmentation Strategies Based on Model State

Xinyi Yu, Haodong Zhao, Mingyang Zhang, Yan Wei, Libo Zhou, Linlin Ou

Abstract

Transfer learning on specialized datasets often leads to overfitting, typically mitigated by static data augmentation (DA) strategies. We present DynamicAug, a framework that replaces fixed DA hyperparameters with a learnable sampling strategy that adapts to the model's convergence state. Evaluated across 27 vision benchmarks, DynamicAug significantly improves performance for Parameter-Efficient Fine-Tuning (PEFT) methods like LoRA and Adapters with zero inference overhead.

Introduction

In transfer learning, fine-tuning massive pre-trained models (such as Vision Transformers) on small, specialized datasets frequently results in overfitting. Data augmentation techniques—including Mixup, RandAugment, and Dropout—are standard defenses. However, these methods typically rely on static hyperparameters that remain constant throughout training, failing to account for the model's evolving needs as it approaches convergence. Furthermore, finding the optimal augmentation intensity often requires exhaustive and computationally expensive grid searches.

DynamicAug introduces a "model-aware" approach to data augmentation. By autonomously adjusting augmentation intensity based on the model's real-time convergence state, it replaces manual tuning with a learnable sampling strategy.

Methodology

The core of the DynamicAug framework consists of three main components designed to make data augmentation adaptive:

  1. Data Augmentation Sampler (DAS): Instead of a fixed intensity value, the system samples intensity from a truncated Gaussian distribution.
  2. Learnable Expectation ($\alpha$): The mean of the Gaussian distribution is treated as a learnable parameter. Using a Straight-Through Estimator (STE), the model can update its augmentation strategy end-to-end via backpropagation.
  3. Convergence Loss ($L_{cvg}$): This novel loss function monitors the model's state by calculating the difference in validation loss between iterations. If the loss continues to decrease significantly, the system adjusts the augmentation intensity ($\alpha$) to match the model's learning stage.
Conceptual overview of DynamicAug adjusting model regularization based on internal state.

This logic is applied to common techniques such as Dynamic Drop (adjusting DropPath/Dropout), Dynamic Mixup/Cutmix, and Dynamic RandAugment.

Experimental Results

The researchers evaluated DynamicAug across 27 vision datasets, including the VTAB-1k benchmark (19 tasks), Fine-Grained Visual Classification (FGVC) datasets, and various few-shot tasks.

Key Performance Metrics

DynamicAug demonstrated consistent improvements across all tested benchmarks:

  • VTAB-1k: LoRA combined with Dynamic Drop (LoRA-DD) achieved a mean accuracy of 76.3%, outperforming standard LoRA (74.6%) and specialized state-of-the-art methods like SPT (75.9%).
  • Few-Shot Learning: In 1-shot and 2-shot scenarios, dynamic adjustment effectively prevented model collapse and overfitting more reliably than static dropout rates.
  • Broad Applicability: The method proved robust across different pre-training regimes, including supervised learning, Masked Autoencoders (MAE), and MoCo v3.
Performance comparison of LoRA-DA vs. standard LoRA across various vision benchmarks.

Discussion and Key Insights

A critical finding of this work is that the model's internal state serves as a superior indicator for required regularization compared to human-defined schedules. Ablation studies revealed that models benefit more from the trend of regularization changes rather than specific numerical values. Importantly, because DynamicAug only modifies the training phase, it introduces zero inference overhead, making it a highly efficient "plug-and-play" enhancement for existing PEFT methods like LoRA, Adapters, and Visual Prompt Tuning (VPT).

Conclusion and Future Work

While DynamicAug shows significant promise, challenges remain in managing extremely small datasets where splitting data for convergence loss calculation adds complexity. Future research may explore extending this dynamic logic to other hyperparameters, such as learning rates or weight decay, to create a fully autonomous training loop. By making the training process model-aware, DynamicAug moves closer to self-optimizing machine learning systems.

Summary updated

BibTeX
@article{yu2024dynamicaug,
  author = {Xinyi Yu and Haodong Zhao and Mingyang Zhang and Yan Wei and Libo Zhou and Linlin Ou},
  title = {{DynamicAug: Enhancing Transfer Learning Through Dynamic Data Augmentation Strategies Based on Model State}},
  journal = {Neural Process. Lett.},
  year = {2024},
  doi = {10.1007/s11063-024-11626-9},
}
Figure