TL;DR
When asking a Large Language Model (LLM) a question about a video, feeding it everything—dense video frames, captions, object detections, and text—makes it painfully slow, while feeding it a fixed subset often misses the point. Prysma acts like an intelligent soundboard operator for video AI, dynamically tuning which modalities and extraction settings to feed the LLM for each specific video and user question. The result? Up to an 82% boost in answer quality without blowing past strict response-time limits.
What Problem Does This Paper Address?
Modern Video Question Answering (VQA) systems don't just "watch" raw video on the fly. Offline, they pre-extract LLM-friendly representations: vision tokens (sampled image frames), generated captions, optical character recognition (OCR), and object detection records. When a user asks a question online, these modalities are bundled into a prompt for the LLM, which must start answering within a strict Time-to-First-Token (TTFT) latency budget—its Service-Level Objective (SLO).
Here is the catch: current systems use static, one-size-fits-all extraction pipelines, which leaves massive performance on the table. Across different videos, choosing the wrong combination of modalities can degrade answer quality by 2.34× and balloon latency by 64.6× (due to massive prompt lengths and retrieval overhead). Even within a single modality—like adjusting how many frames are sampled or how frequently captions are generated—videos show wildly different, sometimes opposite, preferences.
With over $10^6$ possible configurations of modalities and extraction "knobs" (frame rates, thresholds, etc.), and optimal settings shifting not just from video to video, but from question to question on the same video, how do you find the sweet spot before the user gets bored waiting?
Methods
Prysma splits the workload into heavy, one-shot offline exploration (when a video is uploaded with sample queries) and ultra-fast online selection (when live user queries arrive).
1. Offline Modality Orchestrator: * Video Knowledge Base: Instead of tuning every new video from scratch, Prysma clusters representative videos using standard CLIP visual features. When a new video arrives, it warm-starts the search by borrowing promising modality combinations from visually similar videos. * Latency-Aware Configuration Pruner: Rather than training a complex machine learning model to predict latency violations, Prysma uses a training-free insight: latency monotonicity. Adding modalities or cranking up knobs (like frame count) strictly increases input tokens and TTFT. By profiling token-to-TTFT curves, Prysma immediately prunes massive branches of the search space the moment a smaller configuration violates the SLO. * Two-Stage Configuration Tuner: First, Prysma uses a Tree-structured Parzen Estimator (TPE) with dynamic budget allocation to find a strong coarse-grained configuration for the whole video. Once improvements plateau, it switches to a Genetic Algorithm (GA) that focuses only on the subset of poorly answered queries. Tuning on a shrinking subset makes each trial cheaper and prevents easy questions from dominating the optimization.
2. Online Semantic Adapter: When a novel user query arrives in real time, Prysma computes its text embedding similarity against the video's previously tuned queries. Using a weighted-voting ensemble over the closest historical queries, it selects the best-performing configuration in milliseconds—falling back to the video-level default if the question is completely unfamiliar.
Datasets
The authors evaluate Prysma using existing, established benchmarks (no new datasets are introduced):
- MSVD-QA & MSRVTT-QA: Two standard short-video, open-ended VQA datasets.
- EgoTimeQA: A challenging long-video dataset featuring rich, extended content.
- Video-MME: A multi-choice video benchmark used specifically to test cross-dataset transferability.
Key Insights and Ideas
- More frames aren't always better: Intuitively, feeding an LLM 32 frames instead of 4 should help, right? Not necessarily. As shown in the paper's motivation experiments, increasing frame counts helps some videos while actively hurting answer quality on others (while always costing more latency).
- Locality is everywhere: Prysma works because preferences aren't random. Inter-video visual consistency means visually similar videos tend to favor the same modalities, and inter-query semantic consistency means semantically similar questions favor the same knob settings.
- Video-level tuning hits a ceiling: Optimizing a single configuration for an entire video leaves an average of 14.6% (and up to 40%) answer quality on the table compared to query-level adaptation, because different questions about the same clip ask for fundamentally different types of details (e.g., reading a sign vs. tracking motion).
Key Results
Evaluated across two popular 7B video LLMs (LLaVA-Video-7B and VideoLLaMA2-7B) under strict TTFT SLOs of 0.5s, 1.0s, and 2.0s (with any SLO-violating answer scored as 0):
- Consistent Quality Gains: Within a 30-trial offline budget, Prysma improves answer quality (judged on a 0–5 scale) by 13%–82% over a Vision-Token-only baseline, and outperforms state-of-the-art system tuners like SCOOT (by 10%–47%), LLMConf (11%–48%), and OPPerTune (10%–41%).
- Shines on Long Videos: Gains are largest on the complex EgoTimeQA dataset, proving that adaptive multimodal fusion is critical when videos get long.
- Negligible Online Overhead & Strong Generalization: Online query adaptation takes just milliseconds. On strictly held-out (unseen) queries at a 1.0s SLO, Prysma still beats the strongest baselines by 18%–41%. It also scales cleanly to larger models (13B and 32B) and keeps SLO violation rates below 1% under standard 0.5s–2.0s targets.
Limitations and Future Work
While the main text defers deployment edge cases (such as storage footprint and cold-start mechanics) to the appendices rather than an explicit limitations section, two practical constraints are apparent from the system's design:
- Upfront Offline Cost: Prysma requires an offline tuning budget (e.g., 30 full-query-set trials plus multi-modality extraction) per uploaded video, relying on production query volume to amortize this initial compute and storage investment—though cross-video cold-starting helps mitigate this.
- Workload Recalibration: Because the pruner relies on profiled token-to-TTFT curves, changes in serving dynamics—such as switching to batched serving—require recalibrating the latency profile to maintain optimal SLO compliance.
Summary updated