Certificates as Interfaces: Swappable Sensor Modules with Semantic Robustness Guarantees

A self-driving perception stack is usually built from parts: a camera network, a LiDAR network, and a small fusion model that combines their outputs. Engineers swap these parts all the time. Robustness guarantees against physical changes such as a rotated vehicle or a shifted camera are not built that way. Today's certificates, meaning mathematical proofs that a prediction cannot flip within a stated range of rotations or shifts, are computed for the whole assembled system at once. When one part changes, the proof has to be redone from scratch, and the proof says nothing about which part was the weak one. We propose to certify each sensor module against a written contract at the point where it hands features to the fusion model, and to certify the fusion model once against that same contract. Any module that meets the contract can then be plugged in and inherits the system-level guarantee without re-certifying anything else.

The technical core is a way to join two kinds of proof that have not been combined before. The first is randomized smoothing in transformation-parameter space: averaging a network's output over random jitter in the rotation or shift parameters. This is the only method that scales to real detectors under physical transformations. The second is deterministic bound propagation, which pushes a set of possible inputs through a network layer by layer to prove bounds on its output. It is exact enough for small networks such as fusion heads. The bridge is a simple property of smoothing. When a module's features are bounded, averaging them over Gaussian jitter in the parameters makes them change slowly as the parameters move. Checking the module at the center of a small cell of rotations therefore bounds its smoothed features over the entire cell. Those bounds form a box that a deterministic verifier can take as the fusion model's input set.

Core Claim

The claim has three parts. First, a smoothed sensor module paired with a deterministically verified fusion head gives a sound high-probability certificate for physical transformations. Second, that certificate is competitive with end-to-end smoothing of the whole fusion system. Third, because the certificate factors through a fixed interface contract, certifying $N$ candidate modules and $M$ candidate heads costs on the order of $N+M$ certification runs instead of $N \times M$. It also yields certificates that remain valid when one sensor branch is declared to have failed completely.

Concretely, let $h_m$ be the feature extractor for modality $m$, with outputs clipped to $[0,1]^d$. Let $T_m(x;\theta)$ apply a physical transformation with parameters $\theta$, such as rotation angle or distance shift, to that modality's raw input. The smoothed interface feature is

$$\bar h_m(\theta) = \mathbb{E}_{\delta \sim \mathcal{N}(0,\sigma_m^2 I)}\big[h_m(T_m(x;\theta+\delta))\big].$$

Because each coordinate is bounded, differentiating through the Gaussian density shows that $\bar h_m$ is Lipschitz in $\theta$ with a constant $L_{\sigma_m}$ of order $1/\sigma_m$. For a parameter cell $c$ with center $\theta_c$ and radius $r_c$, estimate $\hat h_m(\theta_c)$ from $n$ Monte Carlo samples. Then every $\theta$ in the cell satisfies, coordinate by coordinate,

