Why OTA Updates for ML Models in Cars Fail When Treated as Firmware

Connected vehicle fleet illustrating over-the-air updates for automotive machine learning models.

 

Quick Overview

Problem: A model update clears offline validation, ships through the firmware OTA pipeline, and then behaves differently across the fleet.

Common failure points: Compiled artifacts bound to one runtime and one accelerator generation, update payloads that stop compressing after a retrain, campaigns that confirm installs instead of confirming loads, approval scope assessed after deployment.

Where it appears: ADAS and perception stacks, driver and in-cabin monitoring, central compute platforms running mixed workloads, telematics and fleet products with on-device inference.

Engineering focus: Per-target build matrices, load-time artifact verification, dataset and model co-versioning, UN R156 impact assessment, staged rollout with per-condition acceptance thresholds.

 

The OTA pipeline had been in production for two years and had never lost a campaign.

So when the perception team finished a retrained model and asked to ship it, the answer was that the plumbing already existed. New weights, same inference service, same signed-package delivery. A week of integration, maybe two.

The campaign went out and the field numbers came back wrong in three unrelated ways. Detection accuracy improved on part of the fleet and did not move on the rest, split along a line that matched no vehicle variant anyone recognised. The payload was several times larger than any firmware release the programme had sent, so delivery stalled on vehicles that rarely saw Wi-Fi. And when someone asked which model version was executing on a given VIN, the fleet database could say which package had been written to it and nothing more.

None of that was a defect. The pipeline did exactly what firmware pipelines do: deliver a signed package, verify it on disk, confirm the install. What it had never been asked to do was confirm that the thing it delivered could run on the hardware it landed on, or report back what was running once it did.

What Actually Decides Whether a Model Update Lands

A model update looks like a data update, and that is the assumption most OTA programmes start from: the inference engine is already validated, so new weights are lower risk than a firmware change. It holds until the model stops being weights. What reaches an automotive ECU is almost never the trained graph. It is a compiled artifact produced by a vendor toolchain, and four things outside the application code decide whether it works.

  • Which toolchain and runtime version the artifact was compiled against, and whether that combination exists on every vehicle in scope.
  • Whether the update compresses against the previous version, or arrives at close to full size because the retrain moved every weight.
  • Whether the numbers that cleared validation were measured on the artifact that actually ships, on the hardware it ships to.
  • Whether the change touches type-approval-relevant behaviour, and whether anyone assessed that before the campaign rather than after.

None of those are visible in the model source, and all four differ between a training machine and a vehicle. The deployment environment also depends on the vehicle's compute topology, making centralized and zonal ECU architecture relevant to model update planning. The four sections below take them in turn.

Why a Compiled Model Artifact Does Not Travel

Short answer: because the artifact on the ECU is a vendor-compiled binary tied to a runtime version and an accelerator generation, and on automotive platforms the portability options are narrower than the general-purpose documentation suggests.

A serialized TensorRT plan, a TI Deep Learning artifact, a Qualcomm AI Engine Direct context binary, an NXP eIQ-compiled graph — each is closer to a linked binary than to a configuration file. NVIDIA separates the two escape hatches explicitly, and the distinction matters.

Version compatibility lets an engine built with one TensorRT version run on a later runtime, within narrow limits: a TensorRT 8 version-compatible engine runs on a TensorRT 10 runtime, and a TensorRT 10 engine on a TensorRT 11 runtime. No other combination across major versions is supported.

Hardware compatibility is a different mechanism, lets an engine span GPU architectures, and costs throughput because the builder excludes architecture-specific tactics. The part that matters for vehicles: NVIDIA documents hardware compatibility as not supported on DRIVE OS or JetPack. On the automotive platform the portable-engine option is not available at all.

Qualcomm points the same way from the other side. The serialized context binary is the recommended workflow for the SA-series automotive SoCs, and the HTP backend version differs by chipset across that family.

So two SoC variants and three runtime versions give up to six combinations to verify. How many need a separate build depends on the fleet's actual configurations and on what compatibility the vendor confirms for them. That is a question to answer by measurement, not by assumption, and the answer belongs in CI rather than in somebody's memory. These compatibility constraints should be considered early in ECU and embedded platform design.

Why Model Update Payloads Stop Shrinking

Short answer: firmware deltas work because a patch changes a small contiguous part of the image; a retrain can move most weights in the layers it touches, and then there is little left for the delta to exploit.

The research on update compression for networks deployed at the edge exists precisely because the naive binary delta is often poor. The techniques that fix it — sparse weight-update objectives, sign-only one-bit deltas, low-rank adapters — all work by constraining training to produce a compressible difference. If nobody constrained the training, there is nothing to compress.

