Introduction
The explosion of video data from traffic cameras, drones, and retail sensors has led to a surge in video analytics. However, most existing systems treat video as a "black box" at the storage layer: a single encoded file that must be decoded in its entirety to access even a tiny sub-region of a frame. This creates a massive bottleneck. If a query only requires a license plate in the bottom-left corner of a 4K frame, the system still pays the computational tax to decode the sky, trees, and road in the rest of the image. TASM (Tile-Based Storage Manager) addresses this gap in "semantic predicate pushdown" by enabling the filtering of data before it reaches expensive decoding stages.
System Design and Methodology
TASM introduces a novel approach to video storage by leveraging spatial random access. It exploits a feature in modern codecs (like HEVC and AV1) called "tiles," which allow a frame to be partitioned into a grid of rectangular regions that have no spatial dependencies and can be decoded independently.
Cost-Based Layout Optimization
TASM does not rely on a static grid. Instead, it uses a cost function that balances the benefit of decoding fewer pixels against the overhead of managing more tiles. The researchers found that non-uniform, fine-grained layouts—which tile tightly around specific objects of interest—consistently outperform standard uniform grids, especially in sparse video scenes.
Incremental and Adaptive Tuning
Since query workloads are often unknown at the time of ingestion, TASM uses a "regret-based" approach inspired by database cracking. The system tracks how much better an alternative tile layout would have performed for past queries. When this cumulative "regret" exceeds the cost of re-encoding, TASM physically reorganizes that segment of the video. For new videos, TASM uses inexpensive "cheap predicates" (like background subtraction or motion vectors) to bootstrap an initial efficient tile layout before heavy machine learning models are deployed.
Key Insights: The "Wasted Pixel" Problem
In many analytics tasks, objects of interest occupy less than 20% of the frame. Decoding the other 80% is the primary source of inefficiency in current video pipelines. TASM optimizes layouts at the Group of Pictures (GOP) level (typically 1-second chunks), allowing the storage manager to "follow" objects as they move across the screen over time. This architectural shift applies concepts usually reserved for SQL databases—like regret minimization and online indexing—to the physical layout of compressed bitstreams.
Performance Evaluation
The researchers evaluated TASM using a diverse set of real and synthetic video datasets, including Visual Road (traffic footage), MOT16 (city scenes), and high-resolution 4K footage from Netflix and XIPH.
Results
- Subframe Selection: TASM achieved an average speedup of 51%, with peaks up to 94% for specific queries compared to untiled video.
- Object Detection: For the "full scan" phase where a cheap model filters frames, TASM improved throughput by up to 2×.
- Visual Quality: Despite the potential for tiling artifacts, TASM maintained high visual quality, with non-uniform layouts averaging a PSNR of 40 dB (well above the standard "acceptable" threshold of 30 dB).
- Storage Efficiency: By optimizing layouts for 1-second fragments, TASM maximizes performance without significant storage overhead compared to standard encoding.
Conclusion
TASM demonstrates that bringing spatial awareness to the storage layer can significantly accelerate video analytics. By solving the "wasted pixel" problem through adaptive tiling and regret-based optimization, TASM doubles the throughput of object detection pipelines while maintaining high visual fidelity. Future work may involve parallelizing tile decoding on GPUs and extending the system to support more complex geometric masks beyond rectangular bounding boxes.
Summary updated