Improving Non-Transferable Representation Learning by Harnessing Content and Style

Ziming Hong, Zhenyi Wang, Li Shen, Yu Yao, Zhuo Huang, Shiming Chen, Chuanwu Yang, Mingming Gong, Tongliang Liu

While traditional machine learning strives for maximum generalization, certain applications require the exact opposite. Non-Transferable Learning (NTL) aims to restrict a model's performance on specific target domains while maintaining high accuracy on its source domain. This technique is highly valuable for intellectual property (IP) protection—ensuring models only function for authorized users—and for developing controllable AI systems.

Existing NTL methods often rely on reducing statistical dependence between source and target representations. However, these approaches are largely "causally blind." By failing to distinguish between task-relevant content and domain-specific style, they remain vulnerable to distribution shifts and malicious interventions. To address this, researchers have introduced H-NTL (Harnessing Content and Style), a novel approach that leverages causal reasoning to make non-transferability significantly more robust and effective.

The Pitfalls of Statistical NTL

The core objective of NTL is to learn representations that succeed on a source domain but fail on a specific, unauthorized target domain. Current statistical methods attempt this by minimizing the correlation between the two domains. The authors argue that this strategy is fundamentally flawed because it entangles two distinct latent factors:

  1. Content ($C$): The intrinsic, class-related features (e.g., the physical shape and characteristics of a "camel").
  2. Style ($S$): Domain-specific nuisance factors (e.g., a "desert" background in the wild versus a "fence" background in a zoo).

Because statistical methods fail to separate these factors, they frequently fall into two traps:

  • Spurious Correlation: The model learns to predict labels based on style (e.g., "if there is sand, it must be a camel"). If the target domain shares similar styles, the model may still inadvertently perform well, bypassing the NTL restriction.
  • Fake Independence: To force poor performance on the target domain, the model might learn to ignore content entirely, making the representation fragile and easily broken by simple distribution shifts or "masquerade" attacks.

The H-NTL Methodology

To overcome these limitations, H-NTL operates in two main stages: causal disentanglement and dual-path knowledge distillation.

1. Causal Disentanglement

The researchers first define a causal model where an observed instance $X$ is generated by two latent factors: Content ($C$) and Style ($S$). Crucially, only Content causes the Label ($Y$), while Style causes the Domain ($D$).

Causal graph modeling the data generation process, where latent factors Content (C) and Style (S) generate the observed image (X).

To separate these factors, H-NTL employs a Variational Auto-Encoder (VAE) framework. Two separate encoders infer $C$ and $S$ from the input data. The training objective ensures that $C$ is optimized for predicting labels across domains, while $S$ is optimized for identifying the data's domain of origin but remains useless for label prediction.

2. Dual-Path Knowledge Distillation

Once disentangled, these factors act as "teachers" for a student NTL model through two distinct distillation paths:

  • Source Path: The model is constrained to fit the content factors. This ensures it learns the true causal features necessary for high accuracy on the authorized source data.
  • Target Path: The model is forced to fit the style factors. Because style factors contain virtually no predictive information about the labels, the model's performance on the target domain naturally degrades to near-random guessing.
The H-NTL framework utilizing dual-path knowledge distillation to guide the student model.

For "source-only" NTL scenarios—where the target domain is unknown during training—the authors utilize image style augmentations (such as blurring or color jittering) to simulate potential target domains.

Key Results and Insights

The authors evaluated H-NTL across a wide range of benchmarks, including digit tasks (MNIST, SVHN), real-world challenges (VisDA, OfficeHome), and watermarked datasets designed for IP protection scenarios.

  • Target Degradation: H-NTL successfully degraded target accuracy to near-random levels. For instance, on a 10-class task, H-NTL dropped target accuracy to 9.90%, effectively neutralizing the model on unauthorized data.
  • Source Maintenance: Unlike previous baselines that suffered 6-9% drops in source accuracy, H-NTL consistently maintained source accuracy within ~1-2% of a standard, unrestricted supervised model.
  • Robustness to Attacks: Because H-NTL relies on true causal relationships rather than statistical tricks, it proved highly resilient to "masquerade attacks" (where target data is modified to mimic source data), whereas baseline NTL methods collapsed.

The most elegant insight from H-NTL is treating "useless" style features as a target for the model in protected domains. By forcing the model to represent a target image entirely via its style, it effectively crowds out the label-relevant content, ensuring non-transferability.

Limitations and Future Work

The primary limitation of H-NTL is its training efficiency. The two-stage process—training a complex VAE for disentanglement followed by dual-path distillation—requires more computational resources and time than simpler statistical approaches. Future research will likely focus on optimizing this training pipeline and exploring how these causal principles can be applied to more complex data distributions beyond standard image classification.

Summary updated

BibTeX
@inproceedings{hong2024improving,
  author = {Ziming Hong and Zhenyi Wang and Li Shen and Yu Yao and Zhuo Huang and Shiming Chen and Chuanwu Yang and Mingming Gong and Tongliang Liu},
  title = {{Improving Non-Transferable Representation Learning by Harnessing Content and Style}},
  booktitle = {International Conference on Learning Representations},
  year = {2024},
  url = {https://openreview.net/forum?id=FYKVPOHCpE},
}
Figure