Learning From Context-Agnostic Synthetic Data

Charles Jin, Martin C. Rinard

Introduction

Deep neural networks often rely on spurious correlations—background features like road textures or lighting—rather than the intrinsic properties of an object. This reliance creates a "reality gap" where models trained on clean synthetic data fail in messy real-world environments. This paper introduces a formal framework for context-agnostic learning, enabling models to ignore background noise and focus exclusively on the object of interest.

Methodology: Context-Agnostic Framework

The authors decompose the input space into an object space (the target features) and a context space (the surrounding environment). A classifier is defined as context-agnostic if its predictions remain invariant regardless of context swaps.

To achieve this, the researchers employ a generative training loop. Starting with a single synthetic pictogram, they apply random transformations and superimpose it onto challenging backgrounds. They use Projected Gradient Descent (PGD) to perturb both the object and the background, forcing the model to identify the object even under extreme adversarial noise.

The generative loop for context-agnostic learning: (1) Sample object, (2) Observe with context, (3) Local refinement via PGD, (4) Add to training set, (5) Reuse context.

Furthermore, the paper derives a mathematical risk bound that allows for estimating model error by measuring "contextual bias"—the degree to which background changes influence predictions—without requiring ground-truth labels.

Evaluation and Datasets

The method was evaluated by training on minimal synthetic data and testing on real-world benchmarks:

  • GTSRB (German Traffic Sign Recognition Benchmark): Trained on 43 canonical pictograms (one per class).
  • MNIST: Trained on 10 digital font examples.
  • Omniglot: Trained on a single font-based example per character.

Key Results

The context-agnostic approach demonstrates that models can bridge the reality gap with minimal data. On the GTSRB dataset, the model achieved 95.9% accuracy using only 43 training images, nearing the human baseline of 98.8%. Similarly, it reached 90.2% accuracy on MNIST using only 10 font-based examples.

Performance comparison across benchmarks. The 'full' context-agnostic approach significantly outperforms baselines.

The results indicate that training on "unrealistic" but challenging backgrounds is more effective than attempting to simulate realistic environments. By making the background "hard," the model is forced to ignore it entirely.

Conclusion and Future Work

While context-agnostic learning provides a robust path for one-shot synthetic training, limitations remain. The current model uses simple 2D superposition and does not account for complex 3D interactions like shadows or occlusions. Future work will focus on extending these principles to 3D objects and more complex environmental physics.

Summary updated

BibTeX
@inproceedings{jin2021learning,
  author = {Charles Jin and Martin C. Rinard},
  title = {{Learning From Context-Agnostic Synthetic Data}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2021},
}
Figure