用于设备端语义音频生成的量化原生运行时
A Quantized Native Runtime for On-Device Semantic Audio Generation
AI总结:
研究针对设备端语义音频生成,提出无依赖原生运行时aria,通过量化研究降低内存需求,经实验证明8位精度无质量损失,4位有小成本但能满足特定设备运行大模型,且生成速度快,还具备激活引导功能,为设备端语义音频提供实用基础。
摘要:
语义音频应用越来越需要在通用和嵌入式硬件上进行可控生成,而非依赖于数据中心堆栈。我们提出了aria,这是一个无依赖的原生运行时,可在普通GPU、仅CPU的机器和Raspberry Pi 5上运行Stable Audio~3完整的文本到音乐管道,无需底层Python或深度学习框架。主要贡献是对量化的研究,以较低数值精度运行模型以适应严格内存预算。运行时拥有每个内部张量,还可进行激活引导。通过三种输出度量判断质量成本,8位精度无质量损失且大幅削减内存,4位有小成本但可在8GB Pi上运行12亿参数模型。aria与官方实现相比,生成速度匹配或更快。案例研究表明其可生成具有味道关联的音乐,为设备端语义音频提供实用基础。
英文摘要:
Semantic audio applications increasingly require controllable generation on commodity and embedded hardware rather than through framework-heavy datacenter stacks. We present \textit{aria}, a dependency-free native runtime that runs the complete text-to-music pipeline of Stable Audio~3 (SA3) on ordinary GPUs, CPU-only machines, and a Raspberry~Pi~5, with no Python or deep-learning framework underneath. Our main contribution is a study of quantization: running the model at lower numerical precision to fit tight memory budgets, saving memory in place rather than adding to it. Because the runtime owns every internal tensor, it also exposes activation steering, a low-cost way to steer what the model generates. We judge the quality cost with three independent measures of the output (prompt adherence, overall audio quality, taste preservation), each compared against the ordinary variation between random seeds. Eight-bit precision shows no measurable quality loss on any measure while sharply cutting memory, and it is the fastest mode on the GPU; four-bit adds a small, bounded cost but shrinks the footprint enough to run the $1.2$-billion-parameter model on an $8$\,GB Pi. Against the official implementation, aria matches or exceeds generation speed and starts about seven times faster. A case study of the steering interface generates music carrying taste associations (\emph{sonic seasoning}), with genuine but bounded control for a subset of attributes. These results make a compact, quantized runtime with built-in control a practical basis for on-device semantic audio in Internet-of-Sounds settings. The \textit{aria} runtime is released at https://github.com/matteospanio/aria.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。