verified artificial intelligence: a runtime verification ...sseshia/talks/... · verified...

48
Verified Artificial Intelligence: A Runtime Verification Perspective Sanjit A. Seshia Professor EECS Department, UC Berkeley Joint work with: Ankush Desai, Tommaso Dreossi, Daniel Fremont, Shromona Ghosh, Edward Kim, Hadi Ravanbakhsh, Marcell Vazquez-Chanlatte, Xiangyu Yue, Dorsa Sadigh, Wenchao Li, Alexandre Donze, Alberto Sangiovanni- Vincentelli, S. Shankar Sastry, Natarajan Shankar, Ashish Tiwari Runtime Verification @ FM 2019 October 11, 2019

Upload: others

Post on 08-Jul-2020

13 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Verified Artificial Intelligence: A Runtime Verification ...sseshia/talks/... · Verified Artificial Intelligence: A Runtime Verification Perspective Sanjit A. Seshia Professor. EECS

Verified Artificial Intelligence: A Runtime Verification Perspective

Sanjit A. SeshiaProfessor

EECS Department, UC Berkeley

Joint work with:Ankush Desai, Tommaso Dreossi, Daniel Fremont, Shromona Ghosh,

Edward Kim, Hadi Ravanbakhsh, Marcell Vazquez-Chanlatte, Xiangyu Yue, Dorsa Sadigh, Wenchao Li, Alexandre Donze, Alberto Sangiovanni-

Vincentelli, S. Shankar Sastry, Natarajan Shankar, Ashish Tiwari

Runtime Verification @ FM 2019October 11, 2019

Page 2: Verified Artificial Intelligence: A Runtime Verification ...sseshia/talks/... · Verified Artificial Intelligence: A Runtime Verification Perspective Sanjit A. Seshia Professor. EECS

Growing Use of Machine Learning/Artificial Intelligence in Safety-Critical Cyber-Physical Systems

S. A. Seshia 2

Growing Concerns about Safety:• Numerous papers showing that Deep Neural Networks can be easily fooled• Fatal accidents involving potential failure of object detection/classification

systems in self-driving cars

Page 3: Verified Artificial Intelligence: A Runtime Verification ...sseshia/talks/... · Verified Artificial Intelligence: A Runtime Verification Perspective Sanjit A. Seshia Professor. EECS

Can Formal Methods Help?

• Formal methods = Mathematical, Algorithmic techniques for modeling, design, analysis– Specification: WHAT the system must/must not do– Verification: WHY it meets the spec. (or not)– Synthesis: HOW it meets the spec. (correct-by-construction design)

• Industry need for higher assurance Increasing interest in Formal Methods• A success story: Digital circuit design / EDA• Can we address the Design & Verification challenges of AI/ML-based CPS?

3

Page 4: Verified Artificial Intelligence: A Runtime Verification ...sseshia/talks/... · Verified Artificial Intelligence: A Runtime Verification Perspective Sanjit A. Seshia Professor. EECS

Challenges for Verified AI

S. A. Seshia 4

System SEnvironment ESpecification ϕ

YES [+ proof]Does S || E satisfy ϕ?

NO [+ counterexample]

S. A. Seshia, D. Sadigh, S. S. Sastry. Towards Verified Artificial Intelligence. July 2016. https://arxiv.org/abs/1606.08514.

Design Correct-by-Construction?

Need to Search Very High-Dimensional Input and State Spaces

Page 5: Verified Artificial Intelligence: A Runtime Verification ...sseshia/talks/... · Verified Artificial Intelligence: A Runtime Verification Perspective Sanjit A. Seshia Professor. EECS

Opportunities for Runtime Verification Community

• System Complexity and Lack of Component Specifications Execution/Simulation often the only practical option

• Environment Complexity Need for Runtime Monitoring and Failure-Tolerant Runtime

Operation

S. A. Seshia 5

