OSSCAR: One-Shot Structured Pruning in Vision and Language Models with Combinatorial Optimization

Xiang Meng, Shibal Ibrahim, Kayhan Behdin, Hussein Hazimeh, Natalia Ponomareva, Rahul Mazumder · DOI

Introduction

As Large Language Models (LLMs) and Vision Transformers (ViTs) continue to scale, the computational cost of inference has become a significant barrier to deployment. Model pruning—the process of removing redundant weights—offers a potential solution. However, a critical trade-off exists: while unstructured pruning (removing individual weights) achieves high sparsity with minimal accuracy loss, it requires specialized hardware for speedups. Conversely, structured pruning (removing entire neurons, channels, or attention heads) provides immediate speedups on standard GPUs but often leads to a severe degradation in model accuracy.

To mitigate this accuracy loss, traditional methods rely on expensive fine-tuning or retraining phases, which are computationally infeasible for models with billions of parameters. OSSCAR (One-Shot Structured Compression AlgoRithm) addresses this by introducing a scalable combinatorial optimization framework that enables high-quality structured pruning in a "one-shot" manner—without any retraining—even for models as large as 30 billion parameters.

Methodology: Combinatorial Layer-wise Reconstruction

OSSCAR reformulates structured pruning as a layer-wise reconstruction problem. The objective is to select a subset of structures (e.g., convolutional channels or attention heads) that minimizes the squared error between the original layer's output and the pruned layer's output.

Problem Reformulation and Scalability

A key innovation of OSSCAR is its ability to scale. Standard optimization approaches for pruning often treat every weight as an independent variable, leading to an explosion in complexity. OSSCAR identifies groups of variables that share identical quadratic coefficients within the optimization objective. This insight allows the problem to be downscaled from millions of variables to tens of thousands, making it tractable for large-scale models on commodity hardware.

Structured representation of convolutional weights where groups (channels) are pruned together.

The framework employs a local search algorithm that iteratively refines the selection of structures. By using low-rank matrix updates, OSSCAR can efficiently evaluate the impact of adding or removing specific components without re-solving the entire optimization problem. This allows the algorithm to explore the search space rapidly and target complex components like attention heads.

The attention block architecture, highlighting the projection and head structures pruned by OSSCAR.

Experimental Evaluation

The researchers evaluated OSSCAR across a diverse set of benchmarks in both vision and language domains:

  • Vision Models: Testing on ResNet50 (ImageNet) and MobileNetV1 demonstrated that OSSCAR provides a significant accuracy boost (up to 10%) over previous one-shot methods at a 2× inference speedup.
  • Language Models: Using the OPT model family (1.3B to 30B parameters), OSSCAR achieved state-of-the-art results. For the OPT-2.7B model, it delivered 125× lower test perplexity compared to the previous best method, ZipLM, at the same speedup level.

Key Insights and Efficiency

The primary contribution of OSSCAR is its unprecedented scalability. While previous state-of-the-art methods were limited to models under 400 million parameters, OSSCAR successfully prunes 30B parameter models on a single 32GB GPU. Furthermore, the algorithm is 6× to 8× faster than competing methods, capable of processing a 6.7B parameter model in approximately two hours.

These results suggest that high-quality "one-shot" pruning is achievable if the layer-level optimization is sufficiently robust, potentially eliminating the need for global retraining in many deployment scenarios.

Limitations and Future Work

Despite its success, OSSCAR faces the "pruning cliff"—a point where accuracy drops sharply if more than 50-60% of structures are removed. Additionally, the method's performance is tied to the quality of the calibration data used during optimization. Future research may explore extending this combinatorial approach to quantization, aiming for a unified framework for extreme model compression.

Summary updated

BibTeX
@inproceedings{meng2024osscar,
  author = {Xiang Meng and Shibal Ibrahim and Kayhan Behdin and Hussein Hazimeh and Natalia Ponomareva and Rahul Mazumder},
  title = {{OSSCAR: One-Shot Structured Pruning in Vision and Language Models with Combinatorial Optimization}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=ZctlF8RlV4},
}
Figure