Learning Tree-Structured Composition of Data Augmentation

Dongyue Li, Kailai Chen, Predrag Radivojac, Hongyang R. Zhang

Abstract

Data augmentation is widely used in scenarios where one needs to train a neural network given little labeled data. A common practice of augmentation training is applying a composition of multiple transformations sequentially to the data. Existing augmentation methods such as RandAugment rely on domain expertise to select a list of transformations, while other methods such as AutoAugment formulate an optimization problem over a search space of size $k^d$, which is the number of sequences of length $d$, given a list of $k$ transformation functions. In this paper, we focus on designing efficient algorithms whose running time complexity is much faster than the worst-case complexity of $O(k^d)$, provably. We propose a new algorithm to search for a binary tree-structured composition of $k$ transformations, where each tree node corresponds to one transformation. The binary tree generalizes sequential augmentations. Using a top-down, recursive search procedure, our algorithm achieves a runtime complexity of $O(2^d k)$, which is much faster than $O(k^d)$ as $k$ increases above $2$.

Introduction

Data augmentation (DA)—the process of creating synthetic training examples by rotating images, dropping nodes in a graph, or adding noise—is a cornerstone of modern machine learning. However, two major hurdles remain. First is the combinatorial explosion: most state-of-the-art methods apply a sequence of transformations. If you have $k$ possible transformations and want a sequence of length $d$, the search space is $k^d$. For even modest values, this becomes computationally prohibitive. Second is data heterogeneity: a "one-size-fits-all" augmentation strategy often fails when a dataset contains diverse subpopulations. For example, an augmentation that helps a neural network understand a large, complex protein graph might actually "break" the signal in a small, simple graph.

Methods: Tree-Structured Composition

The core innovation of this work is the transition from linear sequences to a probabilistic binary tree-structured composition.

The Tree Structure

In this model, each node in a binary tree represents a specific transformation. Depending on a probability $p$, the system either applies the transformation and moves to one child node or skips it and moves to another. This structure is more flexible than a sequence and can represent a sequence as a special case.

Comparison between sequential and tree-structured augmentation compositions.

Efficient Search and the "Forest" Approach

Instead of an exhaustive search, the authors use a top-down, recursive greedy search (Algorithm 1). By using a "density matching" technique—evaluating augmentations on a pre-trained model rather than retraining from scratch—they bring the search complexity down from $O(k^d)$ to $O(2^d k)$. To handle diverse data, the authors partition the dataset into groups (e.g., by graph size) and learn a specific augmentation tree for each group, combining them into a "forest" using bilevel optimization (Algorithm 2).

Results and Discussion

The proposed algorithm significantly improves both computational efficiency and model performance across graph and image datasets.

Computational Efficiency

The jump from exponential complexity ($k^d$) to linear-in-$k$ complexity ($2^d k$) is a massive win for researchers with limited GPU budgets. Empirically, the proposed algorithm reduced computation costs by 43% compared to existing augmentation search methods like GraphAug.

Comparison of search complexity and compositionality across different augmentation methods.

Accuracy and Interpretability

On a new multi-label graph classification dataset of protein structures, the method improved performance by 4.3% over RandAugment. In contrastive learning settings (like SimCLR), the tree-structured approach outperformed standard expert-designed sequences by 5.9% on medical image tasks.

Furthermore, the tree structure naturally captures the "importance" of transformations. The "forest" approach revealed that different data types need different "medicine": for small graphs, permuting edges was most effective, while for large graphs, generating subgraphs via random walks worked better.

Conclusion

By rethinking data augmentation as a tree-structured search problem, this work provides a provably efficient algorithm that overcomes the combinatorial hurdles of sequential search. Future directions include exploring how these tree structures can improve out-of-distribution (OOD) generalization and extending the "forest" concept to automatically discover subpopulations rather than relying on manual partitioning.

Summary updated

BibTeX
@article{li2024learning,
  author = {Dongyue Li and Kailai Chen and Predrag Radivojac and Hongyang R. Zhang},
  title = {{Learning Tree-Structured Composition of Data Augmentation}},
  journal = {Accepted by TMLR},
  year = {2024},
  url = {https://openreview.net/forum?id=lmgf03HeqV},
}
Figure