IEEE/CVF Winter Conference on Applications of Computer Vision (WACV) 2026

Diffusion-Based Authentication of Copy Detection Patterns: A Multimodal Framework with Printer Signature Conditioning

Abstract

Counterfeiting affects diverse industries, including pharmaceuticals, electronics, and food, posing serious health and economic risks. Printable unclonable codes, such as Copy Detection Patterns (CDPs), are widely used as an anti-counterfeiting measure and are applied to products and packaging. However, the increasing availability of high-resolution printing and scanning devices, along with advances in generative deep learning, undermines traditional authentication systems, which often fail to distinguish high-quality counterfeits from genuine prints.

In this work, we propose a diffusion-based authentication framework that jointly leverages the original binary template, the printed CDP, and a representation of printer identity that captures relevant semantic information. Formulating authentication as multi-class printer classification over printer signatures lets our model capture fine-grained, device-specific features via spatial and textual conditioning. We extend ControlNet by repurposing the denoising process for class-conditioned noise prediction, enabling effective printer classification.

On the Indigo 1×11\times1 Base dataset, our method outperforms traditional similarity metrics and prior deep learning approaches, while generalizing to counterfeit types unseen during training.

Problem Setting

Authentication is formulated as printer-class prediction under multimodal conditioning.

  1. Binary template supplies structural reference.
  2. Printed CDP supplies spatial printer-specific degradation.
  3. Printer identity text supplies class-level semantic conditioning.

A candidate is accepted as authentic only if predicted printer identity matches the known source printer.

c^=argminciEt[ϵfθ(xt,t,z,ci)22]\hat{c} = \arg\min_{c_i} \mathbb{E}_t \left[ \| \epsilon - f_\theta(x_t, t, z, c_i) \|_2^2 \right]

Visual Overview: Problem To Solution

Figure 1: Failure Case For Similarity-Based Authentication

The left side starts from the binary template and authentic print. The right side shows counterfeit prints obtained after estimation attacks. Even when counterfeit quality is high, score-based checks such as NCC can remain deceptively high, which motivates moving from direct similarity scoring to printer-aware classification.

Failure case: high-quality counterfeit CDPs can still obtain high similarity scores

Threat model and failure mode: deep-learning-based counterfeits can preserve high structural similarity, making thresholded metrics less reliable.

Figure 2: Printer-Conditioned Diffusion Authentication Pipeline

This pipeline takes the noised template latent and conditions denoising on both the printed CDP (spatial signal) and printer identity (class signal). The model predicts noise for each candidate class and selects the class with minimum reconstruction error, then authenticates only if the predicted class matches the expected source printer.

Interactive Figure 2 Walkthrough

Click through the pipeline stages to highlight where each operation happens in the architecture.

Interactive Figure 2: class-conditioned diffusion authentication pipeline

Highlight box follows the selected step.

Step 1

Step 1: Build Joint Conditioning

The noised latent is conditioned with printed-CDP spatial features and printer-identity text features to expose both local texture and class semantics.

Authentication Strategy Simulator

Simulates the final policy: authenticate only when predicted class equals expected authentic printer.

Rule Logic

  1. Select expected authentic printer label.
  2. Use model output as predicted class label.
  3. Accept only if labels match exactly.

HP55 == HP55

Match -> Authentic

Decision

Counterfeit

Predicted class: HP55

Expected class: HP55

Predicted class does not match expected printer.

Key Insight

A printer’s physical signature is embedded in how the binary template is degraded through printing and scanning. A diffusion model that can reverse this degradation for each class reconstructs accurately only when conditioned on the correct class, turning denoising quality into an authentication signal.

Results At A Glance

P_err (average of P_fa and P_miss)
P_miss (missed authentic detection rate)
P_fa (false counterfeit acceptance rate)
NCC
0.286
P_err
0.301
P_miss
0.273
P_fa
SSIM
0.275
P_err
0.281
P_miss
0.269
P_fa
[4]
0.091
P_err
0.118
P_miss
0.064
P_fa
Ours
0.023
P_err
0.005
P_miss
0.042
P_fa

Lower is better for all three metrics. The chart summarizes the overall error profile used in the detailed tables below.

Method Comparison (Authentication Error)

MethodP_errP_miss (HP55)P_miss (HP76)P_miss meanP_fa (HP55_55)P_fa (HP55_76)P_fa (HP76_76)P_fa (HP76_55)P_fa mean
NCC0.2860.2920.3100.3010.3000.3610.2640.2010.273
SSIM0.2750.2640.3000.2810.2920.2850.2920.2100.269
Chaban et al. (retrained)0.0910.1250.1110.1180.0970.1600.0000.0000.064
Ours0.0230.0490.0350.0050.0000.0140.0070.0000.042

Classification Analysis

Classification confusion matrix (%)
Actual \\ Pred HP55 HP76 HP55_55 HP55_76 HP76_76 HP76_55
HP55 95 5 0 0 0 0
HP76 3 97 0 0 0 0
HP55_55 0 0 83 15 1 1
HP55_76 1 0 14 83 1 1
HP76_76 0 1 1 1 89 8
HP76_55 0 0 2 2 19 77
Diagonal (correct classification)
Off-diagonal confusion

The confusion matrix shows very strong separation for authentic classes (95-97%). Most confusion occurs among counterfeit subclasses, which has limited impact on final authentication because acceptance requires matching the expected authentic printer class.

Generalization to Unseen Counterfeits

Counterfeit type groupP_errP_missP_fa
Known counterfeit0.0120.0240.000
Unknown counterfeit0.0120.0240.000

Ablations And Reconstruction

Binary Template Reconstruction (VAE)

ConfigurationAvg. MSE
Pretrained VAE0.581
Fine-tuned VAE0.075

Ablation: Template Input

Input configurationP_errP_missP_fa
No template input0.6600.4300.200
With template input0.0230.0420.005

Ablation: Printer Identity Representation

RepresentationP_errP_missP_fa
Printer index-based0.5210.9620.082
Appearance-based text0.0350.0630.001
Printer information text0.0230.0420.005

Contributions

  1. First unified CDP authentication framework combining binary template, printed CDP, and printer identity conditioning.
  2. ControlNet extension from generation to class-conditioned classification by per-class noise prediction.
  3. Multi-printer authentication setting that captures printer-specific signatures in one model.

Future Work

  1. Authentic-only training without requiring counterfeit samples.
  2. Scaling evaluation to larger printer sets and broader hardware diversity.
  3. Robustness validation across varied acquisition pipelines, scanners, and capture resolutions.

BibTeX

@inproceedings{atoki2026diffusioncdp,
title={Diffusion-Based Authentication of Copy Detection Patterns: A Multimodal Framework with Printer Signature Conditioning},
author={Atoki, Bolutife and Tkachenko, Iuliia and Kerautret, Bertrand and Crispim-Junior, Carlos},
booktitle={Proceedings of the IEEE/CVF Winter Conference on Applications of Computer Vision (WACV)},
year={2026}
}