TL;DR
SettleFL is a trustless and scalable reward settlement protocol that makes decentralized Federated Learning (FL) economically viable on permissionless blockchains. By leveraging a domain-specific SNARK circuit architecture, it offers two interoperable strategies—an optimistic "Commit-and-Challenge" variant and a validity-based "Commit-with-Proof" variant—allowing networks to scale to hundreds of participants with minimal on-chain costs.
What Problem Does This Paper Address?
Federated Learning (FL) allows multiple participants to collaboratively train machine learning models without sharing their private data. To keep participants motivated, the system must distribute rewards fairly based on their contributions. In an open environment with no central authority, a permissionless blockchain is the ideal infrastructure to handle these payouts transparently and securely.
However, a major roadblock stands in the way: the blockchain trilemma. High-frequency, iterative FL training rounds clash directly with the prohibitive transaction (gas) costs and latency of decentralized networks. Existing blockchain-based FL solutions either compromise on security by using centralized/hybrid chains or suffer from scalability bottlenecks where on-chain costs skyrocket linearly with the number of participants.
SettleFL addresses this tension: How can we enforce trustless reward settlement on permissionless blockchains while keeping on-chain costs low as the network scales?
Methods
The authors introduce SettleFL, a protocol family designed around a passive interaction model where honest participants verify data off-chain and never need to spend gas on transactions unless they detect foul play.
SettleFL provides two interoperable protocol variants built on top of a shared, highly optimized Succinct Non-Interactive ARgument of Knowledge (SNARK) circuit architecture:
- Commit-and-Challenge (SettleFL-CC): An optimistic execution strategy. The aggregator uploads only a cryptographic digest of the reward allocation on-chain. Participants verify the details off-chain. If the aggregator cheats, any participant can launch a single-shot, non-interactive challenge using a SNARK proof to penalize the bad actor.
- Commit-with-Proof (SettleFL-CP): A validity-proof strategy. The aggregator attaches a Groth16 SNARK proof to every single round's commitment, verifying its correctness upfront and providing instant finality.
Instead of relying on a heavy, general-purpose Zero-Knowledge Virtual Machine (zkVM), SettleFL uses custom, domain-specific circuit gadgets (like Length-Padded Indicators and BatchExtractors) tailored specifically to the structured nature of FL reward matrices.
Datasets
The protocol's machine learning performance was evaluated using six standard benchmark datasets across various tasks:
- MNIST & Fashion-MNIST: Image classification (using LeNet-5 and a 4-layer CNN).
- CIFAR-10: Image classification (using ResNet-20).
- Bank: Tabular data classification (using a 3-layer MLP).
- Cora: Graph node classification (using a 2-layer GCN).
- Twitter (LEAF): Sentiment text classification (using FastText).
No new datasets or benchmarks were introduced in this work.
Key Insights and Ideas
- The Fundamental SettleFL Inequality: The authors mathematically formalize the choice between optimistic and validity strategies. A network should only switch from the low-gas, high-latency optimistic model (CC) to the instant-finality validity model (CP) when the implicit opportunity cost of waiting out a dispute window exceeds the explicit computational and gas overhead of generating zero-knowledge proofs.
- Domain-Specific Circuit Efficiency: By swapping out standard cryptographic primitives for SNARK-friendly ones (e.g., using Poseidon hashes instead of Keccak-256), the authors reduced the circuit constraint count from hundreds of thousands to just a few hundred per operation. This makes per-round zero-knowledge proof generation take seconds rather than minutes.
- Decoupling Contract Size from Participant Count: To bypass Ethereum's strict smart contract bytecode limit (24KB), SettleFL introduces a multi-shot distribution mechanism. This decouples the contract size from the total number of participants, allowing the system to scale indefinitely by processing rewards in fixed-size batches.
Key Results
- Massive Scalability: SettleFL successfully scaled to 800 participants in controlled simulations—a scale previously deemed completely impractical for on-chain FL settlement.
- Ultra-Low Cost: In a live deployment on the Ethereum Sepolia testnet, SettleFL settled rewards for 50 training rounds with 800 participants for a total cost of approximately $4.00 USD (using SettleFL-CC) and $5.54 USD (using SettleFL-CP).
- Zero Accuracy Trade-offs: The reward enforcement and proof-generation mechanisms operate completely in parallel to the training logic, meaning model convergence and accuracy remained identical to standard FL baseline training across all datasets.
Limitations and Future Work
While SettleFL solves the scalability of settling rewards, it explicitly treats contribution evaluation (calculating exactly how much a participant's update is worth using metrics like Shapley values) as an upstream input.
The authors note that future work will focus on integrating advanced, verifiable contribution estimation methods directly into the protocol. Additionally, they plan to explore alternative proving systems like STARKs or recursive proofs to further optimize performance, and investigate how historical incentive data can be used to track participant reputation over time.
Summary updated