TL;DR
Evaluating complex temporal queries (such as "a car is visible until a pedestrian appears") in video and audio typically requires either brittle large multimodal models or computationally prohibitive formal model checkers. LogSTOP introduces a linear-time scoring algorithm based on Linear Temporal Logic (LTL) that lifts noisy frame-level detections into calibrated sequence-level scores. Paired with lightweight off-the-shelf detectors, LogSTOP outperforms large vision/audio models by over 16% on query matching and outperforms zero-shot video retrieval baselines by 19% mAP.
What Problem Does This Paper Address?
Modern perception models (like YOLO for video frames or HuBERT for speech segments) output continuous confidence scores for local attributes like objects, actions, or emotions. However, real-world tasks often demand reasoning over long sequences with temporal relationships—such as checking safety invariants in autonomous driving ("always stay in lane") or searching video archives ("retrieve scenes where speaker A sounds angry until speaker B speaks").
Prior efforts either rely on:
- Large Vision/Audio Language Models (LVLMs/LALMs), which frequently hallucinate or struggle with compositional temporal logic.
- Probabilistic Model Checkers (e.g., STORM), which scale exponentially ($O(T \cdot 2^{|C|})$ for sequence length $T$ and property set $C$), cannot rank sequences gracefully, and are fragile to noisy frame dropouts (e.g., temporary object occlusions).
The authors formulate the STOP (Scores for TempOral Properties) problem: Given noisy local property predictions, how can we efficiently assign a continuous satisfaction score to an entire sequence under a formal temporal specification?
Methods
Local Predictor (YOLO / HuBERT) ──> Frame Log-Probabilities
│
▼
Local Window Smoothing (w)
│
▼
LogSTOP Dynamic Programming (Algorithm 1)
[ O(T · |φ|) Complexity ]
/ \
/ \
Query Matching Ranked Retrieval
(Adaptive Threshold τ(φ, T, w)) (Max Over Subwindows [T_lo, T_hi])
The authors formalize specifications using Linear Temporal Logic (LTL) with temporal operators such as $\Box$ (Always), $\Diamond$ (Eventually), $\mathcal{U}$ (Until), and $\bigcirc$ (Next).
- LogSTOP Algorithm: Interpreting continuous detector outputs as log probabilities of independent events, LogSTOP recursively computes sequence-level scores in log-space using dynamic programming. This eliminates numerical underflow and drops time complexity to $O(T \cdot |\phi|)$ (linear in sequence length and formula size).
- Local Downsampling & Smoothing: Real-world detectors frequently drop frames due to occlusion or motion blur. LogSTOP averages probabilities across a sliding window $w$, encoding the prior that semantic states persist over short horizons.
- Adaptive Matching Threshold: Fixed thresholds (e.g., $\tau = \log 0.5$) unfairly penalize longer sequences for $\Box$ (Always) properties due to repeated probability multiplication. The authors introduce a query- and length-dependent threshold $\tau(\phi, T, w)$ that evaluates the property against a baseline uniform prior of $0.5$.
- Subsequence Retrieval: For ranked retrieval, LogSTOP identifies the maximum score across all valid subwindows $[T_{lo}, T_{hi}]$ in $O(T^2 \cdot |\phi|)$ time.
Datasets
Because existing video/audio benchmarks lack deep temporal compositional structures, the authors introduce two new benchmarks:
- QMTP (Query Matching for Temporal Properties):
- QMTP-video: 7,468 video clips (10–50 frames) built from driving datasets in RealTLV (NuScenes and Waymo) across 6 object classes.
- QMTP-speech: 3,300 speech samples (5–30 segments) derived from IEMOCAP across 4 emotion categories.
- TP2VR (Temporal Property to Video Retrieval):
- TP2VR-objects: 746 videos with 42 object-based temporal queries.
- TP2VR-actions: 952 1-minute video clips from the AVA action dataset with 70 action-based temporal queries across 80 atomic action classes.
Key Insights and Ideas
- Symbolic structure beats brute-force scale: Small, specialized detectors (YOLO, HuBERT) combined with formal grammar drastically outperform massive models like LongVA-7B, Qwen2-Audio, and InternVL2-26B. LVLMs particularly struggle on nested Boolean-temporal operations (e.g., (Not p1) Until p2).
- Probabilistic semantics outperform min/max robustness: Standard quantitative semantics in Signal Temporal Logic (STL) rely on $\min$ and $\max$ operators. Consequently, a video with one fleeting failure receives the exact same score as a video failing at every timestep. LogSTOP accumulates log-evidence, enabling effective ranking and retrieval.
- Length normalization is critical for temporal queries: An adaptive threshold calibrated against a random detector prevents false negatives on long sequences for conjunctive queries.
Key Results
- Query Matching: LogSTOP outperforms all language model and model-checking baselines:
- On QMTP-video, LogSTOP (YOLOv8) achieved 0.79 balanced accuracy, beating LongVA-7B (0.63), NSVS-TL (0.58), and the 26-billion parameter InternVL2-26B (0.63 on $\le 30$ frames).
- On QMTP-speech, LogSTOP (HuBERT) reached 0.84 balanced accuracy vs. Qwen-Audio-Chat (0.68) and Qwen2-Audio-7B-Instruct (0.63).
- Ranked Retrieval:
- On TP2VR-objects, LogSTOP (Grounding DINO) achieved 0.64 mAP and 0.59 Recall@r, outperforming zero-shot multimodal retrieval methods like CaptionSim (0.36 mAP) and mPLUG (0.34 mAP).
- On TP2VR-actions, LogSTOP (SlowR50) achieved 0.28 mAP compared to 0.09 for CaptionSim and 0.06 for mPLUG, while reducing the Mean Rank of first retrieval from >20 down to 7.9.
Limitations and Future Work
- Logic Expressivity: Standard LTL cannot express numerical counting queries (e.g., "there are always exactly 2 cars"). More expressive formalisms or specialized counting predicates are needed.
- Independence Assumption: Treating consecutive frames as conditionally independent is theoretically violated by video continuity (though practically mitigated by the local smoothing window $w$).
- Multi-modal Synchronization: The experiments evaluate modalities separately; extending LogSTOP to joint multimodal temporal reasoning (e.g., aligning speech emotion transitions with concurrent facial action units) remains open.
Summary updated