面向边缘设备室内定位的Transformer与Mamba模型量化与蒸馏的TinyML优化
Optimising TinyML with Quantization and Distillation of Transformer and Mamba Models for Indoor Localisation on Edge Devices
AI总结:
本文针对边缘设备室内定位需求,结合量化、知识蒸馏技术压缩Transformer模型,同时提出基于Mamba的紧凑状态空间架构,实现了在低功耗MCU受限内存下的高精度定位,为医疗等场景的低功耗隐私定位提供可行方案。
摘要:
本文针对资源受限的边缘设备,提出了轻量高效的机器学习模型(TinyML),专门用于设备端室内定位。传统室内定位方法依赖对可穿戴设备等低功耗设备传输的数据进行集中式远程处理,而将该任务迁移至边缘设备本身可带来诸多优势,包括延长电池续航、增强隐私保护、降低延迟与减少运营成本,这些特性对健康监测等常见应用至关重要。\n本研究聚焦模型压缩技术,包括量化与知识蒸馏,旨在大幅缩减模型尺寸的同时保持高预测性能。我们以一款大型先进的基于transformer的模型为基础,力求将其部署在低功耗微控制器单元(MCU)中。此外,我们还提出了一种基于状态空间的架构,采用Mamba作为transformer的更紧凑替代方案。\n实验结果表明,量化后的transformer模型在64KB RAM的约束下表现优异,实现了模型尺寸与定位精度的有效平衡。此外,紧凑的Mamba模型在更严苛的约束(如32KB RAM)下无需模型压缩仍具备出色性能,是资源更受限环境的可行选择。我们证明,通过所提出的框架,将先进的室内定位模型部署到内存受限的低功耗MCU上是可行的。这类TinyML模型在医疗保健领域的应用有望革新患者监测方式,在提供准确实时位置数据的同时,最大限度降低功耗、提升数据隐私性、改善延迟并减少基础设施成本。
英文摘要:
This paper proposes small and efficient machine learning models (TinyML) for resource-constrained edge devices, specifically for on-device indoor localisation. Typical approaches for indoor localisation rely on centralised remote processing of data transmitted from lower powered devices such as wearables. However, there are several benefits for moving this to the edge device itself, including increased battery life, enhanced privacy, reduced latency and lowered operational costs, all of which are key for common applications such as health monitoring. The work focuses on model compression techniques, including quantization and knowledge distillation, to significantly reduce the model size while maintaining high predictive performance. We base our work on a large state-of-the-art transformer-based model and seek to deploy it within low-power MCUs. We also propose a state-space-based architecture using Mamba as a more compact alternative to the transformer. Our results show that the quantized transformer model performs well within a 64 KB RAM constraint, achieving an effective balance between model size and localisation precision. Additionally, the compact Mamba model has strong performance under even tighter constraints, such as a 32 KB of RAM, without the need for model compression, making it a viable option for more resource-limited environments. We demonstrate that, through our framework, it is feasible to deploy advanced indoor localisation models onto low-power MCUs with restricted memory limitations. The application of these TinyML models in healthcare has the potential to revolutionize patient monitoring by providing accurate, real-time location data while minimizing power consumption, increasing data privacy, improving latency and reducing infrastructure costs.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。