The measurement to run before sizing a campaign is cheap, and most teams have never run it. Take the last two or three model versions you actually shipped. Compress the delta between them, compress the full package, and compare. If the ratio is close to one, a bandwidth plan carried over from firmware history is wrong by an order of magnitude and not by a margin.

The consequence is operational rather than technical. A payload that has to go over Wi-Fi reaches the fleet over weeks, which means two or three model versions are live at once, which means every field metric has to be sliced by model version before it means anything. Maintaining that association between model versions and field metrics is part of data governance in software-defined vehicles.

What UN R156 Requires Before a Model Rollout

Short answer: assess whether the update affects type approval before rollout, and update the relevant RXSWIN if the change requires an extension or a new type approval. Running that assessment is itself the regulated obligation.

UN R156 covers vehicles of categories M, N, O, R, S and T that permit software updates. In the EU it applied to new whole-vehicle type approvals from 6 July 2022 and to existing approvals from 7 July 2024, with later dates for small-series, special-purpose and completed vehicles.

Paragraph 7.2.1.2.1 is the operative text where a vehicle type uses RXSWIN: each identifier is to be uniquely identifiable, and when type-approval-relevant software is modified the RXSWIN is updated if the change leads to a type approval extension or a new type approval. Where the update does not affect the approval, the identifier stays as it is.

For an ML team the practical reading is narrower than it sounds. A perception or driver-monitoring model that shifts detection behaviour is a plausible candidate for that assessment where a firmware bugfix is not. This distinction is particularly relevant when considering adaptive vehicle behaviour and type-approval-relevant software. The common failure is not getting the answer wrong. It is running model releases on a separate track from software releases, so the assessment never happens and the question surfaces at a homologation review months later.

ISO 24089:2023 is the engineering standard that turns those obligations into work products, and ASPICE supplies the traceability from a vehicle-level requirement down to the artifact that shipped. This traceability is a key part of ASPICE software development for automotive systems.

Why an Offline Score Does Not Transfer to the Fleet

Short answer: the float checkpoint that passed validation is not the quantized artifact that ships, and a single headline metric will clear while a condition the fleet actually encounters regresses underneath it.

Most automotive deployment runs through INT8 post-training quantization against a calibration set. Retrain, recalibrate, and the per-channel scales shift, so the deployed numerics differ from the checkpoint that was measured — and differ in a way that depends on the calibration data, not on the training data. The procedural fix is to run acceptance metrics on the final compiled artifact, on the target ECU, and to treat any figure taken from the float checkpoint as a development number rather than as evidence. The same principle applies to performance validation, with AI inference latency measured end to end on the target hardware.

The second half is the acceptance criterion itself. Firmware regression testing returns a deterministic verdict that the test suite defines for you. Model validation returns a statistical claim, and somebody has to decide in advance which number counts as a pass. In practice that means fixing recall and false-positive thresholds per operating condition before the retrain: night and low light, rain, each class that matters, each sensor variant in the fleet.

ISO/PAS 8800:2024 pushes in the same direction by making the dataset a safety artifact in its own right, extending ISO 26262 and ISO 21448 down to the level of the ML component. That also means a model running across a large fleet whose training and validation sets cannot be reproduced is a model nobody can re-verify when the question comes up eighteen months later.

How to Diagnose It

One table answers most of this, and most teams have never built it. One row per transition in the release path, not per team.

Release step

Where it happens

What can diverge

Evidence to capture

Dataset → training set

Training infrastructure

Class and condition mix drifts between releases

Dataset version hash, per-condition sample counts

Training → checkpoint

Training infrastructure

Hyperparameters, base weights, early stopping

Checkpoint hash, training config, metrics per condition

Checkpoint → quantized model

Build / CI

Calibration set, per-channel scales

Calibration set hash, post-quantization metrics

Quantized → compiled artifact

Build / CI, once per target

Compiler version, runtime version, accelerator generation

Artifact hash, target triple, toolchain versions

Artifact → signed package

Release

Signing key, package manifest, anti-rollback counter

Signature, manifest, version floor

Package → vehicle storage

OTA campaign

Partial download, slot selection, free space

Install confirmation per VIN

Storage → runtime load

Vehicle, every activation

Deserialization failure, silent fallback to previous model

Executing model hash, runtime version, reason code, timestamp

Load → field behaviour

Vehicle, in service

Operator falls back to CPU, numerics differ from validation

