{
  "id": "2023/804",
  "url": "https://opencryptology.org/2023/804",
  "original_url": "https://eprint.iacr.org/2023/804",
  "title": "Falkor: Federated Learning Secure Aggregation Powered by AES-CTR GPU Implementation",
  "authors": [
    "Mariya Georgieva Belorgey",
    "Sofia Dandjee",
    "Nicolas Gama",
    "Dimitar Jetchev",
    "Dmitry Mikushin"
  ],
  "affiliations": null,
  "abstract": "We propose a novel protocol, Falkor, for secure aggregation for Federated Learning in the multi-server scenario based on masking of local models via a stream cipher based on AES in counter mode and accelerated by GPUs running on the aggregating servers. The protocol is resilient to client dropout and has reduced clients/servers communication cost by a factor equal to the number of aggregating servers (compared to the naïve baseline method). It scales simultaneously in the two major complexity aspects: 1) large number of clients; 2) highly complex machine learning models such as CNNs, RNNs, Transformers, etc. The AES-CTR-based masking function in our aggregation protocol is built on the concept of counter-based cryptographically-secure pseudorandom number generators (csPRNGs) as described in [SMDS'11] and subsequently used by Facebook for their torchcsprng csPRNG. We improve upon torchcsprng by careful use of shared memory on the GPU device, a recent idea of Cihangir Tezcan [Tezcan'21] and obtain 100x speedup in the masking function compared to a single CPU core.\n\nIn addition, we prove the semantic security of the AES-CTR-based masking function. Finally, we demonstrate scalability of our protocol in two real-world Federated Learning scenarios: 1) efficient training of large logistic regression models with 50 features and 50M data points distributed across 1000 clients that can dropout and securely aggregated via three servers (running secure multi-party computation (SMPC)); 2) training a recurrent neural network (RNN) model for sentiment analysis of Twitter feeds coming from a large number of Twitter users (more than 250,000 users). In case 1), our secure aggregation algorithm runs in less than a minute compared to a pure MPC computation (on 3 parties) that takes 27 hours and uses 400GB RAM machines as well as 1 gigabit-per-second network. In case 2), the total training is around $10$ minutes using our GPU powered secure aggregation versus 10 hours using a single CPU core.",
  "category": "Cryptographic protocols",
  "license": {
    "code": "CC BY",
    "url": "https://creativecommons.org/licenses/by/4.0/",
    "label": "CC BY 4.0",
    "attribution": "“Falkor: Federated Learning Secure Aggregation Powered by AES-CTR GPU Implementation” by Mariya Georgieva Belorgey, Sofia Dandjee, Nicolas Gama, Dimitar Jetchev, Dmitry Mikushin, Cryptology ePrint Archive, Paper 2023/804, https://eprint.iacr.org/2023/804. Licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/).",
    "retroactive": false,
    "redistribute_verbatim_only": false,
    "non_commercial": false
  },
  "dates": {
    "submitted": "2023-06-01T11:34:44Z",
    "updated": "2023-06-01T11:34:44Z",
    "withdrawn": null
  },
  "withdrawn": false,
  "withdrawn_on": null,
  "pdf": {
    "url": "https://opencryptology.org/2023/804.pdf",
    "sha256": "c5cba36344e23d473ae9bf24af95f8a6d77e7fc308424899bdba016137b4c20b",
    "size": 862095,
    "source": "github-mirror",
    "source_date": "2024-01-14T06:13:41Z",
    "maybe_stale": false,
    "newer_on_eprint": null,
    "withdrawn": false
  },
  "versions": [
    {
      "url": "https://opencryptology.org/2023/804/versions/20240114T061341Z.pdf",
      "captured_at": "2024-01-14T06:13:41Z",
      "label": "copy captured 2024-01-14",
      "source": "github-mirror",
      "source_url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2023/804.pdf",
      "size": 862095,
      "sha256": "c5cba36344e23d473ae9bf24af95f8a6d77e7fc308424899bdba016137b4c20b",
      "is_default_pdf": true
    }
  ],
  "other_sources": [
    {
      "kind": "wayback",
      "url": "https://web.archive.org/web/20240422232004id_/https://eprint.iacr.org/2023/804.pdf",
      "captured_at": "2024-04-22T23:20:04Z",
      "size": 814698
    },
    {
      "kind": "github-mirror",
      "url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2023/804.pdf",
      "captured_at": "2024-01-14T06:13:41Z",
      "size": 862095
    }
  ],
  "bibtex": "@misc{cryptoeprint:2023/804,\n      author = {Mariya Georgieva Belorgey and Sofia Dandjee and Nicolas Gama and Dimitar Jetchev and Dmitry Mikushin},\n      title = {Falkor: Federated Learning Secure Aggregation Powered by AES-CTR GPU Implementation},\n      howpublished = {Cryptology {ePrint} Archive, Paper 2023/804},\n      year = {2023},\n      url = {https://eprint.iacr.org/2023/804}\n}"
}
