---
title: "AI Watermarking 101: Tools and Techniques"
description: "AI watermarking marks generated content with visible or invisible patterns that convey provenance, applied either during generation (requires model access, more robust) or after the fact (works for closed models but not all modalities)."
url: "https://swe.quest/articles/ai-watermarking-101-tools-and-techniques-94e969e09bd8d18d"
canonical: "https://huggingface.co/blog/watermarking"
source: "Hugging Face"
published: "2024-02-26"
difficulty: "easy"
kind: "Deep dive"
reading_minutes: 10
tags: ["ai-safety","llms","computer-vision","speech-audio"]
---

# AI Watermarking 101: Tools and Techniques

A post on [Hugging Face](https://swe.quest/sources/hugging-face.md), published 2024-02-26, 10 min read, Deep dive. Original: [https://huggingface.co/blog/watermarking](https://huggingface.co/blog/watermarking)

## Summary

AI watermarking marks generated content with visible or invisible patterns that convey provenance, applied either during generation (requires model access, more robust) or after the fact (works for closed models but not all modalities). For text, LLM watermarks split candidate tokens into "green" and "red" lists based on prior context and boost or forbid them, and detection counts token colors, so short texts yield low confidence and false positives remain a problem. Images can be watermarked at generation (IMATAG) or signed post hoc with C2PA credentials (Truepic), while audio approaches like AudioSeal jointly train an embedder and a sample-level detector that is robust to editing. Related defenses such as Glaze, Photoguard, Nightshade and Fawkes cloak or poison images, and open watermarkers or detectors make removal easier.

Written by swe.quest, not by the author.

**Difficulty:** Easy: no special background needed; explains what something is and why it matters

## Topics

- [AI safety](https://swe.quest/tags/ai-safety.md) (AI & ML)
- [LLMs](https://swe.quest/tags/llms.md) (AI & ML)
- [Computer vision](https://swe.quest/tags/computer-vision.md) (AI & ML)
- [Speech & audio](https://swe.quest/tags/speech-audio.md) (AI & ML)

## Prerequisites

- LLM token sampling and logits ([easy posts on LLMs](https://swe.quest/tags/llms.md?difficulty=easy))

## Keywords

AudioSeal, C2PA, Text Generation Inference, Nightshade, IMATAG, Truepic, Glaze, WaterBench

## Related posts

- [Introducing SynthID Text](https://swe.quest/articles/introducing-synthid-text-0c45bcd5ab38569e.md): Hugging Face · 2024-10-23 · Medium · 5 min read · LLMs, AI safety, Python
  SynthID Text, Google DeepMind's LLM watermarking technique, ships in Hugging Face Transformers v4.46.0.
- [Video Invisible Watermarking at Scale](https://swe.quest/articles/video-invisible-watermarking-at-scale-acb75c9e33b19572.md): Meta Engineering · 2025-11-04 · Medium · 8 min read · Video & media, Inference & serving, Performance engineering, Cost optimization, Privacy
  Meta runs ML-based invisible video watermarking (VideoSeal-style) as a custom FFmpeg filter for provenance use cases like detecting AI-generated video and identifying first uploaders.
- [Build awesome datasets for video generation](https://swe.quest/articles/build-awesome-datasets-for-video-generation-234cead646e03175.md): Hugging Face · 2025-02-12 · Medium · 5 min read · Model training, Computer vision, Data pipelines, Video & media
  A three-stage pipeline for building small video-generation fine-tuning datasets: acquisition with yt-dlp and scene splitting, per-frame filtering for watermarks, aesthetics and NSFW content plus an OpenCV motion score, and captioning with Florence-2 or a video captioner like Qwen2VL.
- [Finding leaked passwords with AI: How we built Copilot secret scanning](https://swe.quest/articles/finding-leaked-passwords-with-ai-how-we-built-copilot-secret-scanning-26ede51a550b66b2.md): GitHub Engineering · 2025-03-04 · Medium · 8 min read · LLMs, Evaluation, Security, Capacity planning
  GitHub replaced regex-based detection of generic passwords with an LLM prompt that judges candidate secrets from their file context.
- [How we think about text classification in the LLM era](https://swe.quest/articles/how-we-think-about-text-classification-in-the-llm-era-a6b9a6bf775ffc1a.md): Medium Engineering · 2026-08-19 · Medium · 13 min read · LLMs, Machine learning, Evaluation, Cost optimization
  Medium replaced its aging NSFW story classifier with a prompt-based LLM classifier that runs inside Snowflake Cortex SQL queries.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
