Abstract
Large Vision-Language Models (VLMs) face significant deployment challenges on resource-constrained edge devices due to high memory requirements and I/O latency during task switching. This paper presents an on-demand multi-task sparsity framework that optimizes model structures across tasks and employs predictive pre-loading. Evaluated on an autonomous driving platform, the framework achieves a 6.6× average speedup in task switching and reduces GPU memory usage by up to 46% while maintaining model accuracy.
Introduction
The deployment of large-scale AI models on edge devices, such as autonomous vehicle onboard computers, is often hindered by the "heavy" nature of these models. While individual task performance can be improved through pruning or early-exiting, these methods often introduce a significant bottleneck: I/O overhead. When a system switches between diverse tasks—for instance, transitioning from pedestrian detection to traffic light interpretation—it must frequently fetch new sparse weights from the CPU or disk to the GPU. This data movement latency can make real-time multi-tasking unfeasible.
To address this, we propose a framework that treats sparsity as a system-level optimization rather than just a computational trick. By aligning sparse structures across tasks and implementing hierarchical memory management, we significantly reduce the "cold-start" latency associated with task transitions.
Methods: System Architecture and Sparsity Alignment
The proposed system utilizes a three-pronged approach to optimize multi-task execution on the edge.
- On-Demand Split Weight Loading: Instead of loading a monolithic model file, the architecture partitions the model into "block-level shards." This allows the system to load only the specific Transformer blocks required for the current task, enabling fine-grained, incremental updates.
- Overlap-Aware Sparsity Alignment: To minimize the amount of data moved during task switches, we employ a "shared-pool preference" algorithm. This encourages different tasks to reuse the same sparse blocks whenever possible, maximizing structural overlap without compromising accuracy.
- Hierarchical Tiering: Weights are managed across three levels: Level-1 (active in GPU memory), Level-2 (high-correlation blocks in CPU cache), and Level-3 (persistent storage). This hierarchy, combined with predictive pre-loading, effectively hides disk latency.
Task Dynamics and Predictive Pre-loading
Real-world applications like autonomous driving exhibit predictable patterns in task switching. By analyzing these sequences, the system can anticipate which tasks are likely to follow the current one.
As shown in Figure 1, certain transitions (e.g., between Vehicle Detection and Lighting Decision) occur more frequently. Our "Correlation-Aware Priority Pre-loading" strategy leverages these statistics to background-load likely-needed blocks into the CPU cache, ensuring they are ready for rapid transfer to the GPU when needed.
Experimental Evaluation
The researchers built a multi-dataset driving benchmark by combining nuScenes, CODA, and Bosch Small Traffic Lights datasets. These were unified into five distinct perception tasks: Traffic Light, Car, Obstacle, Person, and Bicycle detection. Testing was conducted on a real autonomous vehicle equipped with an NVIDIA RTX 3090 running the Autoware.Universe stack.
Key Results: * Switching Speed: On LLaVA-7B, the framework reduced task-switching latency from ~2.4 seconds to roughly 100–300 ms. In one specific transition (Traffic Light to Car), it achieved a 9.8× speedup. * Memory Efficiency: GPU memory utilization dropped from ~13.4 GB to ~7.3 GB (a 46% saving), freeing up critical space for other autonomous driving modules like path planning. * Accuracy: Despite the high sparsity (up to 50% of blocks skipped), the models maintained or even improved accuracy compared to baselines, likely due to the fine-tuning inherent in the sparsity selection process.
Conclusion and Future Work
This work demonstrates that for edge deployment, data movement is a bigger enemy than FLOPs. By strategically aligning task-specific sparse structures and utilizing hierarchical memory, we can achieve near-real-time multi-tasking capabilities. Future research will explore finer-grained granularity (such as individual attention heads) and more sophisticated predictive models for task transitions in highly complex or unpredictable environments.
Summary updated