AutoSimulate: (Quickly) Learning Synthetic Data Generation

Harkirat Singh Behl, Atilim Günes Baydin, Ran Gal, Philip H. S. Torr, Vibhav Vineet · OpenReview

TL;DR

This paper introduces AutoSimulate, a novel method for efficiently learning optimal parameters for synthetic data generators. By using a differentiable approximation of the objective function, AutoSimulate significantly speeds up the process and reduces the amount of data needed compared to existing methods, leading to better performance on downstream tasks.

What Problem Does This Paper Address?

Training deep neural networks, especially for computer vision tasks like object detection and segmentation, requires massive amounts of labeled data. While synthetic data generation offers a promising alternative to costly real-world data collection and labeling, current methods for optimizing synthetic data generation are computationally expensive. These methods often treat the entire pipeline (data generation, model training, and validation) as a black box, requiring numerous costly evaluations of the objective function. This makes it challenging to optimize complex, non-differentiable simulators, especially those with many parameters, and hinders the widespread adoption of synthetic data for generating high-quality training datasets.

Methods

The core contribution of AutoSimulate is a novel differentiable approximation of the bi-level optimization objective. This objective aims to find simulator parameters that lead to a model trained on synthetic data achieving high accuracy on a real-world validation task.

The authors formulate this as a bi-level optimization problem: an inner loop for training the model on synthetic data and an outer loop for optimizing the simulator parameters based on the model's performance on real data. To overcome the computational expense and non-differentiability issues of existing methods (like REINFORCE-based estimators), AutoSimulate:

  • Differentiable Approximation: They derive a differentiable approximation of the outer loop's objective function using Taylor expansions. This allows them to optimize the simulator parameters with only a single objective evaluation per iteration.
  • Efficient Inner Loop Update: For the inner loop (model training), they propose an efficient approximation to update the model parameters. This involves using a Newton step and approximating the training loss with its quadratic portion, enabling faster convergence.
  • Numerical Techniques: They employ techniques like Hessian regularization (using Levenberg method) and inverse Hessian-vector product computation via conjugate gradient (CG) to efficiently solve the optimization problem.

Datasets

The paper evaluates AutoSimulate on two main scenarios:

  • CLEVR Blender: Used for semantic segmentation. The CLEVR dataset generator was utilized to create synthetic images.
  • Arnold Renderer: Used for object detection on real-world data. The LineMod-Occluded (LM-O) dataset was used for evaluation, with synthetic data generated by Arnold to train the object detector.

No new datasets were introduced in this paper.

Key Insights and Ideas

  • Single Objective Evaluation is Key: The most significant insight is that by creating a differentiable approximation of the objective, the entire optimization process can be drastically accelerated, moving from multiple expensive evaluations to just one per iteration.
  • Bridging the Gap Between Simulation and Reality: AutoSimulate directly optimizes simulator parameters to improve performance on real-world tasks, effectively learning to generate data that is most beneficial for the downstream model.
  • Handling Non-Differentiable Simulators: The method's ability to work with non-differentiable simulators is crucial, as many photorealistic renderers fall into this category.
  • Speed-Accuracy Trade-off: The paper shows that different approximations for the inner loop update (e.g., linear, quadratic) allow users to tune the trade-off between speed and accuracy.

Key Results

AutoSimulate demonstrates significant improvements over baseline methods:

  • Speed: Finds optimal data distributions up to 50x faster than previous methods.
  • Data Efficiency: Requires significantly less training data (e.g., 30x less in some cases) to achieve comparable or better performance.
  • Accuracy: Achieves better accuracy on real-world test datasets (e.g., +8.7% mAP improvement reported for one experiment).
  • CLEVR Segmentation: AutoSimulate required 2.5x and 5x less data than Bayesian Optimization and LTS (REINFORCE) respectively to reach similar test accuracy.
  • Arnold Object Detection: AutoSimulate (Linear) achieved an 8% improvement in mAP over baselines, while being 35-60x faster than some baselines.

Limitations and Future Work

  • Approximation Trade-offs: The paper acknowledges that different approximations for the inner loop update (linear, quadratic) offer varying speed-accuracy trade-offs. The "Linear" approximation achieved the best test accuracy in one experiment, suggesting that sometimes simpler approximations can be very effective.
  • Generalization to Deeper Networks: While the paper shows that simulators trained on shallow networks can generalize to deeper networks, the relative improvement is better with shallow networks. This suggests that network size can influence the effectiveness of the learned simulator parameters.
  • Future Work: The authors suggest exploring further approximations and potentially applying the method to a wider range of simulators and tasks. The ability to tune the speed-accuracy trade-off also opens avenues for more adaptive data generation strategies.

Summary updated

BibTeX
@misc{behl2020autosimulate,
  author = {Harkirat Singh Behl and Atilim Günes Baydin and Ran Gal and Philip H. S. Torr and Vibhav Vineet},
  title = {{AutoSimulate: (Quickly) Learning Synthetic Data Generation}},
  year = {2020},
  eprint = {2008.08424},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2008.08424},
}
Figure