Lightweight-Mark: Rethinking Deep Learning-Based Watermarking

Yupeng Qiu, Han Fang, Ee-Chien Chang

TL;DR

Lightweight-Mark is a novel framework that achieves state-of-the-art watermarking performance while utilizing merely 2.2% of the parameters of previous leading models. By identifying a fundamental mismatch between standard training losses and actual decoding goals, the authors introduce a "detachable" training architecture and a specialized loss function. These innovations allow tiny models to punch far above their weight class in both invisibility and robustness.

What Problem Does This Paper Address?

Digital watermarking—the art of hiding secret information within media to prove ownership—faces a persistent "trilemma" between invisibility (not degrading the image), robustness (surviving edits or noise), and efficiency (running on low-power devices).

While deep learning has significantly pushed the boundaries of invisibility and robustness, the resulting models are often massive, containing millions of parameters. This makes them impractical for real-world deployment on mobile devices or within complex generative pipelines like Diffusion models or NeRFs. Existing "lightweight" models do exist, but they typically sacrifice significant robustness to maintain a small footprint.

The authors identify the root cause of this inefficiency: standard training losses, such as Mean Squared Error (MSE), force models to waste "brain power" (parameter capacity) on optimization directions that do not actually improve decoding accuracy. For instance, these losses often push correctly decoded bits unnecessarily far away from the decision boundary, consuming resources that could be better spent elsewhere.

Methods

To address these inefficiencies, the researchers propose a "plug-and-play" approach to make watermarking models significantly more efficient without compromising performance:

  1. Loss Decomposition: The authors mathematically demonstrate that standard losses (like MSE and BCE) consist of three components: deflation (reducing errors), inflation (pushing correct bits further from the boundary), and regularization. Only deflation directly improves accuracy; the others consume valuable parameter capacity.
  2. Detachable Projection Head (PH): During the training phase, a temporary module is added to handle the "irrelevant" optimization directions. Once training is complete, this head is discarded, leaving behind a tiny, highly specialized "backbone" for inference.
Training vs. Inference with the Detachable Projection Head
  1. Decoding-Oriented Surrogate Loss (DO): They introduce a "safe distance" parameter ($\epsilon$). If a bit is correctly decoded and is already "safe" from the decision boundary, the loss function stops penalizing it. This prevents the model from overfitting on easy bits and focuses its limited capacity on the difficult ones.
  2. Five-Module Framework: The watermarking pipeline is reorganized into five distinct sub-modules, allowing for targeted parameter reduction:
  3. IP & MP: Image and Message Preprocessing.
  4. FF: Feature Fusion (embedding the mark).
  5. NWIP: Noised Watermarked Image Preprocessing (the first line of defense against attacks).
  6. ME: Message Extraction.

Datasets

  • Training: The models were trained on the COCO dataset, a standard benchmark for large-scale object detection and segmentation.
  • Evaluation: Testing was performed on the USC-SIPI image database.
  • Attacks: To rigorously test robustness, the authors employed a "Combined Noise Layer" that included Gaussian blur, Median blur, Gaussian noise, Salt & Pepper noise, JPEG compression, and Dropout. They also evaluated the model against advanced diffusion-based purification attacks (PRGAI and DiffPure).

Key Insights and Ideas

  • The "Aha!" Moment on Redundancy: The researchers realized that high-performance models are large not because the task is inherently complex, but because standard loss functions (MSE/BCE) are inefficient. They force the model to represent the exact continuous value of a bit rather than just its sign (positive or negative).
  • Strategic Parameter Allocation: By decoupling the decoder into NWIP and ME modules, the authors found they could independently reduce parameters in each component. They discovered that the NWIP module is the most critical for combating noise, allowing them to allocate resources much more intelligently.
  • Stability through $\epsilon$: Simply removing the "inflation" part of the loss causes training to collapse. The introduced "safe distance" $\epsilon$ provides the necessary stability to keep training on track while still reaping the benefits of a highly compressed model.

Key Results

The proposed Lightweight-Mark framework demonstrates exceptional performance across all key metrics, particularly in efficiency:

Model Size and Computational Cost Comparison
  • Massive Compression: The proposed model uses a mere 0.016M parameters, compared to 36M for CIN (a ~2250x reduction) and 0.75M for FIN.
  • Computational Efficiency: It requires only 0.22 GFLOPs, whereas previous state-of-the-art models like CIN require over 34 GFLOPs.
  • Superior Robustness: Despite its microscopic size, Lightweight-Mark (utilizing the DO loss) achieved an average decoding accuracy of 99.36% under combined noise, outperforming much larger models like MBRS (99.25%) and HiDDeN (76.14%).
  • Invisibility: It maintained a high PSNR (41.70 dB), ensuring the watermark remains virtually invisible to the human eye.
  • Diffusion Attack Resistance: The model achieved nearly 100% accuracy against PRGAI diffusion attacks, overcoming a significant hurdle for many existing watermarking schemes.

Limitations and Future Work

  • Geometric Distortions: The initial ultra-lightweight model struggled with geometric attacks such as rotation and perspective shifts. The authors had to create a slightly larger "Lightweight Model +" (0.056M parameters) with an added SE-block to handle these, suggesting that extreme lightness has a ceiling when dealing with complex spatial transformations.
  • Hyperparameter Tuning: The "safe distance" $\epsilon$ and the weights for the DO loss require manual tuning, which can be non-trivial to optimize for different applications.
  • Training Resources: While the inference model is tiny, the training process still requires the extra Projection Head and standard deep learning hardware. Thus, the "lightweight" benefit is primarily realized at the end-user or deployment stage.

The authors suggest that future work could involve integrating these "plug-and-play" DO and PH methods into even more complex architectures to determine if the efficiency gains scale to other domains.

Summary updated

BibTeX
@inproceedings{qiu2025lightweight,
  author = {Yupeng Qiu and Han Fang and Ee-Chien Chang},
  title = {{Lightweight-Mark: Rethinking Deep Learning-Based Watermarking}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=ag3uveGZCb},
}
Figure