Skip to main content
QUICK REVIEW

[Paper Review] Revealing and Protecting Labels in Distributed Training

Trung Dang, Om Thakkar|OpenBU (Boston University)|Oct 31, 2021
Adversarial Robustness in Machine LearningComputer Science34 references9 citations
TL;DR

This paper proposes Revealing Labels from Gradients (RLG), a method to extract the full set of training labels from model weight updates in distributed learning, applicable to various deep learning architectures using softmax and cross-entropy loss. It demonstrates that RLG enables high-accuracy transcript reconstruction in automatic speech recognition and improves the success of existing reconstruction methods, while gradient quantization and sparsification are shown to mitigate the attack.

ABSTRACT

Distributed learning paradigms such as federated learning often involve transmission of model updates, or gradients, over a network, thereby avoiding transmission of private data. However, it is possible for sensitive information about the training data to be revealed from such gradients. Prior works have demonstrated that labels can be revealed analytically from the last layer of certain models (e.g., ResNet), or they can be reconstructed jointly with model inputs by using Gradients Matching [Zhu et al'19] with additional knowledge about the current state of the model. In this work, we propose a method to discover the set of labels of training samples from only the gradient of the last layer and the id to label mapping. Our method is applicable to a wide variety of model architectures across multiple domains. We demonstrate the effectiveness of our method for model training in two domains - image classification, and automatic speech recognition. Furthermore, we show that existing reconstruction techniques improve their efficacy when used in conjunction with our method. Conversely, we demonstrate that gradient quantization and sparsification can significantly reduce the success of the attack.

Motivation & Objective

  • To address the privacy risk of label leakage from model gradients in distributed training, especially in sequence modeling where labels (e.g., transcripts) are highly sensitive.
  • To develop a method that reveals the complete set of labels used in a weight update, even when gradients are computed over mini-batches or multiple training steps.
  • To evaluate the effectiveness of RLG in both image classification (ResNet, EfficientNet) and automatic speech recognition (attention-based encoder-decoder models).
  • To investigate how gradient compression techniques like Sign-SGD and GradDrop can defend against label reconstruction attacks.
  • To demonstrate that combining RLG with existing reconstruction methods (e.g., Gradients Matching) significantly improves performance, especially in low-resource or high-vocabulary settings.

Proposed method

  • Proposes Revealing Labels from Gradients (RLG), a technique that infers the full set of training labels from the last-layer gradient and the label-to-ID mapping, applicable to models with softmax and cross-entropy loss.
  • Uses a bag-of-words (BoW) constraint to reduce the search space for labels in sequence models, limiting optimization to label frequencies rather than full sequence order.
  • Reformulates the label recovery problem as an optimization over context vectors (A) and pseudo-label distributions (P′), minimizing the L2 distance between reconstructed and target gradients.
  • Employs a regularized objective function: min ||∂L_Bow/∂W_decoder - ∇W_decoder*|| + λℛ(P′), where ℛ(P′) is a regularization term to stabilize learning.
  • Applies the method to both 1-step mini-batch updates and K-step updates from single samples, demonstrating broad applicability across training regimes.
  • Combines RLG with Gradients Matching (GM) to reconstruct full transcripts in automatic speech recognition, leveraging BoW to guide sequence reconstruction without language model assistance.

Experimental results

Research questions

  • RQ1Can the full set of training labels be reliably recovered from a single gradient update in distributed training, even when the update is aggregated over multiple samples or steps?
  • RQ2How effective is RLG in recovering labels in high-vocabulary domains such as automatic speech recognition, where joint optimization over all possible label sequences is infeasible?
  • RQ3To what extent can gradient quantization and sparsification techniques like Sign-SGD and GradDrop mitigate the label reconstruction attack?
  • RQ4Can the knowledge of the label set significantly improve the performance of existing reconstruction methods like Gradients Matching in sequence modeling?
  • RQ5Does the combination of RLG and GM enable full, accurate transcript reconstruction in ASR, even without language model guidance?

Key findings

  • RLG successfully recovers the complete set of training labels from gradients in both image classification (ResNet and EfficientNet) and automatic speech recognition tasks.
  • In ASR, combining RLG with Gradients Matching (GM) achieves a 97.5% Exact Match (EM) score after five runs, compared to only 1.8% EM for GM without BoW.
  • The Word Error Rate (WER) for transcript reconstruction drops from over 1.0 (near-random) to 0.010 when using BoW and multiple runs, indicating near-perfect reconstruction.
  • Gradient quantization (Sign-SGD) and sparsification (GradDrop) significantly reduce the success rate of RLG, demonstrating their dual role in communication efficiency and privacy protection.
  • The method remains effective even on model checkpoints from early training stages, achieving 40% exact transcript reconstruction at 10k training steps.
  • The use of a bag-of-words (BoW) constraint reduces the optimization space from 130k to 20k variables, making reconstruction feasible in high-vocabulary settings.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.