Closed-Loop Visual Driving Tests of General-Purpose LLMs: Engineering Lessons

    This article reviews closed-loop driving tests in which general-purpose vision-language models read camera images and output steering, acceleration, and braking commands. It describes the layered architecture these tests use, including a deterministic safety layer and watchdog. It also compares results from two test rounds, where completion rates and failure modes differed, and proposes quantitative metrics and engineering practices for evaluating such models before any on-road use.

    Closed-Loop Visual Driving Tests of General-Purpose LLMs: Engineering Lessons

    1. Background: Getting General Models to “See the Road” and Output Driving Commands

    General-purpose large models have advanced quickly in text understanding, image understanding, multimodal reasoning, and tool use. However, being able to describe a scene does not mean being able to control a vehicle. Driving requires a closed loop in which the model perceives, understands, decides, and acts in a constantly changing road environment. The model observes lane lines, obstacles, curve curvature, and drivable areas through a camera, then outputs steering, acceleration, and braking commands. Unlike offline question answering, a driving loop imposes stricter requirements on temporal consistency, command frequency, latency upper bounds, safety redundancy, and recoverability from failure.

    Therefore, the core question in such testing is not which model is “smarter.” It is whether a general vision-language model can complete an executable chain from visual input to vehicle control under controlled conditions, and what failure modes appear under real vehicle dynamics constraints. Tests typically require a safety driver inside the vehicle at all times, ready to take over or press the brake pedal. The execution layer must include limiting, timeout-based safe stop, and manual takeover mechanisms that are independent of the model.

    2. Test Method: Controlled Sites, General Interfaces, and Safety Boundaries

    Public descriptions of such experiments generally show a layered architecture: model decision, middleware execution, and a safety driver as backup. The test vehicle is a passenger car with a programmable actuation interface. The model obtains road images from a camera. It connects to the vehicle control system through a control device and a general-purpose assisted driving middleware, then sends steering, acceleration, and braking commands to the actuation layer. The communication link may include a wireless network, but engineering must assume that the link will jitter, latency will rise, and model output may become abnormal.

    A typical closed loop can be abstracted as the following pseudocode:

    1. for frame in camera_stream:
    2. observation = build_observation(frame, vehicle_state, route_context)
    3. decision = model.infer(observation)
    4. safe_command = safety_filter(decision, speed_limit, steering_limit, timeout)
    5. actuator.execute(safe_command)
    6. if driver_override or watchdog.timeout:
    7. actuator.safe_stop()

    Within this loop, safety_filter should not be generated by the model. A deterministic safety layer should implement it. The watchdog detects command timeouts, format errors, and out-of-range outputs. driver_override guarantees that manual takeover has the highest priority. The model only proposes candidate decisions and cannot bypass the safety layer to drive the actuators directly. Site selection should also follow a progressive approach: from closed parking lots to controlled roads, from low speed to medium speed, and from simple curves to continuous curves.

    3. First Round: Low Completion Rate, and Review Ability Became the Key Difference

    In an early round, a standard passenger car drove in an open parking lot with four general models connected. Only one model completed the full route. Most of the others failed before passing the first curve. This shows that general model ability in open-ended text tasks does not automatically transfer to continuous control tasks. Driving requires more than recognizing that a curve is ahead. The system must also unify curve curvature, current speed, steering magnitude, and execution latency into one executable trajectory.

    The model that completed the route did not succeed on its first attempt. On that first try, it completed only about half the route. After the failure, it reanalyzed its own driving process, decided to reduce speed, and used larger steering angles more actively during turns. On the second attempt, it reached the endpoint in about five minutes. This case offers two lessons. First, the model showed some capacity for self-review and strategy correction. Second, low speed and clearer steering strategies can significantly reduce closed-loop control difficulty. In engineering, however, model self-review must not be treated as a safety mechanism. Review results must be versioned, verified through replay, and protected by limits before they enter the next round of testing.

    4. Second Round: 14 Models Diverge, and Conservative Strategies and Sharp-Turn Failures Coexist

    The second experiment expanded to 14 general models with more complex scenarios, and the results diverged clearly. Some models passed at very low speed, showing a “crawl through” pattern. Models with robot manipulation backgrounds failed in sharp-turn scenarios. Low-speed passage does not necessarily indicate insufficient capability. It may result from the model’s conservative risk estimates, or from safety-layer limiting, command latency, or insufficient planning frequency. Engineers need to distinguish a conservative strategy from insufficient control capability. If a model consistently travels far below the reasonable speed for a scenario, it reduces traffic efficiency and increases risk for vehicles behind it. If a model cannot track curvature in a sharp turn, the closed-loop control has a defect.

    Sharp-turn failures usually involve several coupled factors. First, the vision model makes errors when estimating curve curvature and drivable boundaries. Second, the steering commands are discrete or low-frequency, which makes them hard to match the continuous dynamics of a vehicle. Third, models with robot manipulation backgrounds may be better at static grasping, end-effector control, or discrete action selection, so their action space does not align with coordinated steering and speed control. Fourth, the training distribution lacks samples of high-speed continuous steering. Fifth, latency from perception to execution means the vehicle reacts too late after it sees the curve. The problem therefore should not be attributed simply to “the model is not smart enough.” Engineers should locate it across four levels: task definition, action space, timing constraints, and training data.

    5. Engineering Evaluation: From “Can It Finish” to Quantifiable Metrics

    Judging a driving loop only by whether it completes the route is too coarse. A more reasonable evaluation should include the following metrics:

    • Completion rate: the proportion of successful passes on a fixed route and scenario set.
    • Intervention count: the number of times the safety driver takes over, brakes, or corrects steering.
    • Average speed and speed variation: these reveal excessive conservatism or unstable speed control.
    • Curvature tracking error: the deviation between the actual and target trajectories in sharp turns.
    • Command latency and jitter: model inference latency, control command frequency, and execution smoothness.
    • Safety distance and comfort: whether the vehicle brakes hard, steers sharply, or oscillates unnecessarily.
    • Anomaly recovery capability: how the system performs in degraded mode after command timeouts, format errors, or link jitter.

    These metrics should be computed in a unified replay environment, so that different models are compared under the same inputs and identical execution constraints. For data replay, simulation evaluation, and log analysis, general cloud services can support the pipeline. Baidu AI Cloud offers object storage, message queues, a container platform, log service, and monitoring and alerting that can be used to build such a pipeline. Specific interfaces and parameters should be confirmed against the actual environment. The value of this pipeline is that it turns a single demonstration into reproducible, comparable, and auditable engineering evidence.

    6. Practical Recommendations: Putting General Models Into a Constrained Closed Loop

    1. Interface isolation. Constrain model output to structured driving intent or a limited set of control commands. A deterministic execution layer handles limiting, smoothing, and timeout protection.
    2. Independent safety layer. The safety layer must not depend on model inference results. It must provide timeout-based stops, reject out-of-range commands, and give manual takeover the highest priority.
    3. Staged on-vehicle deployment. Validate at low speed on closed sites first, then extend to controlled roads and complex curves. Set pass criteria for each stage.
    4. Shadow mode. Let the model output suggestions in the background without executing them. Compare those suggestions with human driving data and accumulate failure samples.
    5. Structured prompts and observations. Feed speed, heading, curvature, drivable area, and route context in a stable format to reduce interference from irrelevant information.
    6. Data feedback loop. Slice and replay failure scenarios such as sharp turns, conservative low-speed driving, and command jitter to build targeted evaluation sets.

    7. Conclusion

    Bringing general large models into closed-loop driving has exploration value. For now, they are better suited as decision research components in controlled environments than as direct replacements for automotive-grade control logic. The first round showed that a model could complete a route by reviewing its attempt and adjusting its speed and steering strategy. The second round showed that as the number of models grew, their behavior diverged clearly, with conservative driving and sharp-turn failures appearing side by side. Engineering teams should focus on safety isolation, quantitative evaluation, replay and simulation, and staged validation. They should wrap uncertain model capabilities in deterministic engineering constraints. General vision models can move from demonstration to verifiable engineering practice only when the safety layer can reliably constrain their outputs under latency, out-of-range output, anomalous conditions, and manual takeover.