arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2610.14703cs.LG
收藏

面向机器学习模型压缩的线性时间非局部编解码器放置

Linear-Time Non-Local Codec Placement for Machine Learning Model Compression

Axelera AI(阿克塞勒拉人工智能公司)

Matteo Spallanzani

AI总结:

该研究提出一种线性时间算法,将编解码器算子放置到源计算图以适配目标硬件,通过绝对支配节点确定编解码器位置,在四个模型上使操作数流量降低24%-44%,提升了模型压缩的流量增益。

摘要:

端侧推理对模型存储和操作数流量施加了约束,因此受益于压缩的操作数表示,这需要使用编码和解码算子。然而,编解码器算子的朴素放置会抵消压缩所追求的操作数流量增益。在这项工作中,我提出了一种算法,用于将编解码器算子放置到源计算图中,使其与目标硬件兼容。该图的边被着色,使得每个诱导子图都是弱连通的,且具有一个最大节点,该节点既后支配所有子图输入,又支配所有子图输出;这个被称为“绝对支配节点”的唯一节点,是观察流经子图的流量并学习参数化编解码器算子的自然位置。该算法的时间复杂度与源图的大小呈线性关系。与朴素的局部编解码器放置相比,该算法在四个模型上减少了建模的操作数流量24%至44%,其中SigLIP减少24%,SmolLM2减少34%。

英文摘要:

On-device inference imposes constraints on model storage and operand traffic and thus benefits from compressed operand representations, which mandate the use of encoding and decoding operators. However, na\"ıve placement of codec operators can cancel the operand traffic gains sought from compression. In this work, I present an algorithm to place codec operators into a source computational graph to make it compatible with target hardware. The edges of the graph are colored so that each induced subgraph is weakly connected and has a maximal node that both postdominates all subgraph inputs and dominates all subgraph outputs; this unique node - dubbed the $\textit{absolute dominator}$ - is the natural location to observe the traffic flowing through the subgraph and learn parametric codec operators. The algorithm's time complexity is linear in the source graph's size. With respect to na\"ıve local codec placement, the algorithm reduces modeled operand traffic by $24\%$-$44\%$ across four models, including $24\%$ on SigLIP and $34\%$ on SmolLM2.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