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

硬件与软件平台推断

Hardware and Software Platform Inference

Imperial College London(帝国理工学院);University of Cambridge(剑桥大学);Google DeepMind(谷歌DeepMind)

Cheng Zhang, Hanna Foerster, Robert D. Mullins, Yiren Zhao, Ilia Shumailov

AI总结:

本文提出硬件与软件平台推断方法 HSPI,通过分析黑盒模型的输入输出数值模式,识别其底层 GPU 架构和软件栈,实验表明白盒下准确率达 83.9%-100%,黑盒下比随机猜测高最多 3 倍。

摘要:

如今,由于前期硬件基础设施和能源成本高昂,购买大语言模型(LLM)推理服务而非自行托管已成为一种常见的商业做法。然而,作为买方,目前没有任何机制可以验证所宣传服务的真实性,包括其实际使用的服务硬件平台,例如是否真的使用 NVIDIA H100 来提供服务。此外,有报告表明,模型提供商可能会提供与宣传模型略有不同的模型,通常是为了让它们能在更便宜的硬件上运行。这样一来,客户为在更昂贵硬件上获得能力更强模型的服务支付了溢价,最终却可能由更便宜硬件上的(可能能力较弱的)更廉价模型来提供服务。在本文中,我们提出了硬件与软件平台推断(HSPI)——一种仅基于黑盒机器学习模型的输入输出行为来识别其底层 GPU 架构和软件栈的方法。我们的方法利用不同 GPU 架构和编译器之间的固有差异来区分不同的 GPU 类型和软件栈。通过分析模型输出中的数值模式,我们提出了一个分类框架,能够准确识别用于模型推理的 GPU 以及底层软件配置。我们的研究结果证明了从黑盒模型推断 GPU 类型的可行性。我们在不同真实硬件上服务的模型上评估了 HSPI,发现在白盒设置下,我们能够以 83.9% 到 100% 的准确率区分不同 GPU。即使在黑盒设置下,我们取得的准确率也比随机猜测高出最多 3 倍。我们的代码可在 https://github.com/ChengZhang-98/HSPI 获取。

英文摘要:

It is now a common business practice to buy access to large language model (LLM) inference rather than self-host, because of significant upfront hardware infrastructure and energy costs. However, as a buyer, there is no mechanism to verify the authenticity of the advertised service including the serving hardware platform, e.g. that it is actually being served using an NVIDIA H100. Furthermore, there are reports suggesting that model providers may deliver models that differ slightly from the advertised ones, often to make them run on less expensive hardware. That way, a client pays premium for a capable model access on more expensive hardware, yet ends up being served by a (potentially less capable) cheaper model on cheaper hardware. In this paper we introduce hardware and software platform inference (HSPI) -- a method for identifying the underlying GPU architecture and software stack of a (black-box) machine learning model solely based on its input-output behavior. Our method leverages the inherent differences of various GPU architectures and compilers to distinguish between different GPU types and software stacks. By analyzing the numerical patterns in the model's outputs, we propose a classification framework capable of accurately identifying the GPU used for model inference as well as the underlying software configuration. Our findings demonstrate the feasibility of inferring GPU type from black-box models. We evaluate HSPI against models served on different real hardware and find that in a white-box setting we can distinguish between different GPUs with between $83.9\%$ and $100\%$ accuracy. Even in a black-box setting we achieve results that are up to 3x higher than random guess accuracy. Our code is available at https://github.com/ChengZhang-98/HSPI.

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

↑