Back to projects
AI SystemsCompleted

SafeVLA: Deterministic Cross Validation for Vision Language Action Models

A hybrid edge cloud architecture bridging probabilistic vision language models with deterministic sensor physics for safe autonomous driving.

Overview

End to end Vision Language Action models introduce critical safety vulnerabilities when deployed directly to autonomous vehicle control loops. Unbounded probabilistic hallucinations can cause a model to ignore pedestrians or invent phantom hazards, while a lack of continuous control stability produces erratic steering and throttle oscillations. SafeVLA addresses these failure modes by decoupling spatial perception from high level semantic reasoning and introducing a deterministic safety supervisor layer. The edge perception layer runs YOLOv4 tiny via OpenCV DNN, optimized for low latency spatial detection on local hardware without requiring dedicated GPU acceleration. Incoming visual frames are mapped onto a normalized 0 to 1000 coordinate grid space. To convert 2D bounding boxes into physical hazard metrics, the edge pipeline computes object screen area percentage and applies dynamic class specific thresholds. A pedestrian or bicycle occupying 0.8 percent of the visual field triggers an immediate close proximity hazard flag, whereas larger vehicles require a 3.0 percent threshold. Horizontal position tracking explicitly identifies cross traffic at intersections when bounding box centers fall outside the central 38 to 62 percent lane corridor. The cloud reasoning layer leverages Llama 3.2 Vision hosted on NVIDIA NIM inference microservices to generate high level driving decisions and road scene context. To resolve network latency bottlenecks, the edge system dynamically scales frames down to a maximum dimension of 512 pixels and applies targeted JPEG compression. This reduces payload size by over 70 percent, reducing network transfer time while retaining essential semantic features for cloud GPU processing. At the core of the architecture is the 6 point Consistency Validation Supervisor. The supervisor compares the structured spatial detections from the edge against the semantic explanations returned by the cloud model. If the cloud model proposes acceleration while the edge layer detects a close proximity pedestrian hazard, the supervisor detects a mathematical contradiction, flags a low Consistency Index, and intercepts the control pipeline to force safety fallbacks. The user dashboard provides real time telemetric visual feedback, displaying edge bounding boxes, cloud VLM reasoning traces, network latency diagnostics, and live consistency validation status concurrently.

Tech Stack

PythonNVIDIA NIMLlama 3.2 VisionYOLOv4 tinyOpenCV DNNPyTorchStreamlitOpenCVREST API

Empirical Benchmarks

<50 milliseconds (Local CPU via OpenCV DNN)

Edge Perception Latency

~3 seconds

Cloud VLM Inference Latency

>70 percent (Dynamic 512px JPEG compression)

Network Payload Reduction

Person Bicycle 0.8 percent, Vehicle 3.0 percent

Hazard Detection Thresholds

Central 38 to 62 percent horizontal window

Intersection Lane Corridor

Real time 6 point Consistency Index computation

Safety Verification