English

Analyzing and Improving Neural Networks by Generating Semantic Counterexamples through Differentiable Rendering

Machine Learning 2020-07-21 v2 Computer Vision and Pattern Recognition Machine Learning

Abstract

Even as deep neural networks (DNNs) have achieved remarkable success on vision-related tasks, their performance is brittle to transformations in the input. Of particular interest are semantic transformations that model changes that have a basis in the physical world, such as rotations, translations, changes in lighting or camera pose. In this paper, we show how differentiable rendering can be utilized to generate images that are informative, yet realistic, and which can be used to analyze DNN performance and improve its robustness through data augmentation. Given a differentiable renderer and a DNN, we show how to use off-the-shelf attacks from adversarial machine learning to generate semantic counterexamples -- images where semantic features are changed as to produce misclassifications or misdetections. We validate our approach on DNNs for image classification and object detection. For classification, we show that semantic counterexamples, when used to augment the dataset, (i) improve generalization performance (ii) enhance robustness to semantic transformations, and (iii) transfer between models. Additionally, in comparison to sampling-based semantic augmentation, our technique generates more informative data in a sample efficient manner.

Keywords

Cite

@article{arxiv.1910.00727,
  title  = {Analyzing and Improving Neural Networks by Generating Semantic Counterexamples through Differentiable Rendering},
  author = {Lakshya Jain and Varun Chandrasekaran and Uyeong Jang and Wilson Wu and Andrew Lee and Andy Yan and Steven Chen and Somesh Jha and Sanjit A. Seshia},
  journal= {arXiv preprint arXiv:1910.00727},
  year   = {2020}
}
R2 v1 2026-06-23T11:32:18.010Z