Per-condition metrics against agreed thresholds

Any step → approval scope

Homologation

Change touches type-approval-relevant behaviour

R156 impact assessment record, RXSWIN mapping

Fill the last column from production vehicles under real use, not from a bench rig. Three things fall out of it immediately: which steps have no recorded evidence at all, which ones record an install when they should record a load, and whether the approval row has ever been filled in for a model release.

  • Report the executing model hash and runtime version on every activation and every reversion, not only at boot — models are frequently swapped without a restart.
  • Attach a timestamp and a reason code to each switch, so a silent fallback is distinguishable from a planned rollback.
  • Confirm the artifact on the device was compiled for the runtime on that device, and record the pair.
  • Check per-condition metrics, not the headline metric, against thresholds agreed before the retrain.

If a model campaign is being planned and this table does not exist, the campaign is being scheduled without a way to tell afterwards whether it worked.
 

Failure Patterns

Scenario 1. A perception model is validated offline and rolled out across a mixed-age fleet. Field precision matches the offline figure on part of it and sits noticeably lower on the rest, and the split tracks the NPU driver version rather than the vehicle model. On the older runtime one operator in the new graph has no accelerator implementation and falls back to a CPU path with different rounding, so the network that executes is numerically not the network that was measured. The package is byte-identical on both halves of the fleet. The execution graph is not. Identifying such differences across hardware and runtime configurations is an important part of ADAS development services.

Scenario 2. A programme sizes its OTA data budget from years of firmware campaigns. The first model campaign is an artifact whose delta against the previous version barely compresses, because the retrain touched the whole backbone. Delivery is restricted to Wi-Fi, takes weeks to reach most of the fleet, and by the time it lands the next model is ready — so several model versions are live at once and every field metric has to be sliced by version before it means anything.

Scenario 3. A driver-monitoring model update tightens a distraction threshold to raise the detection rate. It ships as a routine model refresh through the ML release process, not the software release process. A homologation review later asks which RXSWIN the current fleet software maps to, and the answer has to be reconstructed from CI artifacts because the model change never entered the software-update impact assessment. There is no field incident. The cost is a retroactive assessment, a hold on the next campaign, and a process finding that outlives both.

A fourth pattern combines the first and third and is the one worth rehearsing. A model installs on the whole fleet and loads on part of it, because two runtime versions are in service and the artifact was built against one. The inference service catches the deserialization failure, keeps the previous model resident so the function stays available, and logs it below the level anyone collects. Whether continuing on the previous model is acceptable is a safety question with a real answer — it is acceptable only where that configuration is one the safety requirements cover — and it is invisible from a fleet-management standpoint either way.

Automotive OTA and ML Deployment Engineering

Model-update failures in vehicles are rarely model failures. They are build-matrix gaps, artifact-portability constraints, delta assumptions carried over from firmware, and approval scope assessed too late. None of it shows up in offline validation and all of it shows up in fleet data. Promwad develops embedded AI and ECU software for automotive and transportation products, including on-device inference pipelines, OTA and lifecycle tooling, model and dataset versioning, and ASPICE-compliant development.

Explore SDV and Automotive Software Engineering →

Engineering Experience Across Automotive Compute and Edge AI Platforms

 

From Our Projects

Driver-Monitoring Model Training for a Road-Safety Supplier

A road-safety solutions provider needed in-cabin detection of two distraction behaviours: using a mobile phone and smoking at the wheel. Promwad assembled and labelled the dataset and compared three YOLO generations on it rather than picking one up front.  Dataset preparation and model evaluation are essential stages of driver monitoring system development.

The final dataset held 12,522 images, split 10,991 for training and 1,531 for validation. YOLOv8 reached 0.88 mAP@0.5 at 640x640 over 50 epochs. YOLOv5 reached 0.82 at 320x320, and YOLOv7 reached 0.75 over 700 epochs. The comparison is the point: the same data produced materially different results across generations, which is the same sensitivity that makes a later retrain a release event rather than a parameter change.

This is the training-and-dataset half of what this article follows into the field. Every figure above is a validation-set result, and the article's argument is precisely that such a figure describes a dataset until the compiled artifact is measured on the target.

Explore the Driver-Monitoring Model Training Case →

Facial Recognition Access Control with OTA and Fleet Management

A European car-sharing company needed vehicle access by face, running entirely on the device. Promwad built the camera platform on an NXP i.MX 8M Plus Quad — four Cortex-A53 cores up to 1.8 GHz, a 2.3 TOPS NPU, one MIPI CSI input — with TensorFlow Lite 2.6.0 on Yocto Linux, plus anti-spoofing, drowsiness detection and tamper detection.

