NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Backdoor Channels Hidden in Latent Space: Extending Cryptographic Undetectability to Modern Neural Networks

Marte Eggen, Eirik Reiestad, Kristian Gjøsteen, Inga StrumkeNeurIPS 2026

TL;DR

When you outsource AI training to the cloud, how do you know the returned model doesn’t have a secret, malicious "off-switch" hidden inside its weights? While cryptographers recently proved it is mathematically possible to plant completely undetectable backdoors in toy models, this paper shows how to pull it off in modern, real-world architectures like ResNets and Vision Transformers. Instead of building foreign "circuits" into the network, the authors hijack the natural geometric pathways the model already uses to tell classes apart—making the backdoor virtually impossible to scrub out without destroying the model's brain.

What Problem Does This Paper Address?

With the rise of Machine Learning as a Service (MLaaS), developers routinely hand over data or specifications to third parties and get back a trained neural network. This opens the door to backdoor attacks: models that behave normally on everyday data, but reliably misclassify inputs when a secret visual "trigger" is present.

Defenders try to catch these by inspecting the model’s weights (white-box inspection). Recently, cryptographers (Goldwasser et al.) proved that you can plant white-box undetectable backdoors—meaning no efficient algorithm can tell a clean model from a rigged one, even with full access to its parameters. However, that proof only worked on stylized, single-layer, randomly initialized networks. A massive question remained: Can you plant cryptographically inspired, undetectable backdoors in deep, messy, end-to-end trained modern neural networks?

Methods

Instead of poisoning training data or wiring up clunky artificial sub-networks, the authors directly and subtly alter the geometry of a trained model's weights in three intuitive steps:

Figure 1: Illustration showing the method pipeline. The secret key νbd is a sparse approximation of the normal to the linear decision boundary separating activations of two classes. A spike along this direction is planted in the weight distribution through a transformation ˆW = L
  1. Find the Latent Key ($\nu_{\text{bd}}$): Every classifier naturally learns directions in its latent activation space that separate one class from another (similar to Concept Activation Vectors, or CAVs). Using a tiny set of samples, the authors train a simple logistic regression probe right before the output layer to find the hyperplane separating a source class (e.g., "ship") from a target class (e.g., "truck"). Keeping only the top $\alpha\%$ largest components of this normal vector yields a sparse "secret key" direction in latent space.
  2. Plant the Spike: Prior to training, an extra linear "backdoor" layer is placed right before the output. After normal training, the authors amplify the variance of this layer's weights specifically along the secret key direction—creating a spiked covariance via a Cholesky decomposition transform. Because this layer is linear at injection time, it is algebraically multiplied and absorbed directly into the final output layer. The delivered model has zero architectural footprints!
  3. Optimize the Trigger ($\nu_{\text{in}}$): Because deep networks warp inputs non-linearly, you can't just add the latent key to an image's pixels. So, once the weights are locked in, the authors run an optimization loop (using $L_2$ regularization and pixel-smoothing) to craft a subtle input-space perturbation that pushes clean images straight down the newly amplified latent spike.

Datasets

No new benchmarks are introduced; the authors evaluate their method on standard multi-class vision datasets spanning everyday photos and sensitive clinical diagnostics:

  • CIFAR-10 (10 natural object classes)
  • MedMNIST benchmarks: BloodMNIST (8 blood cell types), DermaMNIST (7 skin lesion types), and PathMNIST (9 tissue types).

Key Insights and Ideas

  • Backdoors are found, not built: An attacker doesn't need to force foreign structure into a network. Any neural network that learns to separate classes already contains latent geometric channels bridging them; the attack simply widens an existing road.
  • Hiding in the optimization noise: Detecting this weight modification boils down to a brutal single-sample hypothesis test. Real-world trained weights aren't neat, clean Gaussian bells—they already contain massive, correlated variance spikes from learning actual data features. A defender looking at a spiked eigenvalue has no way of knowing if it's a backdoor or just how the network recognizes cat ears.
  • Decoupling stealth in weights vs. pixels: Undetectability is baked into the weights first. Optimizing the visual input trigger happens afterward, meaning an attacker can tune how invisible the pixel trigger is without ever compromising the stealth of the model's parameters.

Key Results

Tested on ResNet18 (a CNN) and Vision Transformer (ViT), the attack is remarkably potent:

  • High Lethality, Normal Day-Job: Across 16 model-dataset-class pairings, the backdoor achieves Attack Success Rates (ASR) mostly between 85% and 100% (e.g., jumping from 0.00 to 0.89 on ViT BloodMNIST, and 0.33 to 0.93 on ResNet18 CIFAR-10). Meanwhile, Clean Data Accuracy (CDA) barely budges—often dropping by 0% to 1% (with a worst-case drop from 0.93 to 0.84 on ResNet18 PathMNIST).
  • Shrugging Off Defenses: Because the backdoor sits on a direction the model genuinely relies on to tell classes apart, standard defenses—pruning, fine-tuning, fine-pruning, weight clipping, and Gaussian noise injection—fail to remove the backdoor without wrecking clean accuracy by $>5\%$.
  • Zero Detections: Trigger reverse-engineering detector Neural Cleanse flagged 0 out of 16 backdoored configurations, and SmoothInv similarly failed to neutralize the threat.

Limitations and Future Work

  • Conjecture, not a formal proof: Unlike Goldwasser et al.’s toy ReLU networks, real trained neural networks follow an unknown mathematical weight distribution. Thus, white-box undetectability here is an empirically backed conjecture, not a formal cryptographic proof—and holds strictly when the defender lacks a clean reference model (the MLaaS threat model).
  • Hyperparameter intuition: While keeping the spike strength ($\theta$) small makes detection harder, there is currently no analytical formula defining the exact mathematical "safe zone" for $\theta$ or layer dimensions ($d, m$).
  • Beyond Vision: Experiments are currently restricted to image classification; future work aims to extend this universal latent-space trick to Natural Language Processing (NLP) and derive analytical models of trained weight distributions.

Summary updated

BibTeX
@inproceedings{eggen2026backdoor,
  author = {Marte Eggen and Eirik Reiestad and Kristian Gjøsteen and Inga Strumke},
  title = {{Backdoor Channels Hidden in Latent Space: Extending Cryptographic Undetectability to Modern Neural Networks}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=KiUfU8ElOx},
}
Figure