TL;DR
When an AI combines neural perception with symbolic rules over time—watching a video feed and checking if a sequence of events satisfies a safety rule—tiny pixel perturbations that look harmless on single frames can quietly accumulate and flip the final decision. Standard verification tools fail here because mathematical approximation errors snowball over long sequences, rendering safety guarantees useless. This paper introduces the first end-to-end formal verification framework for temporal neuro-symbolic systems, using a clever algebraic rewrite and a fused temporal operator to maintain tight, fast safety certificates over long horizons.
What Problem Does This Paper Address?
Imagine an autonomous vehicle or a factory monitor using a Neurosymbolic Automaton (NeSyA). At each time step, a neural network looks at raw sensor data (like an image) and outputs probabilities for abstract concepts (e.g., "digit is even"). A symbolic finite automaton then tracks these concepts over time to decide whether the entire trajectory satisfies a temporal rule.
In safety-critical settings, we want formal robustness certification: a mathematical proof that bounded noise ($L_\infty$ perturbations) on every input frame won't flip the automaton's final accept/reject decision. Certifying each frame individually isn't enough—tiny shifts in log-probabilities that don't even change a frame's top prediction can compound over time and flip the trajectory-level outcome.
To verify the system end-to-end, we propagate upper and lower bounds through both the neural net and the automaton. However, standard bound-propagation tools (like CROWN) hit a wall called interval explosion:
- Overlapping terms per step: Standard log-probabilities subtract a normalization term over all possible outcomes from a term over valid outcomes. Because bound propagators relax these two overlapping functions independently, they miss natural algebraic cancellations, creating needlessly wide bounds right out of the gate.
- Compounding over time: Unrolling the automaton step-by-step chains nonlinear operations (
log-sum-exp) together. At each step, the approximation slack widens, until the final bounds become completely vacuous over longer sequences.
Methods
The authors treat the perception CNN and the probabilistic automaton as a single differentiable computation graph, attacking interval explosion at both choke points while relying on standard CROWN linear relaxations under the hood:
- Contrastive Logit-Gap (CLG): Instead of computing transition log-probabilities by subtracting two overlapping
log-sum-exp(LSE) functions, the authors rewrite the exact same math using a logisticsoftplusfunction applied to the gap between invalid outcomes and valid outcomes. Now, the two inner LSE functions act on completely disjoint sets of coordinates—eliminating missed cancellations—while the outer-softplusacts as a natural damper on approximation errors. - Fused Temporal Operator: Rather than propagating bounds step-by-step through $T$ recursive updates (or enumerating every valid path, which blows up exponentially in memory), the authors exploit the fact that the entire temporal program is convex and monotonically nondecreasing in the transition scores. Using a single forward-backward pass, they linearize the entire depth-$T$ temporal chain in one shot, yielding exact corner bounds with zero compounding slack across time.
Datasets
- NeSyA-MNIST: A newly constructed sequence benchmark over MNIST digits where a CNN predicts digit magnitude and parity per frame, feeding a 4-state automaton over sequences of length $T \in \{3, \dots, 20\}$.
- MNIST-extended: A scaled-up variant introduced to stress-test symbolic scaling, featuring a larger joint alphabet ($K=216$), a 10-state automaton, and horizon $T=30$.
- CAVIAR: An existing real-world video event-recognition benchmark from prior NeSyA work, tracking two people across downsampled video clips ($T_{\text{ds}} \in [4, 43]$) to classify complex interactions (
no_event,moving,interacting) over a 3-state automaton.
Key Insights and Ideas
- Algebraically identical formulas do not relax equally: On paper, the textbook softmax log-probability and CLG output the exact same numbers. To a linear bound propagator, however, separating coordinates into disjoint "valid vs. invalid" sets makes the difference between useless bounds and laser-tight ones.
- CLG is essentially exact when it matters most: CLG behaves asymmetrically. When a transition is confidently satisfied ($p \to 1$), the outer
-softplusslope approaches zero and crushes inner approximation slack to the numerical floor ($< 10^{-6}$). While CLG is slightly looser on confidently violated transitions ($p \to 0$), the automaton's acceptance decision is predominantly driven by the high-probability accepting path—meaning CLG shines precisely where the math needs it.
- Flattening time beats unrolling it: By recognizing the log-semiring forward pass as convex and monotone, you don't have to pay a relaxation penalty at every tick of the clock. One joint linearization replaces $T$ nested approximations.
Key Results
- NeSyA-MNIST: At perturbation radius $\varepsilon = 0.01$, the strengthened recursive baseline certifies only 26.7% of test sequences, whereas CLG with the fused temporal operator certifies 65.0%.
- Long-Horizon Scaling: Fixing $\varepsilon = 0.005$ and stretching sequence length from $T=4$ to $T=20$, the baseline collapses from 49.3% to 0.6%. Recursive CLG drops to 57.5%, explicit path-unrolling runs out of memory at $T \ge 18$, and the fused temporal operator holds strong at 79.0%.
- Real-World Video & Speedups: On CAVIAR at $\varepsilon = 2\times 10^{-4}$, the baseline collapses to certifying 1/13 clips while CLG certifies 9/13. Furthermore, the fused temporal operator cuts verification wall-clock time by 1.5–2$\times$ on CAVIAR (165s vs. 261s per sequence) and up to $\sim$6$\times$ on the largest symbolic benchmark (
MNIST-extended).
Limitations and Future Work
- Perception is still the bottleneck: While the fused operator makes temporal reasoning cheap and tight, propagating bounds through the CNN at every frame still scales linearly as $O(T)$. Experiments here use relatively small CNNs; scaling to ResNet-sized backbones over long horizons remains open.
- Automaton scope: Path-unrolling blows up on highly branching automata, and the overall framework currently targets deterministic finite automata with binary accept/reject thresholds.
- Next steps: The authors plan to extend the convexity and monotonicity machinery of their fused operator to non-deterministic/weighted automata and richer temporal logics like finite-horizon Linear Temporal Logic ($\text{LTL}_f$), while pairing it with stronger spatial verifiers for deeper perception networks.
Summary updated