Byzantine-robust federated learning

US12175338B2 · US · B2

Patent metadata
FieldValue
Publication numberUS-12175338-B2
Application numberUS-202117195982-A
CountryUS
Kind codeB2
Filing dateMar 9, 2021
Priority dateMar 9, 2021
Publication dateDec 24, 2024
Grant dateDec 24, 2024

How to read this patent

A practical reading order for non-experts. Skip the full description unless you need deep technical detail.

  1. Title

    What the patent document calls the invention.

  2. Abstract

    A short plain-language summary of the technical disclosure.

  3. Assignees and inventors

    Who owns or filed the patent and who is credited as inventor.

  4. Key dates

    Filing, priority, publication, and grant dates set the timeline.

  5. First independent claim

    The legal scope of protection — read this for what is actually claimed.

  6. CPC / IPC classifications

    Technology tags used to group this patent with similar filings.

  7. Citations and related patents

    Prior art links and similar publications in this corpus.

Abstract

Official abstract text for this publication.

A federated learning method comprises creating a log of previously provided gradients from a plurality of workers, receiving updated gradients from the plurality of workers, calculating a vulnerability weight for each layer of a global machine learning model using the updated gradients, calculating an aggregated gradient using the vulnerability weight and the updated gradients, and updating the global machine learning model using the aggregated gradient. Some embodiments may also determine whether a Byzantine attack is occurring based upon the calculated aggregated gradient. An apparatus and computer program product may be used to implement the method.

First claim

Opening claim text (preview).

What is claimed is: 1. A federated learning method by a federated learning aggregator, comprising: creating a log of previously provided gradients from a plurality of workers; issuing queries to the plurality of workers, wherein the queries include current parameters for a global machine learning model; receiving updated gradients from the plurality of workers; maintaining the log within a predetermined maximum log size of past collected gradients from the plurality of workers, wherein the federated learning aggregator adds current gradients to the log and removes oldest gradients from the log to keep a current log size of the log less than the predetermined maximum log size; calculating a vulnerability weight for each layer of the global machine learning model using the updated gradients; calculating an average of the previously provided gradients; multiplying the average of the previously provided gradients by one minus the layer's vulnerability weight to generate a weighted average; multiplying the updated gradients by each layer's vulnerability weight to generate re-weighted gradients; adding the re-weighted gradients to the weighted average to calculate an aggregated gradient; and updating the global machine learning model using the aggregated gradient. 2. The method of claim 1 , further comprising determining whether a Byzantine attack is occurring based upon the calculated aggregated gradient. 3. The method of claim 1 , further comprising periodically updating the vulnerability weight for each layer of the global machine learning model. 4. The method of claim 1 , further comprising calculating a robustness factor for a plurality of layers in the global machine learning model, wherein calculating the robustness factor comprises: calculating, for each layer in the global machine learning model, an L2 norm across the previously provided gradients and the updated gradients; calculating, for each layer in the global machine learning model, a standard deviation of each layer's L2 norms from each round; and determining the weight factor for each layer using the normalized reciprocals of the calculated standard deviations. 5. The method of claim 1 , wherein the global machine learning model is updated with a gradient descent step using the aggregated gradient. 6. The method of claim 1 , further comprising identifying a layer in the global machine learning model that is relatively more vulnerable to Byzantine attacks. 7. The method of claim 1 , further comprising filtering outlier gradients. 8. A computer program product for a federated learning aggregator, the computer program product comprising: a computer readable storage medium having program instructions embodied therewith, the program instructions executable by a processor to cause the processor to: create a log of previously provided gradients from workers; issuing queries to the workers, wherein the queries include current parameters for a global machine learning model; receive updated gradients from the workers; maintaining the log within a predetermined maximum log size of past collected gradients from the plurality of workers, wherein the federated learning aggregator adds current gradients to the log and removes oldest gradients from the log to keep a current log size of the log less than the predetermined maximum log size; calculate a vulnerability weight for each layer of the global machine learning model using the updated gradients; reconfigure respective gradients from the workers individually based on the vulnerability weights; calculate an aggregated gradient by averaging the reconfigured gradients from the workers; and updating the global machine learning model using the aggregated gradient. 9. A federated learning aggregator comprising a processor and a memory coupled with and readable by the processor, wherein the memory stores program instructions which when executed by the processor cause the processor to: create a log of previously provided gradients from a plurality of workers; issuing queries to the plurality of workers, wherein the queries include current parameters for a global machine learning model; receive updated gradients from the plurality of workers; compute a respective robustness factor for layers in the global machine learning model by using the updated gradients and the previously provided gradients retrieved from the log, wherein the respective robustness factor is computed via: calculating, for each layer in the global machine learning model, an L2 norm across the previously provided gradients and the updated gradients; calculating, for each layer in the global machine learning model, a standard deviation of each layer's L2 norms from each round; and determining the respective robustness factor for each layer using the normalized reciprocals of the calculated standard deviations; calculating a vulnerability weight for each layer of a global machine learning model using the updated gradients; calculating an aggregated gradient using the vulnerability weight and the updated gradients; and updating the global machine learning model using the aggregated gradient. 10. The federated learning aggregator of claim 9 , further comprising instructions to determine whether a Byzantine attack is occurring based upon the calculated aggregated gradient. 11. The federated learning aggregator of claim 9 , further comprising instructions to maintain the log within a predetermined maximum log size of past collected gradients from the plurality of workers, wherein: the federated learning aggregator adds current gradients to the log; and the federated learning aggregator removes oldest gradients from the log to keep a current log size of the log less than the predetermined maximum log size. 12. The federated learning aggregator of claim 9 , further comprising instructions to periodically update the vulnerability weight for each layer of the global machine learning model. 13. The federated learning aggregator of claim 9 , wherein calculating the robustness factor comprises: calculating, for each layer in the global machine learning model, a standard deviation of each layer's L2 norms from each round; and determining the weight factor for each layer using a normalized reciprocals of the calculated standard deviations.

Assignees

Inventors

Classifications

  • Assessing vulnerabilities and evaluating computer system security · CPC title

  • Dynamic detection, i.e. detection performed at run-time, e.g. emulation, suspicious activities · CPC title

  • Test or assess software · CPC title

  • Matrix or vector computation {, e.g. matrix-matrix or matrix-vector multiplication, matrix factorization (matrix transposition G06F7/78)} · CPC title

  • Convolutional networks [CNN, ConvNet] · CPC title

Patent family

Related publications grouped by family.

External sources

Frequently asked questions

Answers are generated from the same data shown on this page.

What does patent US12175338B2 cover?
A federated learning method comprises creating a log of previously provided gradients from a plurality of workers, receiving updated gradients from the plurality of workers, calculating a vulnerability weight for each layer of a global machine learning model using the updated gradients, calculating an aggregated gradient using the vulnerability weight and the updated gradients, and updating the…
Who is the assignee on this patent?
IBM
What technology area does this patent fall under?
Primary CPC classification G06N20/00. Mapped technology areas include Physics.
When was this patent published?
Publication date Tue Dec 24 2024 00:00:00 GMT+0000 (Coordinated Universal Time) (B2). Legal status and post-grant events are not shown on this page.
What related patents are in patentsdb?
We list 5 related publications on this page (citations in our corpus or others sharing the same primary CPC).