LogSTOP: Temporal Scores over Prediction Sequences for Matching and Retrieval

Avishree Khare, Hideki Okamoto, Bardh Hoxha, Georgios Fainekos, Rajeev Alur

TL;DR

LogSTOP bridges the gap between frame-level neural detections (like YOLO or HuBERT) and complex temporal queries (e.g., "X happens until Y occurs") by recursively computing temporal scores in log-space. It operates in linear time, handles noisy predictions via local smoothing, and significantly outperforms massive vision-language models on video and audio retrieval tasks.

What Problem Does This Paper Address?

While modern neural networks excel at detecting objects or emotions in a single frame of video or audio, they struggle to reason about how these events unfold over time. If you want to find a video where a "car drives always in its lane until a pedestrian appears," standard frame-level models can't help you directly.

To solve this, researchers usually turn to one of two extremes:

  1. Large Vision-Language Models (LVLMs): Massive models that process entire videos but frequently hallucinate or fail at precise, multi-step temporal logic.
  2. Symbolic Model Checkers: Tools that use formal logic to verify sequences, but suffer from exponential time complexity ($O(T \cdot 2^{|C|})$) and completely break down when a detector misses a single frame due to noise or occlusion.

LogSTOP introduces a middle ground: a framework that mathematically lifts noisy, frame-level probability scores into robust, sequence-level Scores for TempOral Properties (STOPs) efficiently.

Methods

The authors leverage Linear Temporal Logic (LTL) to formally define temporal queries using operators like Always ($\square$), Eventually ($\diamond$), and Until ($U$).

To compute sequence scores without exploding computationally, they introduce the LogSTOP algorithm, which features three key design choices:

  • Log-Probability Semantics: It treats the temporal operators as recursive probabilistic compositions, operating entirely in log-space to prevent numerical underflow over long sequences. This reduces the time complexity to a highly efficient linear scale: $O(T \cdot |\phi|)$ for a sequence of length $T$ and formula $\phi$.
  • Downsampling and Average Smoothing: To handle real-world noise (like an object detector momentarily losing a car behind a tree), LogSTOP averages scores within a small temporal window $w$. This enforces the physical intuition that states don't instantaneously flicker on and off.
  • Adaptive Thresholding: Standard probabilistic accumulation naturally decays over time (e.g., $0.9^6 > 0.9^7$). LogSTOP replaces static thresholds with a length- and query-adaptive threshold, ensuring long videos aren't unfairly penalized just for being long.
LogSTOP scores for three videos evaluated against an "Always" query, demonstrating how the adaptive threshold handles occlusions vs. complete absences.

Datasets

Because no existing benchmarks evaluated this specific blend of fine-grained temporal logic and multi-modal retrieval, the authors introduced two new benchmarks:

  • QMTP (Query Matching for Temporal Properties): Evaluates binary query matching. It uses objects-in-videos from the RealTLV dataset (derived from NuScenes and Waymo) and emotions-in-speech from the IEMOCAP dataset.
  • TP2VR (Temporal Property to Video Retrieval): Evaluates ranked subsequence retrieval. It features objects from RealTLV and atomic actions-in-videos from the AVA dataset.

Key Insights and Ideas

  • Logic Beats Brute-Force Scale: Small, specialized neural networks (like YOLOv8 or HuBERT) combined with formal temporal logic consistently outperform massive foundation models (like Video-LLaVA or Qwen-Audio) at tracking complex, multi-step events.
  • The Length Penalty Solution: The "aha moment" for query matching is the adaptive threshold. Without it, a model tracking an object perfectly across 50 frames would score lower than one tracking it across 5 frames simply due to the math of multiplying probabilities.

Key Results

LogSTOP demonstrates substantial performance leaps across both query matching and ranked retrieval tasks:

  • Query Matching: On the QMTP benchmark, LogSTOP combined with YOLOv8 (for video) and HuBERT (for speech) outperformed Large Language Models and prior neuro-symbolic baselines (NSVS-TL) by at least 16% in balanced accuracy.
Balanced accuracy comparison on the QMTP video and speech benchmarks across different categories of temporal complexity.
  • Ranked Retrieval: On the TP2VR benchmark, LogSTOP combined with Grounding DINO and SlowR50 achieved a 19% increase in mean average precision (mAP) and a 16% increase in recall over zero-shot text-to-video baselines like mPLUG.
Quantitative retrieval metrics on the TP2VR datasets, showing LogSTOP outperforming zero-shot text-to-video baselines.

Limitations and Future Work

  • Expressivity Limits: Standard LTL cannot handle counting properties directly (e.g., "there are exactly 2 cars in the frame at all times"). More expressive logics will need to be explored.
  • Single Modality Focus: The current implementation evaluates video and audio sequences separately. A natural next step is extending LogSTOP to true multi-modal applications where a single temporal formula can span across both audio and visual predictors simultaneously.

Summary updated

BibTeX
@inproceedings{khare2026logstop,
  author = {Avishree Khare and Hideki Okamoto and Bardh Hoxha and Georgios Fainekos and Rajeev Alur},
  title = {{LogSTOP: Temporal Scores over Prediction Sequences for Matching and Retrieval}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=02WO2BFUCS},
}
Figure