Page 6: Verified Artificial Intelligence: A Runtime Verification ...sseshia/talks/... · Verified Artificial Intelligence: A Runtime Verification Perspective Sanjit A. Seshia Professor. EECS

Research Questions

• What is the Specification?

• How to Scale Up Verification?

• How to Model Environment?

• How to Assure Safe Operation at Run Time?

S. A. Seshia 6

Page 7: Verified Artificial Intelligence: A Runtime Verification ...sseshia/talks/... · Verified Artificial Intelligence: A Runtime Verification Perspective Sanjit A. Seshia Professor. EECS

Outline

• Motivating Example

• Specification

• Verification: Compositionality and Abstraction

• Environment Modeling

• Runtime Assurance

• The VerifAI toolkit & ConclusionS. A. Seshia 7

Page 8: Verified Artificial Intelligence: A Runtime Verification ...sseshia/talks/... · Verified Artificial Intelligence: A Runtime Verification Perspective Sanjit A. Seshia Professor. EECS

Example: Automatic Emergency Braking System (AEBS) using Deep Learning for Perception

8S. A. Seshia

Controller Vehicle (Plant)

Environment

Sensor Input

• Goal: Brake when an obstacle is near, to maintain a minimum safety distance• Models: Controller, Plant, Env modeled in a software-in-the-loop simulator

(Matlab/Simulink, Udacity, Webots, CARLA, …)• Perception: Object detection/classification system based on deep neural networks

• Inception-v3, AlexNet, … trained on ImageNet• more recent: squeezeDet, Yolo, … trained on KITTI

Deep Learning-Based Object Detection

[Dreossi, Donze, Seshia, “Compositional Falsification of Cyber-Physical Systems with Machine Learning Components”, NASA Formal Methods (NFM), May 2017.]

Page 9: Verified Artificial Intelligence: A Runtime Verification ...sseshia/talks/... · Verified Artificial Intelligence: A Runtime Verification Perspective Sanjit A. Seshia Professor. EECS

Challenge: Formal Specification

S. A. Seshia 9

Principle: Start at the System Level (i.e. Specify Semantic Behavior of the

Overall System)

Page 10: Verified Artificial Intelligence: A Runtime Verification ...sseshia/talks/... · Verified Artificial Intelligence: A Runtime Verification Perspective Sanjit A. Seshia Professor. EECS

Our Approach: Start with a System-Level Specification

S. A. Seshia 10

“Verify the Deep Neural Network Object Detector”

“Verify the System containing the Deep Neural Network”

Formally Specify the End-to-End Behavior of the System

Controller Plant

Environment

Learning-Based Perception

Temporal Logic: G (dist(ego vehicle, env object) > ∆)

Property does not mention

inputs/outputs of the neural

network

Page 11: Verified Artificial Intelligence: A Runtime Verification ...sseshia/talks/... · Verified Artificial Intelligence: A Runtime Verification Perspective Sanjit A. Seshia Professor. EECS

Do We Need to Formally Specify ML Component Requirements?

Sometimes…

1. When Component Specifications are Meaningful– ML-based Controllers– Semantic Robustness*, Input-Output Relations, Monotonicity, Fairness, etc.

2. For Compositional/Modular Analysis– Derive component specifications from system-level specifications

S. A. Seshia 11

[S. A. Seshia, et al., “Formal Specification for Deep Neural Networks”, ATVA 2018.]

Page 12: Verified Artificial Intelligence: A Runtime Verification ...sseshia/talks/... · Verified Artificial Intelligence: A Runtime Verification Perspective Sanjit A. Seshia Professor. EECS

Challenge: Scalability of Verification

Principle: Compositional Simulation-Based Verification (Falsification)

S. A. Seshia 12

T. Dreossi, A. Donze, and S. A. Seshia. Compositional Falsification of Cyber-Physical Systems with Machine Learning Components, In NASA Formal Methods Symposium, May 2017. (Extended version: Journal of Automated Reasoning, 2019.)