$$|\bar h_{m,j}(\theta) - \hat h_{m,j}(\theta_c)| \le L_{\sigma_m} r_c + \sqrt{\log(2dKM'/\alpha)/(2n)}.$$

This holds with probability at least $1-\alpha$ jointly over all $d$ coordinates, $K$ cells, and $M'$ modalities. The second term is Hoeffding's inequality with a union bound. The result is a box per modality per cell. The contract states the maximum box width a module is allowed to produce. The fusion head is then verified by linear bound propagation over the product of the boxes. A cell is certified when the head's decision is provably fixed over that product.

Relation to Prior Work

Three papers motivate this work by exposing the gap. COMMIT certifies camera–LiDAR fusion detectors against rotation and shifting. It uses different smoothing noise for each sensor and splits the parameter range into grid cells. It found that fusion certifies far better than single sensors, but that one image-dependent model (FocalsConv) is dragged down by its weakest branch. COMMIT certifies each fusion model as a single sealed unit. We keep its grid cells and its per-sensor noise, but move the certificate to the internal hand-off point. TPC introduced smoothing in transformation-parameter space for point clouds, along with interpolation bounds for rotations. It too treats the model as a black box. We supply its smoothing to individual modules rather than whole models. CoVeNN supplies the compositional pattern. It cuts a deep network into pieces, and one piece's proved output bound becomes the next piece's assumed input set, an arrangement called assume-guarantee reasoning. It is deterministic, restricted to small pixel-level ($\ell_\infty$) perturbations, and handles only single-input feedforward chains. We carry its contract idea to parameter-space smoothing and to multi-branch fusion graphs. There, the contract meets a statistical guarantee on one side and a deterministic one on the other.

Three papers constrain the design. TPC reports that wrapping relaxation-based verifiers around transformed inputs yields 20.3% certified accuracy under ±20° twisting, against 83.8% for parameter smoothing. We therefore do not run deterministic verification on the sensor backbones themselves. 3DVerifier tightens linear bounds for point-cloud alignment layers but still leaves a large gap to empirical robustness. That is further reason to reserve deterministic proofs for the small fusion head. ModelVerification.jl is a solver-agnostic verification toolbox with swappable solvers and set representations. It is our candidate backend for the head proof. Its convex-hull input sets for weather and occlusion show that deterministic tools accept structured input sets, and our interface boxes are such sets.

From the software side, OmniEvaluator cuts integration cost from $O(N \times M)$ to $O(N+M)$ by routing all components through one shared intermediate schema. DeepDIVA argues that tightly coupled pipelines turn every component swap into a cascade of rewrites. Neither carries formal guarantees. Our contract is the verified version of OmniEvaluator's shared schema, and the $N+M$ counting argument transfers directly.

Research Program

The first deliverable is the proof itself. It must cover how the smoothed branch bound composes with the deterministic head proof. It must also cover how the confidence budget is spent across cells and branches, and how the same deployed classifier is defined at inference time. In deployment, each branch is averaged by Monte Carlo sampling, as in any smoothed model, and the head runs on the averaged features.

The second deliverable is a training recipe that makes contracts attainable. Branches are trained with parameter-space noise augmentation and a penalty on how far their features drift across a cell. Heads are trained with interval-bound training on boxes of the contracted width, so they tolerate the interface uncertainty they will be proved against. We also train heads against a degraded-branch contract. In that contract one modality's box may be the entire unit cube, which models a sensor that is blinded or unverifiable under the current transformation. This is the direct attack on COMMIT's weakest-link finding. If the head certifies under that contract, the system is guaranteed to hold even with that sensor's features completely unknown.

The third deliverable is the software: a plug-in interface in which a transformation generator, a branch certifier, and a head verifier communicate only through contract boxes indexed by parameter cell.

Baselines

The naive reference point is the uncertified fusion model, trained with the same transformation augmentation and evaluated by grid attack over the parameter range. Its empirical accuracy is an upper bound that no certificate can exceed. The gap between it and each certified number measures how loose each method is.

The strongest existing competitor is COMMIT-style end-to-end smoothing with grid splitting, run on the identical fusion model. It is the strongest because it is the only published method certifying camera–LiDAR fusion under physical rotation and shifting, and it treats the whole system as the object being smoothed. On KITTI-CARLA it reports certified AP@50 of 53.23% for CLOCs at 30° rotation, and nearly 100% certified Det@80 for MVX-Net, per COMMIT. On ModelNet40, the corresponding single-model reference is TPC: 83.8% certified accuracy under ±20° z-twisting and 69.2% under general rotations up to 10°, per TPC. For fairness, both methods receive the same trained weights, the same grid cells, the same total Monte Carlo sample budget per test point, the same confidence level $\alpha$, and the same noise-scale tuning sweep. The comparison has two regimes. In the single-system regime, modular certification wins if it comes within about three points of the end-to-end certified metric while providing per-branch attribution. In the many-combinations regime, with $N$ branch variants and $M$ head variants, it wins if it matches the end-to-end certificate on every pairing at a total cost that grows with $N+M$.

The ablations isolate the key ingredient. Independent per-module verification certifies each branch's own task output. COMMIT's 0% single-sensor results predict that it will reject working systems. A head trained normally, rather than on contract-width boxes, tests whether contract-aware training is what makes the modular proof tight. A CoVeNN-style deterministic pipeline, with an $\ell_\infty$ box drawn around the transformed inputs, tests whether smoothing at the branch level is necessary at all.

Why not just…?

Why not just re-run end-to-end smoothing whenever a module changes? This is the real threat. For a single swap, the savings are at most the share of sampling spent on the unchanged branches, and end-to-end smoothing may certify tighter because it smooths the final decision rather than the intermediate features. We concede both. The modular method earns its place only in two cases. The first is when many module–head combinations must be certified, where cost grows with $N+M$ rather than $N \times M$. The second is when the degraded-branch certificate provides a guarantee end-to-end smoothing cannot express at all. If the certified-accuracy gap exceeds a few points even in those regimes, the proposal fails as a certification method and survives only as a diagnostic tool.

Why not just verify each sensor module on its own? A module can be useless alone yet essential together. COMMIT reports single-camera AP@50 and single-LiDAR Det@80 both falling to 0% under 30° rotation, while the fused models certify well. Per-module task certificates would reject exactly the systems worth deploying. Our contracts constrain features, not task outputs, so they avoid this. The ablation measures how often the naive scheme rejects pairs that our method certifies.

Why not just draw a pixel-level box around all transformed inputs and use a compositional deterministic verifier like CoVeNN? Rotations trace a curved path through pixel space, and the enclosing box is mostly empty space. TPC measured the resulting collapse: 20.3% versus 83.8% certified accuracy. CoVeNN fixes memory, not this looseness. We still run this baseline on ModelNet40 to confirm the collapse on our models.

Why not just train with rotation and shift augmentation and skip proofs? Augmentation improves average-case behavior, but COMMIT notes that such empirical defenses have been broken by adaptive attacks searching the parameter range. Adversarially Robust Generalization Requires More Data shows that robust generalization needs more data than standard generalization. We use augmentation inside our recipe; it is not a substitute for a guarantee.

Proposed Experiments

Stage one runs on ModelNet40. The model is two point-cloud branches, a PointNet and a DGCNN, with separately jittered sampling, feeding a small fusion MLP. The transformations are z-rotation, twisting, and tapering, using TPC's grid and interpolation machinery. This stage checks soundness: no certified cell may be broken by dense grid attack. It also checks the gap to monolithic smoothing, and the swap experiment, in which three branch variants and three heads give nine pairings certified via six contract checks.

Stage two runs on KITTI-CARLA under COMMIT's ±30° rotation and 10–15 m shifting, using CLOCs-style late fusion. We chose CLOCs because its fusion network is already small enough for deterministic head verification. We adapt its interface to fixed candidate slots around the target object. We flag this adaptation as the riskiest engineering step, since the discrete candidate selection in detectors may not fit a fixed-width contract.

The decisive checks are three. The first is certified AP@50 at 30° against 53.23%. The second is wall-clock cost to certify all pairings as the number of pairings grows. The third is the fraction of cells certified under the degraded-branch contract when the camera is declared failed. The degraded-branch result is the proposal's clearest test. A FocalsConv-like image-heavy head that certifies under shifting with its camera box set to the full unit cube would show that the weakest-link failure COMMIT identified was an artifact of sealed-unit certification, not a property of the sensors.