FiLM-CAM: Keyed Feature Modulation for Conditional-Access Watermarking

Yash Kulthe, Vishal Asnani, Shruti Agarwal, Andrew Gilbert, John Collomosse

TL;DR

FiLM-CAM introduces a "Conditional Access Module" for image watermarking that uses a secret key to modulate a neural network's internal features. This ensures that only authorized users can embed, extract, or cleanly remove watermarks, achieving high-fidelity image restoration (PSNR ~54dB) while maintaining security against unauthorized access.

What Problem Does This Paper Address?

As generative AI makes it easier to create and spread synthetic media, invisible watermarking has become a vital tool for establishing content provenance and authenticity. However, "open" watermarking systems are vulnerable: unauthorized parties might spoof watermarks, monitor them, or remove them to hide an image's origin.

Currently, organizations wanting private watermarking must train and maintain separate, independent encoder-decoder models for every deployment. This creates a massive "deployment burden." The authors of FiLM-CAM propose a way to build access control directly into the model's architecture. By using a secret key, a single shared model can support multiple private domains, where the ability to interact with the watermark is functionally contingent on possessing the correct key.

Methods

The core innovation is the Conditional Access Module (CAM), which leverages Feature-wise Linear Modulation (FiLM).

Figure 1: Architecture of FiLM-CAM. Stage 1: The Embedder generates watermark residuals, which are added to the cover image, producing a watermarked image. The Extractor recovers the watermark from the image if it receives the correct key; if an incorrect key is provided, the extractor outputs an all-zero bit message. Stage 2: The Embedder network is trained to output residuals when given a watermarked image, such that it can be used to remove the watermark. Conditional Access Module (CAM): A binary key k is mapped to an embedding ek = ϕ(k) and transformed via ψ to produce feature-wise parameters (γk, βk). These conditions are the intermediate feature maps via FiLM modulation Fcond = γk ⊙F + βk, enabling key-dependent watermark embedding, decoding, and removal.

Instead of just mixing a key with the watermark signal, FiLM-CAM integrates the key into the network's internal feature hierarchy. A binary key is mapped to an embedding, which then generates scale ($\gamma$) and shift ($\beta$) parameters. These parameters modulate the intermediate feature maps of the encoder and decoder.

Key technical highlights include:

  • Logit-Space Embedding: Rather than adding residuals directly to pixels, the system works in a transformed logit space. This avoids saturation issues and allows for much "cleaner" watermark removal.
  • Iterative Refinement for Removal: The system reuses the embedder network to estimate the watermark residual. Since the original "clean" image isn't available during removal, it uses an iterative process to refine the image restoration.
  • Wrong-Key Training: To enforce security, the model is explicitly trained to fail (outputting an all-zero bitstring) when presented with an incorrect key.
Detail of the Conditional Access Module (CAM) using FiLM.

Datasets

The authors trained FiLM-CAM on a 100K image subset of the MIRFlickr-1M dataset. For evaluation, they tested the model's performance and robustness across three diverse datasets:

  • COCO: For large-scale natural image diversity.
  • DIV2K: For high-quality images with high spatial fidelity.
  • SA-1B: To test variability at scale.

Key Insights and Ideas

  • Feature-Level Binding: By binding the key to the features of the network rather than just the pixels of the watermark, the system becomes much harder to bypass. The network's very "understanding" of the watermark changes based on the key.
  • The Security Gap: The authors found that training with a "noise layer" (simulating distortions like JPEG compression or cropping) actually makes the extractor more sensitive to key correctness. It forces the model to rely on the keyed features to find the signal amidst the noise.
  • Architecture Agnostic: The CAM is a lightweight module that can be plugged into various existing watermarking backbones (like ResNet or ConvNeXt) without requiring a total redesign.
  • Asymmetric Removal: A major "aha" moment is the sharp performance drop when using a wrong key for removal. While a correct key restores the image to near-perfection, a wrong key fails to remove the signal effectively, leaving the watermark detectable.
Bit accuracy remains near random (50%) until the query key is nearly identical to the true key.

Key Results

FiLM-CAM performs competitively with State-of-the-Art (SOTA) methods while adding the benefit of conditional access:

  • Accuracy & Quality: It achieves near-perfect (~0.99) bit accuracy with high image quality (PSNR ~46-48dB), matching or beating baselines like TrustMark and PixelSeal.
  • Security Gap: When an incorrect key is used, bit accuracy drops to ~0.53 (essentially random guessing), demonstrating strong access control.
  • High-Fidelity Removal: Using the correct key and message, the system can remove watermarks with a PSNR of ~54dB—a significant improvement over regeneration-based attacks which typically hover between 20-30dB.
Table 1: Comparison with SOTA neural image watermarking across three evaluation datasets. We report bit accuracy (correct key ↑, wrong key ↓), PSNR (↑), SSIM (↑), and LPIPS (↓).

Limitations and Future Work

  • Destruction vs. Removal: While FiLM-CAM prevents authorized removal (restoring the original image), it cannot prevent "key-free destruction." An attacker can still destroy the watermark by overwriting it with a new one or using heavy AI-based image regeneration, though they won't get the original "clean" image back.
  • Bit Capacity: The current implementation uses a 100-bit payload. Future work could explore increasing this capacity.
  • Sharpening the Asymmetry: The authors noted that unauthorized removal attempts currently leave a "substantial portion" of the watermark intact. They aim to further sharpen this gap so that unauthorized attempts result in even more obvious failures.

Summary updated

Abstract

We propose FiLM-CAM; a conditional-access image watermarking approach that enforces authorized encoding, decoding, and removal through keyed feature modulation. A secret key conditions a Feature-wise Linear Modulation (FiLM) mechanism that transforms the internal representation of the watermark signal before embedding, thereby coupling the payload to the key at the feature, rather than pixel level. The same key must be presented to condition the decoder to correctly recover the payload embedded in an image. To enforce conditional access, we train the system to maximize the performance gap between authorized and unauthorized use, ensuring reliable extraction under the correct key while inducing failure under incorrect keys. In addition, we design our encoder to estimate the watermark residual invariant to the presence of pre-existing watermarks. This design enables conditional watermark removal via simple re-encoding and subtraction of the residual using iterative refinement, contingent on knowledge of the secret key. We evaluate FiLM-CAM across multiple watermarking encoder-decoder backbones, demonstrating that keyed feature modulation serves as an effective, architecture-agnostic conditional access module (CAM) for image watermarking.
BibTeX
@inproceedings{kulthe2026film,
  author = {Yash Kulthe and Vishal Asnani and Shruti Agarwal and Andrew Gilbert and John Collomosse},
  title = {{FiLM-CAM: Keyed Feature Modulation for Conditional-Access Watermarking}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=1b70GKuMjn},
}
Figure