# TRACE: Structure-Aware Character Encoding for Robust and Generalizable Document Watermarking

*Jiale Meng, Jie Zhang, Runyi Hu, Zhe-Ming Lu, Tianwei Zhang, Yiming Li*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/153866) · [Open on the map](../papers.html#p153866)

Category: [AI Safety, Security & Alignment](../pcat/16.md) › [Watermarking and Provenance for Generative Models](../pgroup/49.md) · Type: new method · Keywords: document watermarking, structure-aware character encoding, diffusion models, robust embedding, cross-language generalization

## Summary
TRACE introduces a structure-aware character encoding framework using diffusion models to embed watermarks robustly across documents, achieving over 5 dB PSNR improvement and 5% higher extraction accuracy.

## Explained to a 5-year-old
People want to hide secret messages inside pictures of documents so nobody can see them. The new idea looks at the shapes of letters and uses a special way to move tiny dots in the picture. By moving these dots carefully, the secret message is hidden without making the picture look weird. This hidden message stays safe even if the picture gets copied or changed a lot. It works for many different languages and fonts, making documents more secure.

## Explained to a 5-year-old, longer
Sometimes we want to put secret codes inside pictures of written pages so only the right people can read them. Traditional ways hide codes by changing the edges of the letters, but those edges can get messed up easily. The new idea looks at the inside shape of each letter, which stays the same even if the picture is a bit blurry. It uses a special drawing process that moves tiny points inside the picture to store the secret information. These points are moved in a very careful way so the picture still looks normal to our eyes. The secret code is hidden by changing only a small part of the picture, not the whole thing. Because the method works on the letter shapes, it is not easily broken by noise or copying. After the picture is printed, scanned, or sent in different ways, the secret code can still be found. The approach works for many different languages because the letter shapes are similar in many scripts. It also works for different fonts, so whether the text looks fancy or simple, the secret stays safe. This makes documents more secure, because even if someone copies the page, they cannot easily see or remove the hidden message. In the end, the method gives a reliable way to protect important information in everyday documents.

## For a technical reader
The approach encodes hidden data into document images by exploiting the structural patterns of characters rather than relying on edge features. It uses an adaptive diffusion initialization step to locate key points and define editing regions, followed by guided diffusion to precisely move those points for embedding. A masked region replacement step with a custom loss ensures that visual quality is preserved while minimizing unintended alterations. Experiments show that the method improves image fidelity (over 5 dB PSNR gain) and extraction accuracy (5% higher) after various transmission distortions. The solution generalizes across multiple languages and fonts, making it suitable for real-world document security applications.

## Problem
Embedding data into documents while maintaining robustness to noise and preserving visual quality is challenging, as prior methods depend on edge features or fixed codebooks that are sensitive to interference and lack generalization across languages and fonts.

## Method
The approach uses adaptive diffusion initialization to locate key points and editing regions, employs guided diffusion encoding to precisely move points for embedding, and applies masked region replacement with a loss that minimizes visual distortion.

## Results
The approach achieves over 5 dB improvement in PSNR and 5% higher extraction accuracy after cross-media transmission compared to existing methods, and it generalizes across multiple languages and fonts.

## Contributions
It introduces a structure-aware character encoding scheme that leverages diffusion models for localized embedding, provides adaptive point and region detection, and demonstrates strong robustness and cross-language generalizability.

## Practical relevance
It enables reliable watermarking for documents in real-world security scenarios, protecting content across diverse languages and fonts.

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/153866)
