Towards Robust Data Hiding Against (JPEG) Compression: A Pseudo-Differentiable Deep Learning Approach

Chaoning Zhang, Adil Karjauv, Philipp Benz, In So KweonarXiv 2021

Introduction

Researchers from KAIST have introduced a "frustratingly simple" yet highly effective framework for training deep learning models for robust data hiding. By bypassing the mathematical complexities of non-differentiable compression algorithms, this approach achieves state-of-the-art results across multiple image and video formats, including JPEG, JPEG 2000, and WebP.

The Differentiability Bottleneck

Data hiding involves embedding a secret message or "watermark" into a cover image. For this to be useful in real-world scenarios, the watermark must survive lossy compression. However, training Deep Neural Networks (DNNs) to be robust against compression is difficult because standard backpropagation requires every operation in the network to be differentiable. JPEG compression includes a quantization step that is discrete and non-differentiable, effectively breaking the gradient flow during training. Previous solutions attempted to build complex differentiable proxies, but these are often difficult to engineer and specific to a single compression type.

The Pseudo-Differentiable Layer

The core innovation of this work is the Pseudo-Differentiable Layer. Rather than attempting to create a complex differentiable approximation of the compression process, the authors treat the compression algorithm as a "black box."

The Pseudo-Differentiable Layer training mechanism.

During the forward pass, the encoded image ($I_{enc}$) is processed by a standard compression tool to produce a compressed image ($I_{comp}$). The difference between these two images is defined as "pseudo-noise": $Noise = I_{comp} - I_{enc}$. During the backward pass, the network treats this noise as a constant value. This allows the gradient to flow back to the encoder without needing to calculate the derivative of the compression algorithm itself. By viewing compression as input-dependent noise, the encoder learns to hide data in image regions that are naturally preserved by the compression process.

Results and Generalization

The proposed method demonstrates significant improvements in robustness. On standard JPEG benchmarks, it achieves a lower Bit Error Rate (BER) than previous state-of-the-art (SOTA) methods. Notably, at a JPEG Quality of 50, the method reached a BER of 12.63%, outperforming the previous best of 15.85%.

Because the framework is agnostic to the specific compression math, it generalizes effortlessly to other standards. It is the first deep learning approach to demonstrate high robustness against JPEG 2000 and WebP, as well as video compression formats like MPEG4 and XVID.

Visual results of image-in-image hiding across various compression standards.

Beyond simple bit-string embedding, the authors successfully applied the technique to image-in-image hiding. As shown above, secret images can be recovered with high fidelity even after the container image has undergone heavy compression across different standards, maintaining an average pixel discrepancy of only 9.13/255.

Conclusion

By shifting the perspective of lossy compression from a complex mathematical transformation to a source of input-dependent noise, the authors have provided a unified and simple solution for robust data hiding. This "pseudo-differentiable" approach removes the need for hand-crafted proxies and opens the door for robustness against a wide array of non-differentiable image distortions, such as artistic filters or geometric transformations.

Summary updated

BibTeX
@misc{zhang2021towards,
  author = {Chaoning Zhang and Adil Karjauv and Philipp Benz and In So Kweon},
  title = {{Towards Robust Data Hiding Against (JPEG) Compression: A Pseudo-Differentiable Deep Learning Approach}},
  year = {2021},
  eprint = {2101.00973},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2101.00973},
}
Figure