The part that matters here is the lifecycle, not the model. The firmware scope included OTA updating, and the GCP-hosted service manages multiple fleet operators, their users and their devices, exchanges data with devices in real time, and collects device metrics. That is the closest published Promwad match to the loop this article describes: on-device inference, remote update, and fleet-level telemetry in one system.

Reported outcome: the proof of concept was completed and an MVP built and tested, with recognition accuracy above 99% at up to 16 frames per second. Devices were to be manufactured and installed, so production is planned rather than confirmed.

Explore the Facial Recognition and Fleet Management Case →

In-vehicle AI camera system for driver monitoring and facial recognition.

Solution Approach

Step 1: Write down the build matrix before the first model campaign.

Enumerate every combination of SoC variant, accelerator generation, runtime version and compiler version in the field, then compile and validate per combination against the compatibility the vendor confirms for those exact configurations. The point is not that each combination needs its own model. It is that nobody can know whether it does until it has been measured, and the result belongs in CI rather than in tribal knowledge. Per-target compilation and hardware-level validation are key areas of Promwad's edge AI and NPU deployment services.

Step 2: Move the success signal from install time to load time.

The vehicle should report the identity of the model actually executing — artifact hash, model version, runtime version — on every activation and every reversion, not only at boot, with a timestamp and a reason code for each switch. The campaign then closes against those reports instead of against install confirmations. For systems running AUTOSAR Adaptive on central compute, model activation and verification also need to fit the platform's software lifecycle. That is what turns a silent fallback into a visible one and leaves a fleet state you can audit afterwards. The same visibility supports model versioning, rollback and A/B testing on deployed devices.

Step 3: Route model releases through the same assessment as firmware releases.

Before rollout, assess whether the model update affects type approval, and update the relevant RXSWIN where the change requires an extension or a new approval. Pin the training and validation sets to the shipped artifact so the evidence is reproducible, and fix per-condition acceptance thresholds before the retrain rather than after the field data arrives. Reproducible evidence and artifact-level traceability also support certification under ISO 26262 and ISO 21434.

At this stage the work is pipeline and scope analysis, not another round of model tuning. An offline validation score is a statement about a dataset. It becomes a statement about a fleet only when the artifact that was measured is the artifact that runs, on the hardware it runs on, against inputs drawn from the same distribution as the validation set. Model OTA programmes come apart at the joins between those three conditions and almost never in the middle of any one of them.

Real Trade-Offs

Version-compatible builds remove the rebuild-per-version problem and cost throughput. They also do not cover the hardware axis on automotive platforms, where NVIDIA does not support hardware compatibility at all, so the matrix stays wider than a desktop deployment would suggest.

Delta-friendly training makes payloads deliverable and caps how far the model can move. Constraining fine-tuning to a sparse or low-rank update brings a payload inside a cellular budget at the price of a ceiling on how much the model can change from its base. Right for incremental improvement, wrong when the backbone itself needs replacing.

A head-only update is cheap to ship and cannot fix a feature-extraction problem. Replacing a classifier head is small, fast to validate and genuinely useful for class-level corrections. Teams reach for it because of delivery cost and then find the same failure mode returning, because the thing producing it was never in the head.

Canary rollout buys early warning and costs fleet coherence. Staging across a small share of vehicles catches regressions before they are everywhere, and leaves two model versions live for the duration, which complicates incident triage, telemetry aggregation and any function whose behaviour is compared across vehicles.

Partitioning the inference workload protects safety functions and consumes budget. Running inference in its own partition on a central compute node keeps a model update from disturbing a safety-relevant function, and costs memory, scheduling headroom and IPC latency. These isolation and resource-allocation trade-offs are central to secure partitioning in automotive hypervisors. It is the same argument as for any mixed-criticality workload, with one difference that makes it sharper: the thing crossing the partition boundary is re-issued every few weeks.

Typical ML OTA Engineering Tasks

Build Matrix and Artifact Pipeline

Enumerating SoC, accelerator, runtime and compiler combinations across the fleet; per-target compilation, quantization and validation in CI; artifact identity and signing.

Load-Time Verification and Rollback

Reporting which model is executing rather than which package installed; slot management, fallback arbitration, reason codes, and automatic rollback on post-activation metric regression.

Dataset and Model Co-Versioning

Pinning training and validation sets to the shipped artifact, comparing class and condition distributions between releases, and keeping the evidence reproducible for ISO/PAS 8800 and ISO 24089 purposes.

