TL;DR
FocusGraph is a novel, highly efficient framework designed for Long Video Question Answering (LVQA) in embodied agents. By converting long egocentric videos into compact, clip-level textual scene graphs, it allows a lightweight language model to quickly filter relevant video segments before extracting precise keyframes using a training-free optical flow algorithm. This approach achieves state-of-the-art accuracy while drastically slashing inference times and token consumption.
What Problem Does This Paper Address?
Embodied intelligent agents—like autonomous robots or smart glasses—continuously capture hours of egocentric video. To be useful, these agents must answer complex user queries about past events (e.g., "What receptacle did I place an object on right before interacting with the can?"). This task requires reasoning over massive temporal horizons.
While Multimodal Large Language Models (MLLMs) excel at natural language reasoning, they stumble when processing long videos. Feeding thousands of raw frames into an MLLM causes an "attention dilution" effect, where the model misses crucial details, degrades in response quality, and incurs massive computational costs. Existing solutions either compress visual features (which discards fine-grained details) or treat videos as dense image sequences, which quickly overwhelms the MLLM's context window.
FocusGraph tackles this bottleneck by decoupling video understanding into two distinct, highly efficient stages: semantic clip filtering and low-level keyframe extraction.
Methods
FocusGraph splits the long video into short, non-overlapping clips and processes them through a two-stage pipeline:
-
Stage 1: Scene-Caption LLM Selector Instead of forcing an LLM to look at raw pixels, FocusGraph uses a pretrained MLLM (Qwen2.5-VL) to generate a hierarchical textual scene graph for each clip. This graph lists detected objects, spatial relationships, and a high-level action description. These text descriptions are embedded using ModernBERT and mapped into an LLM's latent space via lightweight adapters. A small, fine-tuned LLM (Qwen2.5-3B) then scans this compact textual timeline to select the top-$M$ clips relevant to the user's query.
-
Stage 2: Patchwise Sparse-Flow Retention (PSFR) Once the relevant clips are isolated, FocusGraph extracts exactly $K$ keyframes to feed into the final answering MLLM. To keep this stage fast and training-free, the authors designed the PSFR algorithm. PSFR runs on the CPU and tracks structural changes across a grid of image patches using sparse optical flow (Lucas-Kanade tracking of Shi-Tomasi corners). When a high percentage of patches lose their tracking points, the algorithm flags a "PSFR event," indicating a significant visual or structural shift.
To optimize how these low-level cues (motion, corner counts, edge density, and grayscale entropy) map to final keyframe selections, the authors used an automated program-evolution engine (OpenEvolve) to search for the best heuristic function under a strict runtime budget.
Datasets
The authors trained and evaluated FocusGraph using three prominent datasets:
- GenS-Video-150K: Used for the supervised fine-tuning (SFT) of the Scene-Caption LLM Selector, providing dense annotations of query-relevant frames.
- FindingDory: An embodied AI benchmark featuring mobile manipulation tasks in a simulated environment, testing long-horizon spatial and temporal reasoning.
- HourVideo: A challenging benchmark consisting of 1-hour-long egocentric videos from the Ego4D dataset, evaluating navigation, perception, reasoning, and summarization.
Key Insights and Ideas
- Decoupling Semantics from Pixels: The core "aha moment" is that an agent does not need to look at raw video frames to determine where a semantic event occurred. Textual scene graphs provide a stable, highly compressed representation that allows a small LLM to perform long-horizon reasoning efficiently.
- Sub-Token Efficiency: By encoding clip graphs into continuous text embeddings, FocusGraph reduces token usage to less than 1 token per frame, compared to the 16+ tokens per frame required by traditional visual-token baselines.
- Evolved Heuristics: Instead of manually guessing the best mathematical combination of visual features (like edges and entropy) for keyframe selection, letting an evolutionary algorithm discover the optimal Python function yields highly robust, lightweight code that runs efficiently on a standard CPU.
Key Results
FocusGraph demonstrates a massive leap in inference efficiency without sacrificing accuracy:
- Accuracy: On the FindingDory benchmark, FocusGraph achieved a relaxed accuracy of 27.5% on the development split, outperforming competing learned methods like ViaRL (21.4%) and matching heavy generative sampling baselines.
- Inference Speedup: On the HourVideo benchmark, FocusGraph's Scene-Caption LLM Selector took just 0.6 seconds to process a query, compared to 103 seconds for the state-of-the-art GenS baseline—representing a massive speedup.
- Compute Footprint: The PSFR keyframe selection algorithm runs entirely on a CPU and takes a mere 0.021 seconds per video, making it highly practical for real-time robotic deployment.
Limitations and Future Work
- Cascading Errors: Because Stage 1 relies entirely on the text descriptions generated by the initial MLLM, any critical objects or actions missed during the initial scene-graph generation cannot be recovered by the selector.
- Fixed Budgets: The framework relies on a fixed budget for the number of selected clips ($M$) and keyframes ($K$). Dynamically scaling these budgets based on query complexity or video density remains an open challenge.
- Streaming Integration: Future work will focus on adapting FocusGraph from an offline, batch-processing framework into an online, streaming memory architecture suitable for continuous, real-time agent interaction.
Summary updated