ONNXPruner: 基于ONNX的通用模型剪枝适配器
ONNXPruner: ONNX-Based General Model Pruning Adapter
AI总结:
针对现有模型剪枝算法跨模型、跨平台落地难的问题,提出基于ONNX的通用剪枝适配器ONNXPruner,借助节点关联树适配不同架构并实现树级评估,在多模型多数据集上验证了其适配性与剪枝效能,推动剪枝技术实用化。
摘要:
当前模型剪枝领域的研究进展主要聚焦于新算法的开发与基准性能的提升,但这些算法在不同模型与平台上的实际落地应用仍是一项重大挑战。为解决该问题,我们提出ONNXPruner,一款专为ONNX(开放神经网络交换)格式模型设计的通用剪枝适配器。ONNXPruner简化了在各类深度学习框架与硬件平台之间的适配流程。其创新点在于采用节点关联树,可自动适配不同的模型架构;这类树结构能厘清节点间的结构关联,为剪枝过程提供指引,尤其能凸显剪枝对互联节点的影响。此外,我们提出了一种树级评估方法,依托节点关联树,该方法可实现超越传统单节点评估的全面分析,无需额外操作即可提升剪枝性能。在多个模型与数据集上开展的实验证实,ONNXPruner具备出色的适配性与更高的剪枝效能。本研究旨在推动模型剪枝技术的实际应用落地。
英文摘要:
Recent advancements in model pruning have focused on developing new algorithms and improving upon benchmarks. However, the practical application of these algorithms across various models and platforms remains a significant challenge. To address this challenge, we propose ONNXPruner, a versatile pruning adapter designed for the ONNX format models. ONNXPruner streamlines the adaptation process across diverse deep learning frameworks and hardware platforms. A novel aspect of ONNXPruner is its use of node association trees, which automatically adapt to various model architectures. These trees clarify the structural relationships between nodes, guiding the pruning process, particularly highlighting the impact on interconnected nodes. Furthermore, we introduce a tree-level evaluation method. By leveraging node association trees, this method allows for a comprehensive analysis beyond traditional single-node evaluations, enhancing pruning performance without the need for extra operations. Experiments across multiple models and datasets confirm ONNXPruner's strong adaptability and increased efficacy. Our work aims to advance the practical application of model pruning.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。