Page 13: Verified Artificial Intelligence: A Runtime Verification ...sseshia/talks/... · Verified Artificial Intelligence: A Runtime Verification Perspective Sanjit A. Seshia Professor. EECS

Automotive system with ML-based perception (CPSML)

S. A. Seshia 13

Controller Plant

Environment

Learning-Based Perception

x ysp

usp

se

Traditional closed-loop model (CPS)

Controller Plant

Environment

sp

usp

se

Challenge: se << x

Page 14: Verified Artificial Intelligence: A Runtime Verification ...sseshia/talks/... · Verified Artificial Intelligence: A Runtime Verification Perspective Sanjit A. Seshia Professor. EECS

Our Approach: Three Key Ideas

1. Reduce CPSML falsification problem to combination of CPS falsification and ML analysis by abstraction

2. Simulation-based temporal logic falsification for CPS model– Scalable technology already used on production automotive systems

(powertrain)

3. Semantic feature space analysis of ML component– Derive constraints on input feature space of neural network (pixels) from

semantic constraints on environment model

S. A. Seshia 14[Dreossi et al., NFM’17, JAR’19; Dreossi et al., CAV’18]

Page 15: Verified Artificial Intelligence: A Runtime Verification ...sseshia/talks/... · Verified Artificial Intelligence: A Runtime Verification Perspective Sanjit A. Seshia Professor. EECS

Simulation-based Falsification: Logical Formulas to Objective Functions

• Use Temporal Logics with Quantitative Semantics (STL, MTL, etc.)

• Example: 𝑮𝑮[0,𝜏𝜏](dist(vehicle, obstacle) > 𝛿𝛿)

inf[0,𝜏𝜏] [ dist(vehicle, obstacle) - 𝛿𝛿 ]

• Verification Optimization

14

Page 16: Verified Artificial Intelligence: A Runtime Verification ...sseshia/talks/... · Verified Artificial Intelligence: A Runtime Verification Perspective Sanjit A. Seshia Professor. EECS

Need Compositional Falsification of CPSML

S. A. Seshia 16

• However: no formal spec. for neural network!• Compositional Verification without Compositional Specification?!!

• Challenge: Very High Dimensionality of Input Space!• Standard solution: Use Compositional (Modular) Verification

Controller Plant

Environment

Learning-Based Perception

x ysp

usp

se

(see [Seshia, UCB/EECS TR 2017])

Page 17: Verified Artificial Intelligence: A Runtime Verification ...sseshia/talks/... · Verified Artificial Intelligence: A Runtime Verification Perspective Sanjit A. Seshia Professor. EECS

Compositional Approach: Combine Temporal Logic CPS Falsifier with ML Analyzer

17S. A. Seshia

CPSML model M

Property Φ

[Dreossi, Donze, Seshia, NFM 2017]

Abstract ML component

away from M

Overapproximate MUnderapproximate M

Invoke CPS Falsifier(multiple times)

Region of Uncertainty ROU(se,sp,u)

Component(ML) Analysis

Component-level errors(misclassifications)

Refine

Project to ML Feature Space

FS(x)

where ML decision matters

Counterexample(s)Full CPSML Simulation

Page 18: Verified Artificial Intelligence: A Runtime Verification ...sseshia/talks/... · Verified Artificial Intelligence: A Runtime Verification Perspective Sanjit A. Seshia Professor. EECS

Identifying Component-Level Input Constraints (ROU) for Automatic Emergency Braking System

18S. A. Seshia

ML always correct ML always wrong Potentially unsafe region depending on ML

component (yellow)

Green environments where system-level safety property is satisfied

Underapproximate M Overapproximate M

[Dreossi et al., NFM’17, JAR’19; Dreossi et al., CAV’18]

Page 19: Verified Artificial Intelligence: A Runtime Verification ...sseshia/talks/... · Verified Artificial Intelligence: A Runtime Verification Perspective Sanjit A. Seshia Professor. EECS

