FLoC: Facility Location-Based Efficient Visual Token Compression for Long Video Understanding

Janghoon Cho, Jungsoo Lee, Munawar Hayat, Kyuwoong Hwang, Fatih Porikli, Sungha Choi

Introduction: The Token Explosion Problem

Large Multimodal Models (LMMs) have achieved remarkable success in understanding images and short video clips. However, they hit a significant computational wall when processing long-form videos, such as hour-long lectures or day-long surveillance footage. The core issue is token explosion.

When a video is processed, each frame is converted into hundreds of "visual tokens." For extended sequences, this data volume quickly exceeds the memory limits (context window) of most standard LMMs. To fit long videos into these models, researchers must compress or prune the tokens. Unfortunately, existing methods often fall short:

  • Naive Sampling: Uniformly skipping frames might miss the exact second a critical event occurs.
  • Clustering (e.g., K-means): These methods are computationally heavy and tend to focus on the most "dense" or common visual features, often discarding rare but vital details (like a specific object on a table).
  • Retraining: Many compression techniques require training a new model from scratch, limiting their portability across different AI architectures.

To address this, researchers introduce FLoC (Facility Location-based Compression), a training-free, plug-and-play framework that intelligently "slims down" visual data while preserving critical information.

Methods: A Facility Location Approach

FLoC treats visual token selection as a Facility Location problem—a classic mathematical optimization approach typically used to find the best locations for resources (like warehouses) to serve a wider geographic area. In this context, the "facilities" are the selected tokens, and the "customers" are the entire set of original video tokens.

FLoC System Architecture

The FLoC framework operates on several key principles:

  1. Facility Location Function: FLoC uses a submodular function to select a subset of tokens that effectively "covers" the information of the entire original set. It ensures that every original token is represented by at least one highly similar selected token.
  2. Representativeness and Diversity: Unlike standard clustering, which averages out features, FLoC's objective naturally balances keeping "typical" tokens (representativeness) with "unique" tokens (diversity).
  3. Lazy Greedy Algorithm: Finding the absolute perfect subset is computationally impossible (NP-hard). Instead, FLoC employs a "lazy greedy" algorithm that exploits the mathematical property of "diminishing returns." By using a priority queue to avoid recalculating every possibility at every step, it achieves near-optimal selection with massive speed gains.
  4. Temporal Blocking: To handle streaming or extremely long videos efficiently, FLoC processes the video in small temporal blocks (denoted by length $T$). This makes it highly suitable for real-time applications.

Key Insights: Efficiency and "Needle" Retrieval

FLoC's design yields several major advantages for long video understanding:

  • The "Needle-in-a-Haystack" Advantage: Because FLoC inherently prioritizes diversity, it excels at "Needle QA" tasks. It is much more likely to retain a token representing a small, fleeting object (the "needle") that standard clustering algorithms would discard as background noise.
  • Training-Free & Model-Agnostic: FLoC requires absolutely no fine-tuning. It acts as a plug-and-play module that can be seamlessly integrated into existing video-LMMs like Qwen2-VL or InternVL.
  • Efficiency is King: In long video processing, a compression algorithm that takes longer than the video itself is impractical. FLoC is exceptionally fast, operating roughly 10x faster than traditional clustering methods like K-means or Spectral Clustering.
Performance vs. Compression Time

Performance and Results

The researchers evaluated FLoC across four major long-video benchmarks: Video-MME (diverse real-life footage), MLVU (complex storyline interpretation), LongVideoBench (lectures and surveillance), and EgoSchema (first-person reasoning).

  • Superior Accuracy: FLoC consistently outperformed recent state-of-the-art compression techniques, such as LongVU and DyCoke, across all tested benchmarks.
  • Robustness at High Compression: Even when compressing tokens down to 1/32 of their original count, FLoC maintained significantly higher accuracy than its competitors. For instance, on the MLVU benchmark at a high compression ratio, FLoC achieved a 64.08% score, while most baselines hovered in the mid-to-high 50s.
  • Qualitative Success: Qualitative analysis demonstrated FLoC's ability to identify minute details—like a specific water bottle on a table or a person wearing sunglasses—that other methods pruned away, directly leading to correct model responses.

Limitations and Future Work

The primary hyperparameter in the FLoC framework is the Block Length ($T$). This introduces a trade-off: if the block is too short, the model cannot identify redundancies across longer time spans; if it is too long, the computational cost of the similarity matrix increases.

Currently, FLoC uses a fixed block length. The authors suggest that future iterations could incorporate adaptive scene detection to dynamically adjust the block size based on the video's content density—for example, using longer blocks for a static lecture and shorter blocks for a fast-paced action sequence.

Summary updated

BibTeX
@inproceedings{cho2026floc,
  author = {Janghoon Cho and Jungsoo Lee and Munawar Hayat and Kyuwoong Hwang and Fatih Porikli and Sungha Choi},
  title = {{FLoC: Facility Location-Based Efficient Visual Token Compression for Long Video Understanding}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=tPhcrP75OP},
}
Figure