TL;DR
ATOM is a novel on-device system that accelerates multi-stage video-language pipelines on smartphones by decomposing a Vision-Language Model (VLM) into persistent, reusable modules. By keeping a shared visual encoder and language decoder in memory across tasks like captioning and script generation, ATOM eliminates redundant model loading and enables parallel execution. This reuse-centric design cuts end-to-end latency by up to 33% on commodity mobile devices while staying within strict 6GB RAM limits.
What Problem Does This Paper Address?
Emerging mobile applications, such as natural-language video retrieval and automated video assembly, rely on multi-stage AI pipelines. A typical pipeline involves video encoding, caption generation, and downstream reasoning (like generating a script to stitch clips together). Running these locally is highly desirable for user privacy and offline availability.
However, deploying these pipelines on mobile devices is bottlenecked by memory and latency constraints. Standard approaches use separate, specialized models for each subtask. Because a typical smartphone only has 6 to 8GB of RAM, these models cannot all fit into memory at once. The device is forced to load a model, process the data, unload it, and load the next model. This sequential "memory thrashing" inflates end-to-end latency, drains the battery, and prevents the system from processing multiple video clips in parallel.
Methods
To solve this pipeline-level inefficiency, the authors introduce ATOM, a system built on three core design principles:
- Modularization: Instead of using separate models for different tasks, ATOM uses a single, highly capable VLM. The authors modified the open-source mPLUG2 model by swapping its BERT text decoder for a 1B-parameter Llama 3.2 autoregressive decoder (dubbed "mPLUG2+"). They decoupled the visual encoder and the language decoder so they can be called independently.
- Persistent Reuse: Both the visual encoder and the language decoder are loaded into memory once and kept there. The exact same Llama decoder used to generate captions for video clips is reused later in the pipeline to generate the final video assembly script.
- Parallelism: Because the modules are decoupled and thread-safe, execution can overlap. While the text decoder is generating a caption for video clip #1, the visual encoder can simultaneously process video clip #2.
- Quantization: To fit the 1.4B parameter model into mobile memory, ATOM applies dynamic 8-bit integer quantization to the memory-heavy Linear and Embedding layers using TorchAO, followed by PyTorch JIT tracing optimizations for mobile deployment.
Datasets
The authors fine-tuned and evaluated their modified mPLUG2+ model using three standard video-language datasets:
- MSR-VTT: 10K YouTube videos with 200K captions.
- MSVD: 1,970 YouTube clips with captions.
- DiDeMo: 10K Flickr videos paired with text descriptions. No new datasets were introduced; these were used to benchmark video captioning and retrieval performance against the original mPLUG2 model.
Key Insights and Ideas
- Pipeline optimization beats isolated model optimization: Prior work mostly focuses on making individual models smaller or faster. ATOM demonstrates that optimizing the flow of the pipeline—specifically how models are loaded and scheduled—yields massive latency wins without requiring further lossy compression.
- One strong model is better than multiple weak ones: Counterintuitively, replacing lightweight, task-specific models with a single, heavier language decoder (Llama 3.2 1B) actually saves memory and time. It avoids context switching and reloading overheads while applying a stronger linguistic prior to all text-centric subtasks.
- Parallelism offsets memory costs: Keeping both the encoder and decoder in memory simultaneously increases peak activation memory. However, ATOM offsets this by eliminating the temporary memory buffers that are normally created when constantly swapping models in and out. The net memory increase is practically zero.
Key Results
- Speedup: ATOM achieved a 27–33% reduction in end-to-end latency for video assembly and retrieval tasks across commodity phones (Google Pixel 5a, Pixel 8a, Samsung Galaxy S23).
- Memory Efficiency: Peak RAM usage increased by a negligible 0.76% (~40MB) compared to the sequential baseline. The entire pipeline comfortably fits within a 6GB RAM budget (total footprint ~5.3GB).
- Accuracy: The upgraded mPLUG2+ model actually outperformed the original mPLUG2 (e.g., +2.8 to 3.7 CIDEr score in captioning). Applying 8-bit quantization caused only a marginal performance drop ($\le$ 1.5 CIDEr in captioning, $\le$ 2.3 Recall@1 in retrieval), preserving high-quality outputs.
- Energy Savings: The authors estimate a ~46% reduction in energy consumption per pipeline execution on a Pixel 5a, largely due to reduced CPU active time.
Limitations and Future Work
- Hardware Constraints: ATOM was evaluated primarily on mobile CPUs. At the time of writing, the quantization framework (TorchAO) lacked robust support for executing these specific operations on mobile GPUs or NPUs.
- Quantization Limits: The authors noted that pushing quantization below 8-bit resulted in unacceptable accuracy degradation. Furthermore, Conv3D layers in the visual encoder were excluded from quantization due to unreliable library support, forcing the system to rely on frame downsampling to save compute.
- Future Work: The authors suggest that ATOM's reuse-centric architecture can serve as a backbone for a broader range of multimodal edge applications, such as video summarization and on-device visual question answering (VideoQA). Adapting the system to leverage mobile NPUs as software support matures is a clear next step.
Summary updated