Result on AEBS Example

19

Inception-v3Neural

Network(pre-trained on ImageNet using

TensorFlow)

Misclassifications

This misclassification not of concern

[Dreossi, Donze, Seshia, NFM 2017; J. Automated Reasoning 2019]

Sample image

S. A. Seshia

Page 20: Verified Artificial Intelligence: A Runtime Verification ...sseshia/talks/... · Verified Artificial Intelligence: A Runtime Verification Perspective Sanjit A. Seshia Professor. EECS

Result on AEBS Example

20

Inception-v3Neural

Network(pre-trained on ImageNet using

TensorFlow)

Misclassifications

Corner caseImage

But this one is a real hazard!

[Dreossi, Donze, Seshia, NFM 2017; J. Automated Reasoning 2019]S. A. Seshia

Page 21: Verified Artificial Intelligence: A Runtime Verification ...sseshia/talks/... · Verified Artificial Intelligence: A Runtime Verification Perspective Sanjit A. Seshia Professor. EECS

Extending to Image Streams

S. A. Seshia 21

Superimposition of tests on backgroundBlind spots

Results on squeezeDet NN and KITTI dataset for autonomous driving

[Dreossi, Ghosh, et al., ICML 2017 workshop]

Page 22: Verified Artificial Intelligence: A Runtime Verification ...sseshia/talks/... · Verified Artificial Intelligence: A Runtime Verification Perspective Sanjit A. Seshia Professor. EECS

Challenge: Environment Modeling

Principles: Data-Driven, Probabilistic, Introspective, Modeling

S. A. Seshia 22

S. A. Seshia, D. Sadigh, S. S. Sastry. Towards Verified Artificial Intelligence. July 2016. https://arxiv.org/abs/1606.08514.

Page 23: Verified Artificial Intelligence: A Runtime Verification ...sseshia/talks/... · Verified Artificial Intelligence: A Runtime Verification Perspective Sanjit A. Seshia Professor. EECS

Environment Model Meaningful Sensor Data

S. A. Seshia 23

• Need sensor data that makes physical/semantic sense and are interesting and useful for training, testing, design, and verification

• How to model environment and use it for data generation?

Images created with GTA-V

Our approach: Scene Improvisation[D. Fremont et al., “Scenic: A Language for Scenario Specification and Scene Generation”, EECS TR March 2018, PLDI 2019.]

Page 24: Verified Artificial Intelligence: A Runtime Verification ...sseshia/talks/... · Verified Artificial Intelligence: A Runtime Verification Perspective Sanjit A. Seshia Professor. EECS

SCENIC: Scenario Description Language

S. A. Seshia 24

• Scenic is a probabilistic programming language defining distributions over scenes• Use cases: data generation, test generation, verification, debugging, design exploration, etc.

• Example scenario: a badly-parked car

[D. Fremont et al., “Scenic: A Language for Scenario Specification and Scene Generation”, EECS TR March 2018, in PLDI 2019.]

Images created with GTA-V

Page 25: Verified Artificial Intelligence: A Runtime Verification ...sseshia/talks/... · Verified Artificial Intelligence: A Runtime Verification Perspective Sanjit A. Seshia Professor. EECS

SCENIC: Scenario Description Language

S. A. Seshia 25

Scenic makes it possible to specify broad scenarios with complex structure, then generate many concrete instances from them automatically:

Platoons Bumper-to-Bumper Traffic

Page 26: Verified Artificial Intelligence: A Runtime Verification ...sseshia/talks/... · Verified Artificial Intelligence: A Runtime Verification Perspective Sanjit A. Seshia Professor. EECS

Use Case: Retraining with Hard Cases

S. A. Seshia 26

e.g. for car detection, one car partially occluding another:

Improves accuracy on hard cases without compromising accuracy on original training set

