Transpose Attack: Stealing Datasets with Bidirectional Training
Guy Amit, Mosh Levy, Yisroel Mirsky
TL;DR
The paper identifies a vulnerability in deep neural networks that enables simultaneous forward-task execution and backward covert memorization via a transpose attack, where weight matrices are inverted to form a backward model. It introduces a spatial-indexed memorization mechanism that allows systematic retrieval of memorized samples, demonstrating that architectures from FC to CNNs and ViTs can memorize and exfiltrate tens of thousands of samples. The authors formalize the attack, provide a training protocol with shared weights, and propose automated detection and practical countermeasures, including gradient-honeypot–style detection and code-audit recommendations. The work highlights significant privacy and IP risks in protected environments (e.g., FL, DTaaS) and charts a path for defenses and further research in covert dual-task neural systems.
Abstract
Deep neural networks are normally executed in the forward direction. However, in this work, we identify a vulnerability that enables models to be trained in both directions and on different tasks. Adversaries can exploit this capability to hide rogue models within seemingly legitimate models. In addition, in this work we show that neural networks can be taught to systematically memorize and retrieve specific samples from datasets. Together, these findings expose a novel method in which adversaries can exfiltrate datasets from protected learning environments under the guise of legitimate models. We focus on the data exfiltration attack and show that modern architectures can be used to secretly exfiltrate tens of thousands of samples with high fidelity, high enough to compromise data privacy and even train new models. Moreover, to mitigate this threat we propose a novel approach for detecting infected models.
