Robust and Verifiable Information Embedding Attacks to Deep Neural Networks via Error-Correcting Codes

Jinyuan Jia, Binghui Wang, Neil Zhenqiang Gong

This paper, presented at AsiaCCS ’21, introduces a robust and verifiable framework for "information embedding attacks" on deep neural networks (DNNs). By treating the process of training and querying a model as a noisy communication channel, the authors leverage classic coding theory—specifically Turbo codes and Cyclic Redundancy Checks (CRC)—to ensure that hidden messages can be accurately recovered even if the model is pruned, fine-tuned, or otherwise compressed.

TL;DR

The authors develop a method to hide secret messages within DNNs during training that remain recoverable even after aggressive model post-processing like pruning. By integrating Turbo codes and CRC, they create the first information embedding attack that is both robust to "noise" (model changes) and capable of verifying the integrity of the recovered data.

What Problem Does This Paper Address?

In the modern ML ecosystem, users often outsource model training to third-party tools or platforms. This creates a "supply chain" vulnerability: a malicious training tool can embed a secret message into the model. This message might be a watermark to prove ownership, or more nefariously, it could be sensitive training data or model architecture details "leaked" by the attacker for later retrieval via API queries.

Existing attacks of this type have two major flaws:

  1. Fragility: If a user performs post-processing—such as pruning weights to fit a model on a mobile device or fine-tuning it on new data—the embedded message is often corrupted or lost.
  2. Lack of Verifiability: An attacker has no way of knowing if the message they recovered via black-box queries is actually correct or just random noise.

Methods

The authors propose a four-step Embed function and an adaptive Recover function:

  1. Integrity (CRC): They first compute a 32-bit CRC checksum of the message and append it. This allows the attacker to verify if the recovered message is bit-perfect.
  2. Robustness (Turbo Codes): The message + checksum is encoded using a Turbo code (specifically a Recursive Systematic Convolutional code). Turbo codes are high-performance error-correction codes used in 3G/4G mobile communications, chosen here for their ability to handle high "noise" (model perturbations).
  3. Representation: The encoded bitstream is mapped to a set of labels for random data points (the "attack dataset").
  4. Injection: This attack dataset is mixed into the user’s original training data. Because DNNs have high capacity, they "memorize" these random points without significantly affecting the primary task's accuracy.

Adaptive Recovery: To save on query costs (especially for cloud-hosted models), the authors don't query the entire attack dataset at once. They leverage the property of Turbo codes that allows decoding from partial sequences. They query a small batch, try to decode, and check the CRC. If it fails, they query more until the message is verified.

Datasets

The authors evaluated their approach across several domains:

  • CIFAR-10: Used for general robustness testing with a ResNet-18 architecture.
  • FaceScrub: Used for a "Training Data Inference" application, where the attacker hides a celebrity face image within the model.
  • US Census Income: Used for "Property Inference," hiding statistical properties of the training set (like gender bias or average age).

Key Insights and Ideas

  • The Communication Analogy: The most brilliant move here is viewing the DNN training process as a "sender" and the black-box API as a "receiver." This allows the application of decades of research in communication theory to solve ML security problems.
  • Neural Capacity as a Side Channel: The attack exploits the fact that DNNs are "over-parameterized"—they have more than enough room to learn the main task and memorize thousands of random, unrelated bit-labels.
  • Adaptive Querying: By using RSC-based Turbo codes, the attacker can minimize their footprint and cost. They only query as much as the "noise" (post-processing) requires to get a clean signal.

Key Results

The authors compared their ECC (Error-Correcting Code) attack against a standard DE (Direct Encoding) attack across 8 different post-processing methods, including weight pruning (PRWT) and filter pruning (PRFL).

As shown in the results table below, the ECC attack maintained a 0% Bit Error Rate (BER) and 0 Mean Squared Error (MSE) across all scenarios, whereas the standard attack failed significantly once pruning or fine-tuning was applied.

Table 1: Comparison of MSE, BER, and Accuracy (ACC) between Direct Encoding (DE) and the proposed ECC attack across various post-processing methods.

In the FaceScrub experiment, the authors used a specific architecture (detailed in the figure below) to show that they could recover recognizable face images even from models that had been heavily modified after training.

Table 2: Architecture of the neural network used for the FaceScrub training data inference experiments.

Limitations and Future Work

  • Query Overhead: While adaptive, the ECC attack still requires 1-5x more queries than a naive attack to overcome the redundancy needed for error correction.
  • Accuracy Trade-off: There is a very slight (usually <1%) drop in the model's primary task accuracy because some of its capacity is "stolen" to store the message.
  • Defenses: The paper focuses on the attack; the authors note that future work is needed to develop robust defenses, such as training-time sanitization or more advanced model "scrubbing" techniques that can strip out these memorized patterns without destroying the model's utility.

Summary updated

BibTeX
@inproceedings{jia2021robust,
  author = {Jinyuan Jia and Binghui Wang and Neil Zhenqiang Gong},
  title = {{Robust and Verifiable Information Embedding Attacks to Deep Neural Networks via Error-Correcting Codes}},
  booktitle = {AsiaCCS},
  year = {2021},
  doi = {10.1145/3433210.3437519},
}
Figure