Page 27: Verified Artificial Intelligence: A Runtime Verification ...sseshia/talks/... · Verified Artificial Intelligence: A Runtime Verification Perspective Sanjit A. Seshia Professor. EECS

Use Case: Debugging a Known Failure

S. A. Seshia 27

Page 28: Verified Artificial Intelligence: A Runtime Verification ...sseshia/talks/... · Verified Artificial Intelligence: A Runtime Verification Perspective Sanjit A. Seshia Professor. EECS

Use Case: Debugging a Known Failure

S. A. Seshia 28

Scenic makes it easy to vary a scenario along different dimensions:

Add noise Change car model Change global position

Page 29: Verified Artificial Intelligence: A Runtime Verification ...sseshia/talks/... · Verified Artificial Intelligence: A Runtime Verification Perspective Sanjit A. Seshia Professor. EECS

VERIFAI: A Toolkit for the Design and Analysis of AI-Based Systems https://github.com/BerkeleyLearnVerify/VerifAI

Page 30: Verified Artificial Intelligence: A Runtime Verification ...sseshia/talks/... · Verified Artificial Intelligence: A Runtime Verification Perspective Sanjit A. Seshia Professor. EECS

Case Study for Temporal Logic Falsification with VerifAI: Navigation around an accident scenario

Ego Car (AV) Broken CarCones

Lane Keeping

Lane Change

d

d < 15

lane changecomplete

30

Page 31: Verified Artificial Intelligence: A Runtime Verification ...sseshia/talks/... · Verified Artificial Intelligence: A Runtime Verification Perspective Sanjit A. Seshia Professor. EECS

Modeling Case Study in the SCENIC Language

Fremont et al., Scenic: A Language for Scenario Specification and Scene Generation, PLDI 2019.

Page 32: Verified Artificial Intelligence: A Runtime Verification ...sseshia/talks/... · Verified Artificial Intelligence: A Runtime Verification Perspective Sanjit A. Seshia Professor. EECS

Using Scenic to Generate Initial Scenes

32

Page 33: Verified Artificial Intelligence: A Runtime Verification ...sseshia/talks/... · Verified Artificial Intelligence: A Runtime Verification Perspective Sanjit A. Seshia Professor. EECS

Using Scenic to Generate Initial Scenes

33

Page 34: Verified Artificial Intelligence: A Runtime Verification ...sseshia/talks/... · Verified Artificial Intelligence: A Runtime Verification Perspective Sanjit A. Seshia Professor. EECS

Using Scenic to Generate Initial Scenes

34

Page 35: Verified Artificial Intelligence: A Runtime Verification ...sseshia/talks/... · Verified Artificial Intelligence: A Runtime Verification Perspective Sanjit A. Seshia Professor. EECS

Falsification

Page 36: Verified Artificial Intelligence: A Runtime Verification ...sseshia/talks/... · Verified Artificial Intelligence: A Runtime Verification Perspective Sanjit A. Seshia Professor. EECS

Analyzing the failure

d = 30 Incorrectly detected 14.5

Fix the controller:Update model assumptions

and re-design controller

v < 15Violates controller

assumptions

Retrain the perception module:Collect the counter-example images and

retrain the network [IJCAI’18]

36

Page 37: Verified Artificial Intelligence: A Runtime Verification ...sseshia/talks/... · Verified Artificial Intelligence: A Runtime Verification Perspective Sanjit A. Seshia Professor. EECS

Different Case Study: Automated Taxiing• NN-based research prototype from Boeing• Specification: track centerline within 1.5 m

Page 38: Verified Artificial Intelligence: A Runtime Verification ...sseshia/talks/... · Verified Artificial Intelligence: A Runtime Verification Perspective Sanjit A. Seshia Professor. EECS

Falsifying Run Found with VerifAI/Scenic

Page 39: Verified Artificial Intelligence: A Runtime Verification ...sseshia/talks/... · Verified Artificial Intelligence: A Runtime Verification Perspective Sanjit A. Seshia Professor. EECS

