An Efficient Attribute-Based Participant Selecting Scheme with Blockchain for Federated Learning in Smart Cities

Xiaojun Yin, Haochen Qiu, Xijun Wu, Xinming Zhang

TL;DR

This paper introduces a novel federated learning scheme for smart cities that uses attribute-based encryption (CP-ABE) to select participants based on specific criteria, enhancing privacy and efficiency. It also integrates a consortium blockchain for incentivizing participation and auditing, addressing key challenges in real-world smart city deployments.

What Problem Does This Paper Address?

Smart cities generate vast amounts of data, ideal for machine learning applications. However, privacy concerns make it difficult to collect this data centrally for model training. Federated learning offers a solution by training models locally on user devices, but existing approaches face challenges:

  • Improper Participant Selection: Random selection can lead to data heterogeneity issues and allow malicious or unqualified participants to join, impacting model accuracy and security.
  • Privacy Leakage: While federated learning prevents direct data uploads, gradients themselves can sometimes reveal sensitive information.
  • Lack of Incentives: Participants are unlikely to contribute their resources (computing power, data) without proper motivation.
  • Auditability: Tracking contributions and ensuring fair rewards is difficult in decentralized systems.

This paper aims to solve these problems by proposing a secure, efficient, and incentivized participant selection mechanism for federated learning in smart cities.

Methods

The core of the proposed solution lies in a combination of two key technologies:

  • Ciphertext-Policy Attribute-Based Encryption (CP-ABE): This cryptographic technique allows the task publisher to define an access policy based on attributes (e.g., data quantity, computing power, location). Only participants whose attributes satisfy this policy can decrypt a "flag" credential, which grants them access to the training round. This ensures that only qualified participants are selected, enhancing privacy and model quality.
  • Consortium Blockchain: A tamper-resistant and transparent ledger is used to record participant activities, specifically the successful decryption of the flag. This serves as an audit trail and a basis for an incentive mechanism, where participants are rewarded for their contributions based on verified participation.

The scheme involves a central authority for setup, attribute authorities for key management, a task publisher for defining policies and encrypting the flag, and participants who decrypt the flag to join the training. The process includes participant registration, key generation, ciphertext encryption, decryption, model updates, and finally, incentive distribution recorded on the blockchain.

Datasets

The paper evaluates its proposed scheme using two standard image classification datasets:

  • FashionMNIST: A dataset of 60,000 grayscale images (28x28 pixels) representing 10 clothing item categories.
  • CIFAR-10: A dataset of 60,000 color images (32x32 pixels) representing 10 object categories.

The authors also simulate different data distribution scenarios (IID and Non-IID using Dirichlet distribution with varying alpha parameters) to test the robustness of their approach.

Key Insights and Ideas

  • Attribute-Based Selection is Crucial for Smart Cities: The paper strongly advocates for attribute-based selection over random or resource-based methods, arguing it's essential for handling the diverse and often sensitive data in smart city environments.
  • CP-ABE as a Privacy-Preserving Filter: CP-ABE effectively acts as a fine-grained gatekeeper, ensuring that only participants meeting specific, predefined criteria can access training data, thus enhancing privacy and data quality.
  • Blockchain for Trust and Incentives: Integrating a consortium blockchain provides a transparent and auditable way to manage participant contributions and distribute rewards, fostering a more sustainable federated learning ecosystem.
  • Balancing Stringency and Participation: The experiments highlight that overly strict access policies can reduce participation, while overly loose ones can compromise data quality. A "moderate" approach often yields the best balance.

Key Results

The proposed ABEFedAvg scheme demonstrated significant improvements over traditional federated learning algorithms (FedAvg, FedProx, FedIR) and other participant selection schemes (Newt, FedFNS):

  • Improved Accuracy: ABEFedAvg consistently achieved higher average and highest accuracy across both FashionMNIST and CIFAR-10 datasets, especially under Non-IID conditions. For example, under a severe Non-IID setting (α=0.1), ABEFedAvg outperformed FedAvg by 7.81% on FashionMNIST and 6.06% on CIFAR-10.
  • Faster Convergence: The scheme significantly reduced the number of communication rounds required to reach target accuracies. For instance, on CIFAR-10, ABEFedAvg reached a target accuracy in 167 rounds, compared to 669 rounds for FedAvg under a similar Non-IID setting.
  • Enhanced Efficiency: The attribute-based selection, while adding some overhead, ultimately led to more efficient training by ensuring higher quality participants and reducing the need for extensive communication rounds.

Limitations and Future Work

The authors acknowledge several limitations:

  • Computational Overhead: The complexity of CP-ABE can lead to increased computational demands, especially with a large number of attributes, potentially slowing down real-time processing.
  • Practical Implementation Challenges: The study primarily relies on simulations, and real-world deployment might encounter unforeseen challenges related to network conditions, diverse hardware, and varying data volumes.

Future research directions include:

  • Optimizing CP-ABE Efficiency: Developing more efficient CP-ABE techniques to reduce computational overhead.
  • Real-World Testing: Conducting empirical studies in diverse smart city settings to evaluate practicality and performance.
  • Exploring Other Domains: Applying the scheme to other critical areas like healthcare and public safety.
  • Integrating Advanced ML: Incorporating deep learning and other advanced techniques to further enhance model predictive capabilities.

Summary updated

Abstract

In smart cities, large amounts of multi-source data are generated all the time. A model established via machine learning can mine information from these data and enable many valuable applications. With concerns about data privacy, it is becoming increasingly difficult for the publishers of these applications to obtain users’ data, which hinders the previous paradigm of centralized training through collecting data on a large scale. Federated learning is expected to prevent the leakage of private data by allowing users to train models locally. The existing works generally ignore architectures designed in real scenarios. Thus, there still exist some challenges that have not yet been explored in federated learning applied in smart cities, such as avoiding sharing models with improper parties under privacy requirements and designing satisfactory incentive mechanisms. Therefore, we propose an efficient attribute-based participant selecting scheme to ensure that only someone who meets the requirements of the task publisher can participate in training under the premise of high privacy requirements, so as to improve the efficiency and avoid attacks. We further extend our scheme to encourage clients to take part in federated learning and provide an audit mechanism using a consortium blockchain. Finally, we present an in-depth discussion of the proposed scheme by comparing it to different methods. The results show that our scheme can improve the efficiency of federated learning by enabling reliable participant selection and promote the extensive use of federated learning in smart cities.
BibTeX
@inproceedings{yin2024efficient,
  author = {Xiaojun Yin and Haochen Qiu and Xijun Wu and Xinming Zhang},
  title = {{An Efficient Attribute-Based Participant Selecting Scheme with Blockchain for Federated Learning in Smart Cities}},
  booktitle = {Computers},
  year = {2024},
  url = {https://openreview.net/forum?id=laITKCH4wZ},
}
Figure