Unlocking Visual Secrets: Inverting Features with Diffusion Priors for Image Reconstruction

Sai Qian Zhang, Ziyun Li, Chuan Guo, Saeed Mahloujifar, Deeksha Dangwal, G. Edward Suh, Barbara De Salvo, Chiao Liu

Abstract

Inverting visual representations within deep neural networks (DNNs) presents a challenging and important problem in the field of security and privacy for deep learning. The main goal is to invert the features of an unidentified target image generated by a pre-trained DNN, aiming to reconstruct the original image. Feature inversion holds particular significance in understanding the privacy leakage inherent in contemporary split DNN execution techniques, as well as in various applications based on the extracted DNN features. In this paper, we explore the use of diffusion models, a promising technique for image synthesis, to enhance feature inversion quality. We also investigate the potential of incorporating alternative forms of prior knowledge, such as textual prompts and cross-frame temporal correlations, to further improve the quality of inverted features. Our findings reveal that diffusion models can effectively leverage hidden information from the DNN features, resulting in superior reconstruction performance compared to previous methods.

Introduction

In the landscape of distributed AI, "Split DNN" computing is frequently presented as a robust privacy solution. The architecture is straightforward: the initial layers of a neural network execute on a local edge device, such as a smartphone, and only the resulting abstract "features" are transmitted to a cloud server for final processing. The prevailing assumption has been that because raw pixels are never transmitted, the user's visual data remains secure.

However, recent research suggests this assumption may be flawed. By leveraging the advanced generative capabilities of Latent Diffusion Models (LDMs), it is possible to reconstruct high-fidelity images from these abstract features, even when they originate from deep within a network. This paper explores how diffusion models can act as powerful priors to "see" through encoded representations, revealing significant privacy vulnerabilities in split-computing frameworks.

The Threat Model: Feature Inversion in Split Computing

The core challenge addressed is Feature Inversion: given the intermediate mathematical representation (features) of an image from a pre-trained network, can the original input be recreated? Historically, this task is feasible for shallow layers but becomes increasingly difficult as data moves deeper into the network. Deep layers typically discard spatial details like texture to focus on high-level semantics, such as object categories. Previous inversion methods often resulted in unrecognizable noise when applied to these deep layers.

The threat model for feature inversion in split DNN execution, where an attacker intercepts intermediate features to reconstruct the original input.

As illustrated in the threat model, an attacker can intercept the intermediate features ($z_{mid}$) during transmission. By utilizing a reconstruction loss ($L_{re}$) and a surrogate model ($F_1$), the attacker can iteratively update a synthetic image until its features match the intercepted data, effectively "hallucinating" the missing details.

Methodology: Diffusion Models as Generative Priors

To overcome the information loss in deep features, this research shifts away from direct pixel optimization toward using Latent Diffusion Models (LDMs) as a generative prior. The approach involves several key components:

  1. Latent Space Inversion: Rather than optimizing raw pixels, the method optimizes a vector within the latent space of a pre-trained LDM. The diffusion process then generates an image that, when processed by the target DNN, produces features matching the original "stolen" features.
  2. Textual Priors: If an attacker possesses contextual knowledge (e.g., "a person in a kitchen"), they can provide a text prompt to the LDM. A novel Negentropy-based loss term ($L_{txt}$) ensures the optimized latent vector remains within a realistic distribution guided by the text.
  3. Multi-frame Reconstruction: For temporal data like video, the authors utilize a pointwise convolutional layer and a temporal loss function to exploit correlations between consecutive frames, enhancing reconstruction stability.
White-box feature inversion framework utilizing a Latent Diffusion Model (LDM) and textual priors to guide the reconstruction process.

Key Insights and Experimental Results

The proposed DM-based (DMB) approach was validated using standard benchmarks including ImageNet, COCO, and high-resolution video datasets. Several critical insights emerged:

  • Superior Performance: On a ResNet-50 (Layer 36), the DMB method achieved a PSNR of 29.9 dB, vastly outperforming direct optimization, which reached only 8.04 dB. Qualitative results showed clear, semantically accurate reconstructions where baselines failed.
  • Relative Depth and Architecture: The difficulty of inversion is tied to the relative depth of the layer. Furthermore, Vision Transformers (ViT) proved more resistant to inversion than CNNs, likely because their self-attention mechanism acts as a more aggressive low-pass filter.
  • The Textual Boost: Incorporating simple textual descriptions significantly improved reconstruction quality. For deep ResNet layers, adding a prompt like "blue sky" raised the Inception Score from 0.33 to 3.60.
  • Self-Supervision Risks: Models like CLIP, designed to retain maximum information for downstream tasks, are notably easier to invert than models trained strictly for classification.

Limitations and Conclusion

While powerful, the method faces challenges such as the "misalignment trap," where incorrect textual priors can degrade reconstruction quality by creating conflict with the actual features. Additionally, the iterative nature of diffusion models entails higher computational costs than simpler methods.

Ultimately, this research serves as a critical wake-up call for the privacy community. Simply abstracting pixels into neural features is insufficient for data protection. As generative AI continues to advance, the ability to reconstruct private visual data from seemingly anonymous features will only become more sophisticated, necessitating new approaches to secure distributed AI.

Summary updated

BibTeX
@article{zhang2025unlocking,
  author = {Sai Qian Zhang and Ziyun Li and Chuan Guo and Saeed Mahloujifar and Deeksha Dangwal and G. Edward Suh and Barbara De Salvo and Chiao Liu},
  title = {{Unlocking Visual Secrets: Inverting Features with Diffusion Priors for Image Reconstruction}},
  journal = {Accepted by TMLR},
  year = {2025},
  url = {https://openreview.net/forum?id=j6MgbuBiGV},
}
Figure