MixRL: Data Mixing Augmentation for Regression using Reinforcement Learning

Seonghyeon Hwang, Steven Euijong Whang

Abstract

Data augmentation techniques like Mixup have significantly improved performance in classification tasks by interpolating between data points. However, applying these methods to regression often leads to "manifold intrusion," where synthetic examples possess incorrect labels due to non-linearities in the underlying function. We present RegMix, a framework that leverages reinforcement learning to optimize data mixing policies. By learning a sample-specific k-nearest neighbor (kNN) mixing strategy, RegMix avoids generating noisy synthetic data and consistently outperforms standard augmentation baselines across diverse regression datasets.

Introduction

Data augmentation is a powerful tool for improving model generalization without the need for additional data collection. In the domain of image classification, Mixup—which creates new training samples through linear interpolation—has become a standard technique. Despite its success, Mixup's transition to regression tasks is non-trivial. Unlike classification, where decision boundaries are often "fuzzy," regression requires predicting continuous values where local geometry and non-linearity play a critical role.

The Problem: Manifold Intrusion

The primary obstacle to effective Mixup in regression is manifold intrusion. When two distant data points are mixed, the resulting synthetic sample's label is calculated via linear interpolation. If the true underlying function is highly non-linear between these points, the synthetic label will be "arbitrarily incorrect."

Manifold intrusion occurs when linear interpolation between distant points (a and d) creates synthetic samples (stars) that deviate significantly from the true function f(x).

As shown in Figure 2, mixing points $a$ and $d$ results in synthetic points far from the actual curve. Conversely, mixing closer points (like $b$ and $c$) produces much more accurate synthetic data. Because "safe" mixing distances vary across the data manifold, a one-size-fits-all approach to Mixup often introduces more noise than signal.

Methodology: RegMix

To address this, the RegMix framework introduces a kNN Mixing Policy. Instead of random pairing, RegMix determines for each training example $x_i$ the optimal number of nearest neighbors ($k$) it should be mixed with.

Reinforcement Learning Controller

The selection of $k$ is treated as a searchable policy space optimized via reinforcement learning. The system consists of a controller and a regression model:

  1. Controller: An MLP or RNN that outputs a probability distribution over possible $k$ values for each data point.
  2. Training & Reward: A regression model is trained on the augmented data. The inverse of its validation set loss serves as the "reward" for the controller.
  3. Optimization: The controller is updated using Proximal Policy Optimization (PPO) to favor $k$ values that minimize validation error.
The RegMix architecture uses an RL controller (MLP or RNN) to sample mixing policies, which are then used to train a regression model evaluated on validation loss.

This approach allows the model to automatically "shrink" the mixing range in volatile regions of the dataset while allowing more aggressive augmentation in smoother areas.

Experimental Results

RegMix was evaluated on four datasets: NO2 concentration prediction, bike rental demand, and two semiconductor manufacturing tasks (Product and Synthetic).

  • Performance: RegMix consistently achieved the lowest Root Mean Square Error (RMSE) across all benchmarks. For instance, on the Bike dataset, it reduced RMSE from 393.36 (standard Mixup) to 368.86.
  • Efficiency: The method demonstrated faster convergence, likely because the training process was not hampered by the "garbage" synthetic data generated by standard random Mixup.
  • Controller Choice: Interestingly, simple MLP controllers performed as well as more complex RNNs, suggesting that local neighborhood information is the primary driver of effective augmentation in regression.

Conclusion

RegMix provides a robust solution for data augmentation in regression by learning to navigate the trade-off between regularization and manifold intrusion. By using reinforcement learning to tailor mixing policies to local data geometry, it turns data augmentation from a risky heuristic into a precise, learned optimization process. While the computational overhead of the RL loop is a consideration, the significant gains in accuracy make it a valuable tool for high-stakes regression tasks.

Summary updated

BibTeX
@misc{hwang2021mixrl,
  author = {Seonghyeon Hwang and Steven Euijong Whang},
  title = {{MixRL: Data Mixing Augmentation for Regression using Reinforcement Learning}},
  year = {2021},
  eprint = {2106.03374},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2106.03374},
}
Figure