Scenic: A Language for Scenario Specification and Scene Generation
arXiv:1809.09310 · doi:10.1145/3314221.3314633
Abstract
We propose a new probabilistic programming language for the design and analysis of perception systems, especially those based on machine learning. Specifically, we consider the problems of training a perception system to handle rare events, testing its performance under different conditions, and debugging failures. We show how a probabilistic programming language can help address these problems by specifying distributions encoding interesting types of inputs and sampling these to generate specialized training and test sets. More generally, such languages can be used for cyber-physical systems and robotics to write environment models, an essential prerequisite to any formal analysis. In this paper, we focus on systems like autonomous cars and robots, whose environment is a "scene", a configuration of physical objects and agents. We design a domain-specific language, Scenic, for describing "scenarios" that are distributions over scenes. As a probabilistic programming language, Scenic allows assigning distributions to features of the scene, as well as declaratively imposing hard and soft constraints over the scene. We develop specialized techniques for sampling from the resulting distribution, taking advantage of the structure provided by Scenic's domain-specific syntax. Finally, we apply Scenic in a case study on a convolutional neural network designed to detect cars in road images, improving its performance beyond that achieved by state-of-the-art synthetic data generation methods.
arXiv comment41 pages, 36 figures. Full version of a PLDI 2019 paper (extending UC Berkeley EECS Department Tech Report No. UCB/EECS-2018-8)
References in corpus (2)
Cited by in corpus (13)
- Choose Your Simulator Wisely: A Review on Open-source Simulators for Autonomous Driving
- LawBreaker: An Approach for Specifying Traffic Laws and Fuzzing Autonomous Vehicles
- A Driver-Vehicle Model for ADS Scenario-based Testing
- Concretization of Abstract Traffic Scene Specifications Using Metaheuristic Search
- Towards Runtime Monitoring of Complex System Requirements for Autonomous Driving Functions
- TARGET: Automated Scenario Generation from Traffic Rules for Testing Autonomous Vehicles via Validated LLM-Guided Knowledge Extraction
- Specification-Guided Critical Scenario Identification for Automated Driving
- ROBUST: 221 Bugs in the Robot Operating System
- Synthesizing Trajectory Queries from Examples
- Automatic Traffic Scenario Conversion from OpenSCENARIO to CommonRoad
- Formally Modeling Autonomous Vehicles in LNT for Simulation and Testing
- CoolerSpace: A Language for Physically Correct and Computationally Efficient Color Programming
- Querying Labeled Time Series Data with Scenario Programs