Feature Reconstruction Attacks and Countermeasures of DNN Training in Vertical Federated Learning

Peng Ye, Zhifeng Jiang, Wei Wang, Bo Li, Baochun Li · DOI

TL;DR

This paper explores a new security vulnerability in Vertical Federated Learning (VFL) where the "active" party (holding labels) can reconstruct the private "binary" features of the "passive" party during DNN training. The authors propose an effective defense mechanism that misleads attackers by introducing fabricated features, maintaining high model accuracy.

What Problem Does This Paper Address?

Vertical Federated Learning (VFL) allows organizations to collaboratively train machine learning models without sharing their raw data. In VFL, participants contribute different features for the same set of data instances. Typically, one party (the active party) has the labels and orchestrates the training, while others (passive parties) contribute their features. While VFL aims to preserve data privacy, it's unclear if the active party can infer sensitive information from the passive parties. This paper specifically addresses the risk of the active party reconstructing the private input features of a passive party when training Deep Neural Networks (DNNs). This is a critical concern because even if raw data isn't shared, intermediate computations during training might leak valuable information.

Methods

The core of the paper lies in identifying and mitigating a "feature reconstruction attack."

  • Attack Formulation: The authors model a VFL scenario where a DNN is split, with the passive party holding the initial input layer features and the active party holding the rest of the network. The attack focuses on reconstructing binary features (e.g., yes/no, true/false) held by the passive party. They prove that this reconstruction problem is NP-hard, but demonstrate that it's still feasible in practice for reasonably sized feature dimensions.
  • Attack Algorithms:
    • Strawman Attack (Algorithm 1): This algorithm attempts to solve the reconstruction problem by formulating it as a system of linear equations derived from the intermediate outputs. It involves finding a binary vector within the column space of a derived matrix.
  • Linear Regression Attack (Algorithm 2): This algorithm is designed to be more robust against defenses like Gaussian noise masking. Instead of finding an exact solution, it aims to find a binary vector that is close to the column space, using leverage score sampling to select a representative submatrix.
  • Defense Mechanism (Masquerade Approach): The proposed defense involves modifying the passive party's model. It restricts the rank of the weight matrix in the passive party's local model and introduces a fabricated binary feature. This effectively misleads the attacker's reconstruction algorithms to find these fabricated features instead of the true private ones, with minimal impact on model accuracy.

Datasets

The authors evaluated their attack and defense methods on five public datasets from the UCI machine learning repository:

  • Bank: Predicting subscription to a term deposit.
  • Credit: Predicting credit card default payments.
  • Mushroom: Predicting if a mushroom is poisonous or edible.
  • Nursery: Evaluating nursery school applications.
  • Covertype: Determining forest cover type.

They describe how they split features between the passive and active parties for each dataset, noting the presence of binary and categorical features.

Key Insights and Ideas

  • Binary Features are Vulnerable: Even without direct data sharing, the intermediate computations in VFL DNN training can leak enough information to reconstruct binary features held by passive parties. This is a significant privacy concern.
  • NP-Hardness Doesn't Mean Impracticality: While the problem of reconstructing binary features is NP-hard, the authors show that practical, albeit exponential-time, algorithms can effectively perform the attack for realistic feature dimensions.
  • Existing Defenses Are Insufficient: Conventional defenses like Gaussian noise masking can degrade model performance significantly, and the proposed attack can still be effective.
  • Fabricated Features as a Defense: The novel "masquerade" defense, by introducing fabricated binary features and manipulating model rank, effectively misdirects attackers without substantially harming model accuracy. This is a key contribution.

Key Results

  • Attack Effectiveness: Without any defense, the proposed attack algorithms can reconstruct input binary features with 100% accuracy on various datasets.
  • Robustness to Noise: The linear regression attack (Algorithm 2) remains effective even when Gaussian noise is added to intermediate results, though higher noise levels reduce attack accuracy.
  • Defense Performance: The masquerade defense successfully misguides the attacker to fabricated features. Crucially, it achieves this with negligible loss in model accuracy, outperforming Gaussian noise masking in this regard. For instance, model accuracy with the masquerade defense was consistently high (e.g., above 90% for most datasets), while Gaussian noise masking led to noticeable drops. Training loss curves also showed minimal divergence between defended and undefended models.

Limitations and Future Work

  • Cut Layer Assumption: The current attack methods are primarily designed for scenarios where the VFL model is cut at the input layer. Attacks become more challenging when the cut layer is deeper due to the introduction of non-linear activation functions.
  • Absolute Security Not Guaranteed: The masquerade defense is effective but not foolproof. The paper acknowledges that an adaptive attacker might still find ways to recover input features, for example, by focusing on the non-fabricated parts of the data.
  • Future Work: The authors suggest exploring how to protect against adaptive attacks and extending the defense mechanisms to handle more complex feature types beyond binary ones. They also note the potential for extending their attack to multi-party VFL scenarios.

Summary updated

BibTeX
@article{ye2025feature,
  author = {Peng Ye and Zhifeng Jiang and Wei Wang and Bo Li and Baochun Li},
  title = {{Feature Reconstruction Attacks and Countermeasures of DNN Training in Vertical Federated Learning}},
  journal = {IEEE Trans. Dependable Secur. Comput.},
  year = {2025},
  doi = {10.1109/tdsc.2024.3521451},
}
Figure