Update Scope and Compliance Assessment

Routing model releases through the UN R156 impact assessment, mapping changes to RXSWIN, and keeping ASPICE traceability from vehicle-level requirement to deployed artifact.

FAQ

How is an OTA update for an ML model different from a firmware update?

 

Three ways that matter. The artifact is compiled for a specific runtime and accelerator, so one build does not necessarily cover the fleet. The payload may not compress against the previous version, because a retrain can move most weights rather than a contiguous region. And validation produces a statistical claim about a dataset instead of a deterministic pass, so the result needs the dataset preserved alongside the model to mean anything later. The delivery mechanism is the part the two have in common, which is exactly why the differences get missed.
 

Does updating an ML model require a new type approval?

 

Before rollout, assess whether the model update affects type approval; running that assessment is itself a required process under UN R156. Update the relevant RXSWIN if the change requires an extension or a new type approval — that is the condition in paragraph 7.2.1.2.1 — and where the update does not affect the approval, the identifier stays unchanged. A perception or driver-monitoring model that shifts detection behaviour is a realistic candidate for the assessment; a model feeding only a convenience function usually is not.
 

How do you deliver a large model over a cellular link?

 

Reduce the artifact before optimising the transport: quantization and structured pruning do more for payload size than any compression applied afterwards. The choice of pruning and quantization strategies for real-time devices should account for both payload size and inference performance. Then check whether your updates actually delta, by compressing the difference between two shipped versions and comparing it against the full package. If they do not, either constrain the retraining so the update is delta-friendly, or update only the head where the correction is class-level. Stage the rollout, prefer Wi-Fi, and size the campaign window around the share of the fleet that sees Wi-Fi in a given month, which is usually lower than planning assumes.
 

 

What does rollback mean for a model, and is it enough?

 

Mechanically it means keeping the previous artifact resident and switching back to it, usually through dual-slot storage, on a post-activation metric regression. It is necessary and not sufficient, because the signal that should trigger it is a distribution shift measured over days, not a crash measured in seconds. A rollback policy for models needs a defined metric, a window, a threshold and a fleet segment. A shadow-mode period, where the new model runs and is scored without acting, is usually the cheaper way to find the problem first.
 

Where does the ML model fit in the vehicle's chain of trust?

 

The model artifact should be signed and verified on the same footing as any other executable payload. These requirements are also fundamental to secure OTA update pipeline design. Uptane is one widely used way to structure that and a useful reference model even where it is not adopted wholesale: an image repository holding signed metadata under offline keys, a director repository signing deployment instructions under online keys, and ECUs performing full or partial verification depending on capability. Anti-rollback protection matters more for models than for firmware, because an older model is often functionally plausible — it will run and produce worse decisions quietly, where downgraded firmware tends to announce itself.
 

 

Related Engineering Cases

  • AI Model Training for Driver Monitoring: Three YOLO generations compared on a 12,522-image dataset for detection of phone use and smoking at the wheel; YOLOv8 reached 0.88 mAP@0.5. The training and dataset side of the model class this article follows into the field.
  • Embedded Facial Recognition Access Control for Car-Sharing: On-device TensorFlow Lite inference on NXP i.MX 8M Plus for a European car-sharing operator, with OTA firmware updating and a GCP service managing fleets, users, devices and device metrics. Proof of concept and MVP completed. The closest published match to the deployment loop described here.
  • AI Camera Platform for Exterior Vehicle Access (Internal R&D): Promwad internal R&D project building a reusable camera platform on a single Ambarella CVflow automotive SoC that runs image processing and inference together. MediaPipe models were ported to CVflow and the architecture validated on a prototype setup — a concrete instance of an artifact compiled for one accelerator.

Build a Reliable ML Model Update Pipeline

Share your target silicon and runtime versions, model size and update cadence, current OTA stack, and where field behaviour is diverging from offline validation. We will define the pipeline or scope step that closes the gap.

Tell us about your project

We’ll review it carefully and get back to you with the best technical approach.

All information you share stays private and secure — NDA available upon request.

Prefer direct email?
Write to info@promwad.com

Secured call with our expert in 24h
Secured call with our expert in 24h
Embedded in your team, end-to-end engineering
Embedded in your team, end-to-end engineering
22 years of engineering expertise
500+ projects for OEMs in EU & US
500+ projects for OEMs in EU and US
22 years of engineering expertise
MVP in 8–10 weeks
MVP in 8–10 weeks — predictable delivery
Featured at IBC, Embedded World, MWC
Featured at IBC, Embedded World, MWC