arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2510.16028cs.CRcs.AIcs.LGcs.SYeess.SY
收藏

TAO:面向浮点神经网络的容忍感知乐观验证

TAO: Tolerance-Aware Optimistic Verification for Floating-Point Neural Networks

Princeton University(普林斯顿大学);HKUST (GZ)(香港科技大学(广州));University of Illinois Urbana-Champaign(伊利诺伊大学厄巴纳-香槟分校)

Jianzhu Yao, Hongxu Su, Taobo Liao, Zerui Cheng, Huan Zhang, Xuechao Wang, Pramod Viswanath

AI总结:

提出TAO协议,通过算子级容忍区域和Merkle锚定的争议游戏,在不依赖可信硬件或确定性内核的情况下验证浮点神经网络输出,开销仅0.3%。

摘要:

神经网络越来越多地在用户无法控制的硬件上运行(云GPU、推理市场)。然而,机器学习即服务很少透露实际运行的内容或返回的输出是否忠实反映预期输入。用户无法对服务降级(模型交换、量化、图重写或诸如修改广告嵌入等差异)进行追索。验证输出很困难,因为异构加速器上的浮点执行本质上是不确定的。现有方法要么对实际浮点神经网络不实用,要么重新引入供应商信任。我们提出TAO:一种容忍感知乐观验证协议,它接受在原则性算子级接受区域内的输出,而不是要求逐位相等。TAO结合了两种误差模型:(i)每个算子的IEEE-754最坏情况界限和(ii)跨硬件校准的紧密经验百分位分布。差异触发一个Merkle锚定的、阈值引导的争议游戏,该游戏递归地划分计算图,直到剩下一个算子,此时裁决简化为轻量级理论界限检查或针对经验阈值的小型诚实多数投票。未受挑战的结果在挑战窗口后最终确定,无需可信硬件或确定性内核。我们将TAO实现为PyTorch兼容运行时和当前部署在以太坊Holesky测试网上的合约层。运行时检测图、计算每个算子的界限,并在FP32中运行未经修改的供应商内核,开销可忽略(Qwen3-8B上为0.3%)。在A100、H100、RTX6000、RTX4090上的CNN、Transformer和扩散模型中,经验阈值比理论界限紧10^2-10^3倍,且考虑界限的对抗攻击成功率为0%。总之,TAO为现实世界的异构ML计算协调了可扩展性和可验证性。

英文摘要:

Neural networks increasingly run on hardware outside the user's control (cloud GPUs, inference marketplaces). Yet ML-as-a-Service reveals little about what actually ran or whether returned outputs faithfully reflect the intended inputs. Users lack recourse against service downgrades (model swaps, quantization, graph rewrites, or discrepancies like altered ad embeddings). Verifying outputs is hard because floating-point(FP) execution on heterogeneous accelerators is inherently nondeterministic. Existing approaches are either impractical for real FP neural networks or reintroduce vendor trust. We present TAO: a Tolerance Aware Optimistic verification protocol that accepts outputs within principled operator-level acceptance regions rather than requiring bitwise equality. TAO combines two error models: (i) sound per-operator IEEE-754 worst-case bounds and (ii) tight empirical percentile profiles calibrated across hardware. Discrepancies trigger a Merkle-anchored, threshold-guided dispute game that recursively partitions the computation graph until one operator remains, where adjudication reduces to a lightweight theoretical-bound check or a small honest-majority vote against empirical thresholds. Unchallenged results finalize after a challenge window, without requiring trusted hardware or deterministic kernels. We implement TAO as a PyTorch-compatible runtime and a contract layer currently deployed on Ethereum Holesky testnet. The runtime instruments graphs, computes per-operator bounds, and runs unmodified vendor kernels in FP32 with negligible overhead (0.3% on Qwen3-8B). Across CNNs, Transformers and diffusion models on A100, H100, RTX6000, RTX4090, empirical thresholds are $10^2-10^3$ times tighter than theoretical bounds, and bound-aware adversarial attacks achieve 0% success. Together, TAO reconciles scalability with verifiability for real-world heterogeneous ML compute.

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

↑