计算机科学 > 计算与语言
[提交于 2025年5月22日 (v1),最后修订于 2026年11月24日 (此版本, v3)]
标题:TRIM: Achieving Extreme Sparsity with Targeted Row-wise Iterative Metric-driven Pruning
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:Large language models (LLMs) present substantial computational and memory challenges. Existing one-shot pruning methods often use a uniform sparsity target for all rows within a layer, which can be too coarse at high sparsity. This work introduces TRIM (Targeted Row-wise Iterative Metric-driven pruning), a forward-statistics-based wrapper that allocates different sparsity ratios to individual output rows while keeping model weights frozen. TRIM separates the choice of which weights to prune (scoring) from how many to prune in each row (allocation), and composes with existing scorers and layer-wise allocations. Across Qwen2.5, LLaMA-2, and OPT models, its largest gains occur at 70-80% sparsity. At 80%, adding TRIM to OWL reduces WikiText-2 perplexity from 348.48 to 180.67 for Qwen2.5-14B and from 6461.43 to 324.14 for OPT-13B. We conclude that fine-grained, row-wise allocation is an effective mechanism for substantially improving one-shot pruning quality in the extreme-sparsity regime. Code: https://github.com/flobk/TRIM.