AuditFL:面向开放联邦学习的合约支持清算层

·

研究论文 · 2026/11/03

联邦学习(FL)保持原始数据本地化,但大多数部署仍依赖可信协调器进行客户端准入、检查点分发、更新收集、聚合和奖励。本文提出AuditFL,一种用于开放环境下可审计FL的合约支持的清算层。AuditFL将训练和聚合保持在链下,将模型工件存储在假定可靠的链下工件存储中,仅在链上记录内容标识符和经济状态。客户端通过存款预留更新票,发布更新标识符,随后领取退款或奖励;任务协调器发布全局检查点并通过确定性结算规则最终确定轮次。该设计并未移除聚合器,而是使其链上轮次决策可归因、可重放、可审计且受经济约束。我们在本地以太坊兼容的Anvil链上实现了AuditFL,包括确定性状态机原型和Solidity合约。在完整MNIST数据集上,采用Dirichlet非独立同分布划分、12轮、最多200个客户端,AuditFL保持了普通FL的学习轨迹,其开销遵循闭式控制平面模型。在200个客户端时,合约运行发出5,026笔交易,存储2,413个链下工件(144.9 MiB),消耗829.7M EVM gas,主要来自每客户端的预留和发布调用。受控的掉线、无效更新和工件不可用压力测试几乎线性地降低包含率,但仍能最终确定轮次,即使在高注入失败率下,最终准确率变化也保持在零点几个百分点的准确率范围内。

该论文为开放联邦学习提供了一种可审计的区块链清算层,在保持学习性能的同时增强了协调过程的透明度和经济约束,对于构建可信联邦学习系统具有重要参考价值。

Federated learning (FL) keeps raw data local, but most deployments still rely on a trusted coordinator for client admission, checkpoint distribution, update collection, aggregation, and rewards. This paper presents AuditFL, a contract-backed clearing layer for auditable FL in open settings. AuditFL keeps training and aggregation off chain, stores model artifacts in an assumed reliable off-chain artifact store, and records only content identifiers and economic state on chain. Clients reserve update tickets with deposits, publish update identifiers, and later claim refunds or rewards; the task coordinator publishes global checkpoints and finalizes rounds through deterministic settlement rules. The design does not remove the aggregator, but makes its on-chain round decisions attributable, replayable, auditable, and economically constrained. We implement AuditFL as both a deterministic state-machine prototype and a Solidity contract on a local Ethereum-compatible Anvil chain. On full MNIST with Dirichlet non-IID splits, 12 rounds, and up to 200 clients, AuditFL preserves the Plain FL learning trajectory while its overhead follows closed-form control-plane models. At 200 clients, the contract run issues 5,026 transactions, stores 2,413 off-chain artifacts (144.9 MiB), and consumes 829.7M EVM gas, dominated by per-client reserve and publish calls. Controlled dropout, invalid-update, and artifact-unavailability stress tests reduce inclusion nearly linearly but still finalize rounds, with final-accuracy changes remaining within a few tenths of an accuracy percentage point even under high injected failure rates.

阅读原文

参与讨论