POP: Online Structural Pruning Enables Efficient Inference of Large Foundation Models
Abstract
Large foundation models (LFMs) achieve strong performance through scaling, yet current structural pruning methods derive fixed pruning decisions during inference, overlooking sparsity patterns that emerge in autoregressive token generation. We propose POP (Partition-guided Online Pruning), an efficient online structural pruning framework that enables context-conditioned dynamic pruning with low, tunable computational overhead. POP partitions model channels into retained, candidate, and pruned regions, where prefilling defines a batch-shared coarse pruning partition, and decoding generates a per-sample fine-grained mask within the candidate region, avoiding full-channel re-evaluation. The coarse pruning partition preserves consistently important weights, while the fine-grained masking provides context-conditioned variation during decoding. Moreover, POP is a lightweight, plug-and-play method that requires no offline calibration, retraining, or learned predictors. Extensive evaluations across diverse LFMs, including large language models (LLMs), mixture-of-experts models (MoEs), and vision–language models (VLMs), demonstrate that POP achieves competitive accuracy on short- form QA tasks and strong generation performance relative to existing structural pruning baselines, while maintaining efficient inference. Our code is available at https://github.com/Yi1-Chen/POP.