arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2603.05172cs.LG
收藏

可训练的位级软量化用于输入特征压缩

Trainable Bitwise Soft Quantization for Input Feature Compression

University of Münster(穆尔斯特大学);University of Copenhagen(哥本哈根大学)

Karsten Schrödter, Jan Stenkamp, Nina Herrmann, Fabian Gieseke

AI总结:

本文提出了一种可训练的位级软量化层,用于压缩神经网络输入特征,通过Sigmoid函数近似阶跃函数,实现高效且准确的量化,从而在保持精度的同时显著减少数据传输量。

摘要:

随着物联网背景下机器学习应用的快速增长,需要新的方法来优化有限的计算和内存资源的使用。尽管在减少模型大小和提高效率方面取得了显著进展,许多应用仍然需要远程服务器提供所需资源。然而,此类方法依赖于将数据从边缘设备传输到远程服务器,这可能由于带宽、延迟或能量限制而不总是可行。我们提出了一种任务特定的、可训练的特征量化层,用于压缩神经网络的输入特征。这可以显著减少从设备传输到远程服务器的数据量。特别是,该层允许每个输入特征被量化为用户定义的位数,从而在数据收集时实现简单的设备端压缩。该层设计用于用Sigmoid函数近似阶跃函数,从而实现可训练的量化阈值。通过将多个Sigmoid函数的输出连接起来,引入为位级软量化,当与神经网络结合时,可以实现可训练的量化值。我们比较了我们的方法与全精度推断以及几种量化基线方法。实验表明,我们的方法在保持接近全精度模型的精度水平的同时,优于标准量化方法。特别是,根据数据集的不同,压缩因子可达到32位输入的5倍至16倍,而不会显著损失性能。

英文摘要:

The growing demand for machine learning applications in the context of the Internet of Things calls for new approaches to optimize the use of limited compute and memory resources. Despite significant progress that has been made w.r.t. reducing model sizes and improving efficiency, many applications still require remote servers to provide the required resources. However, such approaches rely on transmitting data from edge devices to remote servers, which may not always be feasible due to bandwidth, latency, or energy constraints. We propose a task-specific, trainable feature quantization layer that compresses the input features of a neural network. This can significantly reduce the amount of data that needs to be transferred from the device to a remote server. In particular, the layer allows each input feature to be quantized to a user-defined number of bits, enabling a simple on-device compression at the time of data collection. The layer is designed to approximate step functions with sigmoids, enabling trainable quantization thresholds. By concatenating outputs from multiple sigmoids, introduced as bitwise soft quantization, it achieves trainable quantized values when integrated with a neural network. We compare our method to full-precision inference as well as to several quantization baselines. Experiments show that our approach outperforms standard quantization methods, while maintaining accuracy levels close to those of full-precision models. In particular, depending on the dataset, compression factors of $5\times$ to $16\times$ can be achieved compared to $32$-bit input without significant performance loss.

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

↑