Detection Limits and Statistical Separability of Tree Ring Watermarks in Rectified Flow-based Text-to-Image Generation Models
Ved Umrajkar, Aakash Kumar Singh · 2025
Read Detection Limits and Statistical Separability of Tree Ring Watermarks in Rectified Flow-based Text-to-Image Generation Models by Ved Umrajkar, Aakash Kumar Singh (2025) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2504-03850.txt.
Introduction
Ved Umrajkar and Aakash Kumar Singh tested invisible watermarks in images from newer generators in a 2025 paper. Tree-ring watermarking hides a pattern in an image's starting noise so owners can later prove an image was machine-made. It was proven on older diffusion models, but rectified flow models, the current state of the art, resist the noise inversion step the detector depends on.
Comparing a classic diffusion model with a leading flow model, the team varied prompt guidance settings and applied common image attacks. Inversion limits weakened both watermark recovery and the statistical gap between marked and unmarked images in the flow model. Their results argue detection cannot be trusted until inversion improves, and they released code and data.
Catalog record
| CREATOR | Ved Umrajkar, Aakash Kumar Singh |
|---|---|
| YEAR | 2025 |
| COLLECTION | PAPERS |
| FORMAT | TXT |
| FILE SIZE | 25 KB |
| VERSION | 1.0 |
| LICENSE | http://creativecommons.org/licenses/by/4.0/ |
| RIGHTS | CC BY |
| SOURCE | arXiv |
Source: https://arxiv.org/abs/2504-03850
Browse the full library · About the Tower of Babel
Full text
The opening of the work, from the library's hosted text:
Detection Limits and Statistical Separability of Tree Ring Watermarks in Rectified Flow-based Text-to-Image Generation Models Ved Umrajkar, Aakash Kumar Singh Abstract Tree-Ring Watermarking is a significant technique for authenticating AI-generated images. However, its effectiveness in rectified flow-based models remains unexplored, particularly given the inherent challenges of these models with noise latent inversion. Through extensive experimentation, we evaluated and compared the detection and separability of watermarks between SD 2.1 and FLUX.1-dev models. By analyzing various text guidance configurations and augmentation attacks, we demonstrate how inversion limitations affect both watermark recovery and the statistical separation between watermarked and unwatermarked images. Our findings provide valuable insights into the current limitations of Tree-Ring Watermarking in the current SOTA models and highlight the critical need for improved inversion methods to achieve reliable watermark detection and separability. The official implementation, dataset release and all experimental results are available at this link . 1 Introduction The rapid advancement of generative AI models has raised pressing concerns about the authenticity and provenance of digital content. While watermarking techniques for AI-generated images have emerged as a promising solution, their effectiveness heavily depends on reliable detection and clear separability between watermarked and non-watermarked content. Recent approaches like Tree Ring Watermarking ( Wen et al., 2024 ) have shown promise, but their effectiveness remains unexplored for newer architectures. Recent advances in text-conditioned generative models, particularly rectified flow models, have demonstrated remarkable capabilities in high-resolution image synthesis. Unlike traditional diffusion models, rectified flows model transportation between distributions through linear interpolation of marginals, enabling efficient sampling with fewer discretization steps. However, the implications of these architectural differences on watermarking mechanisms remain unexplored. This work investigates watermark detection and separability in flow-based generative models, focusing on the FLUX () model. We analyze two critical aspects: the reconstruction and detection of embedded watermarks through noise latent inversion, and the statistical separability between watermarked and non-watermarked distributions under various attack scenarios. Our findings demonstrate that while flow-based models present unique challenges for watermark detection, careful consideration of model configuration and inversion methodology can achieve reliable separation. 2 Related Works Watermarking Approaches. Random seed modification watermarks like Tree Ring ( Wen et al., 2024 ) and RingID ( Ci et al., 2024 ) embed a known key into the noise latent that is the starting point for image generation using diffusion. The effectiveness of these approaches has been systematically evaluated through benchmarks like Waves ( An et al., ) , which provides standardized attack scenarios for robustness assessment. Inversion Methods. Recent work has advanced latent inversion techniques, with Hong et al. (2024) demonstrating significantly improved Tree-ring watermark detection using higher-order inversion algorithms compared to naive DDIM inversion. While their work showed remarkable detection accuracy on traditional diffusion models using DPM-Solver++ ( Lu et al., 2022 ) , the effectiveness of these techniques on newer rectified flow-based architectures remains unexplored. Our work extends this analysis to flow-based models, providing insights into watermark detection across different architectures. 3 Methodology Figure 1: Watermarking workflow for both FLUX and Stable Diffusion 3.1 Preliminaries Notation Let x_{t} denote the noisy image at timestep t , with x_{0} and x_{T} representing the generated image and initial noise latent respectively. In frequency domain, X_{T} denotes the Fourier transform of x_{T} . The data and noise distributions are denoted by \pi_{0} and \pi_{1}\sim\mathcal{N}(0,I) respectively. We denote the parameters of a neural network by \theta that can be used for adequate prediction targets and c for the text prompt used to guide the text-to-image generation models. Generation and Inversion Framework Image generation involves producing an image x_{0} from random noise x_{T} , while inversion aims to reconstruct the original noise latent ( \hat{x}_{T} ) from an input generated latent. The noise map obtained from inversion should generate the exact same image x_{0} by sampling using diffusion. Both processes involve solving Ordinary Differential Equations (ODEs) through numerical integration, which can be done using first-order methods, such as Euler’s method. This is usually the case with models like Flux, which follow a more linear trajectory. We focus on two primary approaches: traditional Denoising Diffusion Models (DDMs) and the newer Rectified Flow Transformer models ( Liu et al., 2023 ; Lipman et al., 2022 ; Liu, 2022 ; Esser et al., 2024 ) . FLUX Transformers trained with the flow-matching objective have recently achieved state-of-the-art results in image generation ( Esser et al., 2024 ) . We utilize the open weights FLUX.1-dev () model, which employs a Diffusion Transformer (DiT) ( Peebles & Xie, 2023 ) architecture and differs fundamentally from traditional DDMs like Stable Diffusion ( Rombach et al., 2022b ) in its approach to generation and inversion. FLUX is based on rectified flows, which construct a transportation between the source distribution \pi_{1} (typically standard Gaussian) and the target data distribution \pi_{0} through the following ODE: \frac{dx_{t}}{dt}=v_{t}(x_{t},t,c)dt,\quad X_{0}\sim\pi_{0},\quad t\in[0,1] where v_{t} is a time-dependent velocity field parameterized by the neural network. A key property of rectified flows is that the marginal distribution at time t follows a linear interpolation between x_{0} and x_{1} : x_{t}\sim(1-t)x_{0}+tx_{1} This property enables efficient sampling with relatively few discretization steps. For generation, the ODE is solved forward, while inversion uses the backward Euler method: \mathbf{x}_{t_{i}}=\mathbf{x}_{t_{i-1}}-(t_{i}-t_{i-1})\,\mathbf{v}_{\theta}(\mathbf{x}_{t_{i}},t_{i},c) This contrasts with the usual first-order (naive) DDIM inversion: x_{t+1}=\sqrt{\bar{\alpha}_{t+1}}\,\hat{x}_{0}^{t}+\sqrt{1-\bar{\alpha}_{t+1}}\,\epsilon_{\theta}(x_{t},\sigma_{t},c) For more details and a thorough discussion, refer Appendix Section A . 3.2 Approach Tree-Ring Watermark Embedding The Tree-Ring watermark embedding follows a Fourier space modification approach: \mathbf{x}_{T}=\mathcal{F}^{-1}(\mathbf{X}_{T}),\quad\text{where }\mathbf{X}_{T}[m]=w[m] (1) Here, w represents the ring-pattern watermark key, m the circular mask in channel \mathcal{C}_{w} , and \mathcal{F}^{-1} the inverse Fourier transform. The corresponding recovered key is denoted by \hat{w} which is obtained from the fourier transform of the recovered watermarked noise latent, i.e. \hat{w}=\mathcal{F}({\widehat{x_{T}}^{w}}) . The complete watermarking procedure is detailed in Algorithm 1 . VLM Generated Prompt for Inversion Guidance For real-world scenarios where original prompts might be unavailable, we employ Qwen2-VL-2B-Instruct ( Wang et al., 2024 ) to generate image-grounded captions as alternative prompts. This approach enables evaluation of both prompt-free and prompt-guided inversion scenarios. Evaluation We evaluate watermark separability by analyzing the distribution of Fourier space distances d=\|\hat{w}-w\| between reconstructed ( \hat{w} ) and original ( w ) watermark patterns. To quantify the statistical separation between different configurations (with/without prompts, with/without attacks), we compute the Symmetric KL Divergence between their respective distance distributions: \mathcal{D}_{\text{SKL}}(P\|Q)=\frac{1}{2}[\mathcal{D}_{\text{KL}}(P\|Q)+\mathcal{D}_{\text{KL}}(Q\|P)] , where P and Q represent the distance distributions for different experimental configurations. Algorithm 1 Tree Ring Watermarking Procedure 1: Image dimensions (h,w) , watermark channel c_{w} , radius r , batch size b , seed s 2: Watermarked noise x_{T} , watermark key w , watermark mask m 3: \bm{x_{T}}\sim\mathcal{N}(0,I) (Sample initial Gaussian noise) 4: Generate watermark mask m using radius r and channel c_{w} 5: Generate watermark key w using pattern and seed s 6: Compute FFT of noise: X_{T}\leftarrow\text{FFT}(\bm{x_{T}}) 7: Apply watermark: \hat{X_{T}}[m]\leftarrow w[m] 8: Compute inverse FFT: x_{T}^{w}\leftarrow\text{IFFT}(\hat{X_{T}}) return x_{T}^{w} , w , m 4 Experiments 4.1 Experimental Setup To ensure consistency, we used a fixed global random seed for generating initial latents, enabling reproducibility across models and configurations. The same watermark key, derived from this seed, was applied throughout the study. Additionally, we adopted a uniform timestep schedule for both sampling and inversion, which appeared to