arXiv:2412.02328cs.LG2024-12被引 5

FishLeg通过优化逆Fisher信息矩阵实现高效高稀疏率模型压缩。

Efficient Model Compression Techniques with FishLeg

  • 用元学习缓解逆FIM计算负担,支持灵活张量分解提升效率。
  • 在ResNet18/CIFAR-10上达95%稀疏度下84%准确率,优于基线。
  • 适合资源受限场景下的大模型轻量化部署,尤其高稀疏压缩需求者。

在众多领域,最成功的AI模型往往规模过大,难以在计算资源有限的设备上运行。为解决此问题,已有多种压缩方法被提出,包括在保持性能前提下将网络剪裁至高稀疏度的方法。表现最佳的剪枝技术通常利用二阶曲率信息(如Fisher信息矩阵估计)来评估权重重要性并预测删除后的最优补偿。然而,这些方法在高维参数空间中难以扩展,常需大量近似。本文提出基于Fisher-Legendre(FishLeg)优化器的新型二阶剪枝方法——FishLeg外科医生(FLS)。其核心是通过元学习对逆FIM操作进行摊销,带来多重优势:首先,参数化结构支持灵活张量分解,在不显著牺牲精度的前提下提升计算与内存效率,缓解多数二阶剪枝方法的可扩展性挑战;其次,直接估计逆FIM减少反演过程中随机性放大的敏感度,获得更精确估计;第三,该方法支持曲率的渐进式融入参数化,在渐进剪枝中实现更高效的估计精炼而非重新估计。实验表明,FishLeg在两种常见基线上表现更优,尤其在高稀疏度下:于ResNet18/CIFAR-10上实现95%稀疏度下84%准确率,远超基线OBS的60%;在TinyIM上80%稀疏度下达53%准确率,优于基线的48%。

原文摘要 · Abstract (English)

In many domains, the most successful AI models tend to be the largest, indeed often too large to be handled by AI players with limited computational resources. To mitigate this, a number of compression methods have been developed, including methods that prune the network down to high sparsity whilst retaining performance. The best-performing pruning techniques are often those that use second-order curvature information (such as an estimate of the Fisher information matrix) to score the importance of each weight and to predict the optimal compensation for weight deletion. However, these methods are difficult to scale to high-dimensional parameter spaces without making heavy approximations. Here, we propose the FishLeg surgeon (FLS), a new second-order pruning method based on the Fisher-Legendre (FishLeg) optimizer. At the heart of FishLeg is a meta-learning approach to amortising the action of the inverse FIM, which brings a number of advantages. Firstly, the parameterisation enables the use of flexible tensor factorisation techniques to improve computational and memory efficiency without sacrificing much accuracy, alleviating challenges associated with scalability of most second-order pruning methods. Secondly, directly estimating the inverse FIM leads to less sensitivity to the amplification of stochasticity during inversion, thereby resulting in more precise estimates. Thirdly, our approach also allows for progressive assimilation of the curvature into the parameterisation. In the gradual pruning regime, this results in a more efficient estimate refinement as opposed to re-estimation. We find that FishLeg achieves higher or comparable performance against two common baselines in the area, most notably in the high sparsity regime when considering a ResNet18 model on CIFAR-10 (84% accuracy at 95% sparsity vs 60% for OBS) and TinyIM (53% accuracy at 80% sparsity vs 48% for OBS).

模型压缩剪枝二阶优化高效推理

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。