Challenge: Correct-by-Construction Design

Principle: Use Programming Framework for Runtime Assurance

S. A. Seshia 39

A. Desai, S. Ghosh, S. A. Seshia, N. Shankar, A. Tiwari. SOTER: A Runtime Assurance Framework for Programming Safe Robotics Systems, In Dependable Systems and Networks (DSN), June 2019.

Page 40: Verified Artificial Intelligence: A Runtime Verification ...sseshia/talks/... · Verified Artificial Intelligence: A Runtime Verification Perspective Sanjit A. Seshia Professor. EECS

Robotics Software Stack: Untrusted Components, Unknown Environment

S. A. Seshia 40

(1) Obstacle Avoidance (𝜙𝜙𝑜𝑜𝑜𝑜𝑜𝑜 ): Stay a minimum distance from obstacles.

(2) Battery Safety (𝜙𝜙𝑜𝑜𝑏𝑏𝑏𝑏 ): Land safely when the battery is low.

[Desai et al., “Drona: A Framework for Safe Distributed Mobile Robotics”, ICCPS 2017.

How to provide safety

guarantees?

Page 41: Verified Artificial Intelligence: A Runtime Verification ...sseshia/talks/... · Verified Artificial Intelligence: A Runtime Verification Perspective Sanjit A. Seshia Professor. EECS

Simplex Architecture for Run-Time Assurance of Periodic Real-Time Systems

41

[Lui Sha, RTSS’98]

Already used in fault-tolerant avionics systems

Our key advances:1. Automatically generating

switching logic2. Switches back from SC to

AC (not just ACSC)3. Deployed on robotics

platforms

Page 42: Verified Artificial Intelligence: A Runtime Verification ...sseshia/talks/... · Verified Artificial Intelligence: A Runtime Verification Perspective Sanjit A. Seshia Professor. EECS

Runtime Assurance (RTA) Module

An RTA Module is a tuple 𝑀𝑀𝑏𝑏𝑎𝑎 ,𝑀𝑀𝑜𝑜𝑎𝑎 ,𝑀𝑀𝑑𝑑𝑑𝑑,Δ,𝜙𝜙𝑜𝑜𝑏𝑏𝑠𝑠𝑠𝑠 ,𝜙𝜙𝑜𝑜𝑏𝑏𝑠𝑠𝑠𝑠𝑠𝑠• 𝑀𝑀𝑏𝑏𝑎𝑎 is the Advanced Controller • 𝑀𝑀𝑜𝑜𝑎𝑎 is the Safe (verified) Controller• 𝑀𝑀𝑑𝑑𝑑𝑑 is the Decision Module (determines switching between𝑀𝑀𝑏𝑏𝑎𝑎 and 𝑀𝑀𝑜𝑜𝑎𝑎)

• Δ is the sampling rate of the DM • 𝜙𝜙𝑜𝑜𝑏𝑏𝑠𝑠𝑠𝑠 is the desired safety specification

• 𝜙𝜙𝑜𝑜𝑏𝑏𝑠𝑠𝑠𝑠𝑠𝑠 is a stronger safety specification (𝜙𝜙𝑜𝑜𝑏𝑏𝑠𝑠𝑠𝑠𝑠𝑠 ⊆ 𝜙𝜙𝑜𝑜𝑏𝑏𝑠𝑠𝑠𝑠)• Starting from 𝜙𝜙𝑜𝑜𝑏𝑏𝑠𝑠𝑠𝑠𝑠𝑠 we stay in 𝜙𝜙𝑜𝑜𝑏𝑏𝑠𝑠𝑠𝑠 for at least 2Δ time even with

arbitrary controllerS. A. Seshia 42

Key question: how to determine switching logic?

Page 43: Verified Artificial Intelligence: A Runtime Verification ...sseshia/talks/... · Verified Artificial Intelligence: A Runtime Verification Perspective Sanjit A. Seshia Professor. EECS

Our Approach: Switching Logic of DM based on Controlled Reachable Sets for Reach-Avoid Objectives

43

[Desai et al., “SOTER: A Runtime Assurance Framework for Programming Safe Robotics Systems”, DSN 2019.]

Theorem: The following is an inductive invariant: Mode = SC ∧ s ∈ ϕsafe

∨Mode = AC ∧ Reach(s,*,∆) ∈ ϕsafe

Period ∆

S. A. Seshia

Uses reach set computation toolbox from Claire Tomlin’s group.

Page 44: Verified Artificial Intelligence: A Runtime Verification ...sseshia/talks/... · Verified Artificial Intelligence: A Runtime Verification Perspective Sanjit A. Seshia Professor. EECS

Results: Drone Navigating in an Unknown Workspace (reach-avoid problems)

S. A. Seshia 44

Page 45: Verified Artificial Intelligence: A Runtime Verification ...sseshia/talks/... · Verified Artificial Intelligence: A Runtime Verification Perspective Sanjit A. Seshia Professor. EECS

How to Generate Switching Conditions when Variables/Dynamics of Environment are Unknown?

S. A. Seshia 45

S. A. Seshia. Introspective Environment Modeling, In Runtime Verification (RV), October 2019.

Page 46: Verified Artificial Intelligence: A Runtime Verification ...sseshia/talks/... · Verified Artificial Intelligence: A Runtime Verification Perspective Sanjit A. Seshia Professor. EECS

S. A. Seshia 46

Impossible to model all possible scenarios

Unknown variables, dynamics

Approach: Introspect on System to Model the Environment

Identify: (i) Interface between System & Environment – Sensor Model, (ii) (Weakest) Assumptions needed to Guarantee Safety/Correctness

Algorithmic techniques to generate weakest interface assumptions at design time and monitor them at run time for potential violation/mitigation

[Seshia RV’19; Li, Sadigh, Sastry, Seshia; TACAS’14]

Introspective Environment Modeling

Page 47: Verified Artificial Intelligence: A Runtime Verification ...sseshia/talks/... · Verified Artificial Intelligence: A Runtime Verification Perspective Sanjit A. Seshia Professor. EECS

Links and Ongoing Work

• Open-Source Releases: the Verified AI toolkit [CAV 2019]

– VerifAI: https://github.com/BerkeleyLearnVerify/VerifAI– Scenic: https://github.com/BerkeleyLearnVerify/Scenic– Operate with any simulator

• Other results/ongoing projects:– Bridging Simulation and Real World

• Domain adaptation to produce “real” data from simulated data • Quantifying distance between simulated and real behaviors [HSCC 2019]

– More Complex Sensors: Video + LiDAR + RADAR + …– Counterexample-Guided Retraining/Data Set Design [IJCAI 2018]

S. A. Seshia 47

Page 48: Verified Artificial Intelligence: A Runtime Verification ...sseshia/talks/... · Verified Artificial Intelligence: A Runtime Verification Perspective Sanjit A. Seshia Professor. EECS

Conclusion: Towards Verified AI/ML based CPS

S. A. Seshia 48

S. A. Seshia, D. Sadigh, S. S. Sastry. Towards Verified Artificial Intelligence. July 2016. https://arxiv.org/abs/1606.08514.

Challenges1. Environment (incl.

Human) Modeling2. Specification

3. Learning Systems Complexity

4. Efficient Training, Testing, Verification

5. Design for Correctness

Core Principles

Data-Driven, Introspective, Probabilistic ModelingStart with System-Level Specification, then Component Spec (robustness, …)Abstraction, Semantic Representation, and ExplanationsCompositional Analysis and Semantics-directed Search/Training Oracle-Guided Inductive Synthesis; Run-Time Assurance

Exciting Times Ahead!!! Thank you!