Manuscript Offprint
arXiv:2611.07810Self-Supervised Diffusion Models for Handwritten Signature Verification via Ruin Reconstruction
Peirong Zhang, Zhenhua Yang, Jiaxin Zhang, Moises Diaz, Miguel A. Ferrer, Umapada Pal, Senior Member, IEEE, Wei Zhou, Senior Member, IEEE, Lianwen Jin* Member, IEEE
Abstract—Handwritten signature verification (HSV) is a critical biometric technique in legal and forensic authentication, whose efficacy hinges on the discriminability of signature representations. Current HSV methods predominantly adopt supervised learning to enhance representation quality, leaving self-supervised learning largely unexplored. We propose SigDiffuser, a diffusion-based self-supervised framework for signature representation and verification. At its core, SigDiffuser introduces a novel pretext task termed Reconstruction from Ruins (RFR), which deliberately “ruins” signatures through severe crumpling, obliterating their structural integrity and writing styles. A visual encoder is employed to capture crucial handwriting patterns from intact signature regions, guiding the denoiser to reconstruct the “ruined” portions and learning meaningful representations. Additionally, we introduce a pyramidal feature aggregation module (PFAM) to bridge the visual encoder and denoiser, enhancing representation quality via hierarchical aggregation and modulation. Extensive experiments on multilingual signature datasets demonstrate that SigDiffuser significantly outperforms both state-of-the-art SSL methods and HSV models. We further show that increasing the crumpling severity on signatures effectively improves representation quality. Notably, our work demonstrates that extreme destruction, coupled with self-supervised diffusion models, can yield superior signature representation compared to traditional mild deformations, paving new avenues for HSV and other biometric domains. Code will be publicly available.
Index Terms—Offline signature verification, Biometrics, Self-supervised learning, Diffusion models
I. INTRODUCTION
HANDWRITTEN signature verification (HSV) has been a longstanding and critical biometric means for distinguishing genuine signatures from forgeries [1]. Depending on signature's properties, this technique can be broadly categorized into online and offline forms. Online HSV [2, 3] processes dynamically captured digital signatures, while the offline counterpart [4, 5] analyzes static signatures scanned or photographed from paper. Despite the growing prevalence of electronic signing devices, the traditional use of offline signatures on physical documents is still prevalent across various domains such as financial transactions, legal proceedings,
and government administration. Consequently, offline HSV remains crucial for ensuring the security and trustworthiness of these applications. In this paper, we focus on offline HSV.
Over the past few decades, the growing demand for real-world HSV has spurred substantial efforts to enhance the reliability of HSV systems. Mainstream methods involve feature representation extraction followed by similarity measurement, in which learning high-quality representations is the key to building a reliable HSV system. Supervised learning techniques have been intensively studied to enhance feature extraction, such as local pattern learning with CNN [6] and global contextual modeling using Transformer [5]. However, the surge of self-supervised representation learning in other biometric domains [7, 8] presents a promising avenue for HSV, particularly given the limited availability of HSV data due to the challenge of collecting skilled forgeries. Despite its potential, self-supervised learning remains largely shadowed in the HSV domain, with only a few studies delving into its effectiveness thus far [9, 10].
Generative representation learning is currently one of the dominant self-supervised learning paradigms in computer vision, as opposed to contrastive learning [11]. Following the principle of “comprehension by generation”, it typically reconstructs corrupted (masked/augmented) images to extract transferable feature representations for downstream tasks. Masked image modeling (MIM), standing as a prominent exemplar within this paradigm, has achieved remarkable success across myriad vision tasks [12, 13]. However, as exemplified in Fig. 1 (a), MIM struggles to accurately restore fine-grained textures and strokes within signatures, yielding only blurred edges and oversimplified structures. This suggests MIM is a suboptimal pretext task for learning effective signature representation.
Beyond MIM, diffusion-based approaches [14, 15, 16, 17] have emerged as a potent force for generative representation learning. Diffusion models progressively add noise to corrupt the clean image into pure Gaussian noise in a forward process, then generate targets via backward denoising. Recent studies [14, 16, 18] exploit visual encoders alongside the denoiser to extract latent codes from auxiliary images, aiming to assist synthesis and facilitate representation learning. Intuitively, akin to how one discernes the genuineness and authorship of a partially crumpled signature from its visible regions, the corruption process of diffusion models parallels the physical crumpling of a signature, while the visual encoders' latent encoding closely resembles human visual perception of intact regions. This congruence offers a compelling routine for signature representation learning, in which the diffusion model
Peirong Zhang, Zhenhua Yang, Jiaxin Zhang, and Lianwen Jin are with the School of Electronic and Information Engineering, South China University of Technology, Guangzhou, China. (E-mail: epeizhang@mail.scut.edu.cn; eelwjin@scut.edu.cn)
Moises Diaz and Miguel A. Ferrer are with the Instituto Universitario para el Desarrollo Tecnológico y la Innovación en Comunicaciones, Universidad de Las Palmas de Gran Canaria, Las Palmas, Spain.
Umapada Pal is with the Computer Vision and Pattern Recognition Unit, Indian Statistical Institute, Kolkata 700108, India.
Wei Zhou is with the School of Computer Science and Informatics, Cardiff University, Cardiff, UK.
Corresponding author.

(a) Masked Image Modeling (MIM)


(b) Reconstruction from Ruins (RFR)

Fig. 1: Qualitative and quantitative (Structural Similarity Index (SSIM)) comparisons between MIM and our proposed RFR. (a) MIM exhibits blurred, oversimplified structures that fail to recover complex strokes, resulting in suboptimal representations. (b) In contrast, RFR faithfully reconstructs stroke details and character structures despite severe crumpling, achieving higher SSIM metrics. Although not exact replicas, the fidelity suffices for capturing effective signature representation.
can be tasked with reconstructing the “crumpled” part through iterative denoising, guided by the visual features of “uncrumpled” details extracted by an additional visual encoder. This approach allows the visual encoder to perceive individualized signature patterns and encode them into latent features, achieving representation learning. Furthermore, the diffusion model’s accurate reconstruction of signature details facilitates global visual perception, thereby refining representation quality.
Motivated by this insight, we propose SigDiffuser, a novel diffusion framework that leverages a visual encoder to condition a diffusion denoiser for signature representation learning. SigDiffuser introduces two key innovations. First, we propose Reconstruction from Ruins (RFR; Fig. 1 (b)), a novel pretext task that reconstructs a severely corrupted signature region using a spatially distinct clean portion. Unlike existing pretext tasks that employ mild deformation (e.g., color jittering, image rotation) [14, 15, 16, 19], RFR inflicts an unprecedented level of corruption, i.e., crumpling, upon signatures, obliterating their text structures and writing styles into a “ruined” state. By compelling SigDiffuser to restore these “ruins”, RFR incentivizes the visual encoder to perceive sufficient writing traits of the clean portion to aid in reconstruction, thereby enhancing latent representation quality. Second, existing methods [14, 16] bridge the encoder and denoiser with a single latent vector, limiting representation capacity. We address this by introducing a pyramidal feature aggregation module (PFAM) that aggregates multi-scale encoder features into hierarchical latent representations. These features are injected into corresponding denoiser layers for fine-grained modulation, empowering the encoder to learn more informative representations.
We adopt HSV as the downstream task and evaluate SigDiffuser on multiple HSV datasets spanning different languages, including BHSig260-B (Bengali) [20], BHSig260-H (Hindi) [20], HanSig (Chinese) [21], UTSig (Persian) [22], and CEDAR (English) [23]. Extensive experiments demonstrate that SigDiffuser significantly outperforms not only existing self-supervised representation learning methods but also state-of-the-art (SOTA) HSV models. We further observe that increasing the deformation degree enhances representation quality, substantiating the effectiveness of applying severe destruction within the RFR task.
Our main contributions are summarized as follows:
- We propose SigDiffuser, a pioneering framework that integrates diffusion models with self-supervised learning for signature representation. It leverages a visual encoder to capture unique writing patterns from intact signature regions, enabling effective reconstruction of severely crumpled areas and learning informative representations.
- We propose a novel Reconstruction from Ruins (RFR) pretext task tailored for signature representation learning. RFR applies severe signature crumpling rather than mild corruptions, effectively incentivizing representation learning by reconstructing severely crumpled signatures.
- We introduce a pyramidal feature aggregation module (PFAM) to strengthen representation learning. Through multi-scale feature aggregation and hierarchical modulation, PFAM enables SigDiffuser to extract richer latent representations than single latent embedding approaches.
- Experiments demonstrate SigDiffuser's superior performance over both existing representation learning methods and SOTA HSV models. Furthermore, we reveal that increasing the crumpling severity improves representation quality, substantiating the effectiveness of the RFR task.
A. Generative Representation Learning
-
Non-Diffusion-Based Methods: Early generative attempts mainly exploit AutoEncoders and Generative Adversarial Networks (GAN) [24] as latent feature learners. Inspired by masked language modeling, the focus transitions to masked image modeling (MIM). Context Encoders [25] pioneers MIM via image inpainting while Vision Transformer (ViT) [26] advances to predict the mean color of masked patches. SimMIM [13] and MAE [12] revisit MIM by processing only unmasked patches or all patches, respectively. Spark [27] adopts CNN for MIM, in contrast to ViT. Besides, iGPT [28] introduces autoregressive prediction to sequentially predict unknown pixels. SimAN [19] restores augmented scene text by aligning styles from its neighboring patches.
-
Diffusion-Based Methods: Beyond their renowned generation fidelity, diffusion models have emerged as powerful representation learners [29]. DiffAE [14] conditions the denoiser on a visual encoder to capture semantic traits. DDAE

(a) Reconstruction from Ruins (RFR)
(b) SigDiffuser: Signature Representation Learning Diffusion Model
Fig. 2: Overall framework of SigDiffuser. (a) Signature data construction for RFR. We apply crumpling on the signature image to obtain and segment square patches in different positions to acquire , , and for RFR pretraining. (b) Detailed model architecture and self-supervised pretraining process. The visual encoder encodes the intact region into latent representations. These features are hierarchically modulated to the denoiser to assist in reconstructing the severely crumpled portion , thereby enforcing the visual encoder to learn meaningful representations.
[15] unifies self-supervised generative and discriminative pre-training via a single denoiser. SODA [16] condenses latent representations using an information bottleneck. I-DAE [17] employs a PCA for latent space encoding. DBAE [30] bridges latent features with the generation endpoint to retain complete source information. Unlike prior methods that use single representations to bridge the encoder and denoiser (e.g., DiffAE, SODA, and DBAE), we modulate the denoiser using multi-scale representations aggregated via a feature pyramid to enhance feature extraction. Additionally, we propose a novel RFR pretext task, conditioning the denoiser on severely corrupted signature parts, enforcing the encoder to capture sufficient writing features for restoration.
B. Offline Handwritten Signature Verification
Offline HSV methods typically consist of two stages: feature extraction and similarity measurement. Based on the feature extraction technique, existing methods can be grouped into hand-crafted feature-based and neural network-based methods.
-
Hand-Crafted Feature-Based Method: Conventional HSV relies heavily on hand-crafted feature descriptors, generally categorized as shape-based and texture-based. Shape-based features capture global appearance and geometric structure [31, 32, 33]. Texture-based features capture local texture patterns and micro-structures inside signatures [34, 35, 36]. Kumar et al. [37] model both texture and shape with surround-edness features. Other works also explore using KAZE-based Fisher Vectors [38] and learning SPD-manifold distances from covariance matrices [39]. For similarity measurement, Support Vector Machines [33, 34, 35], ensemble methods [32, 36] and manifold-based distance measures [39] are explored.
-
Neural Network-Based Method: Currently, deep neural networks dominate HSV due to their powerful representation capabilities. Early methods used CNNs as simple feature
extractors [40], while recent works combine Siamese architectures with CNNs for local feature learning [6, 41, 42, 43, 44, 45]. For instance, MSDN [43] integrates region-based metric learning with a Siamese DenseNet. Subsequently, prompted by its effectiveness, ViT has been integrated into Siamese networks for global feature learning, utilizing mutual attention [5] or hybrid CNN-ViT architectures [46, 47]. Two-channel models that process stacked signatures represent an alternative routine [42, 48]. Beyond architecture, representations are further enriched by using text recognition for multi-task learning [49] or fusion with handcrafted features [50]. For similarity measurement, the paradigm evolves from decoupled verifiers (distance-based [41] or SVM-based [40, 51]) to end-to-end methods (thresholded sigmoid/softmax functions [5, 43, 45]).
However, existing methods overwhelmingly concentrate on supervised learning, neglecting self-supervised learning's potential in this field. While a few works have explored self-supervision [9, 10], such as reconstruction with attention guidance [9] and feature decorrelation [10], they yield inferior HSV performance. In this paper, we propose the first diffusion-based signature representation learning scheme, establishing a new paradigm for HSV through the integration of diffusion models and self-supervised learning.
III. METHODOLOGY
Fig. 2 illustrates SigDiffuser's overall framework. To extract deep representations, we introduce the Reconstruction from Ruins (RFR) pretext task that compels the model to reconstruct a severely crumpled signature portion using an intact reference. We harness the diffusion process to fulfill the reconstruction, with a pyramidal feature aggregation module (PFAM) to boost representation quality. The pretrained encoder is transferred to downstream HSV tasks.
A. Pretext Task: Reconstruction from Ruins
The aim of RFR lies in reconstructing an utterly ruined signature through the assistance of an intact portion, thus enabling signature representation learning. To this end, we construct pairwise ruined-intact data. Given a clean and flat signature image ( is height and is width), we generate a displacement field with a size of (2 is the channel number) to emulate crumpling. This field assigns a 2D vector to each pixel , dictating its horizontal and vertical distortion. is further processed and applied to clean signatures to create the crumpled outputs. This process is formulated as:
(2)
where specifies a Gaussian kernel (size , standard deviation ), denotes a random noise generation function, and generates a random displacement field with a size of . acts as a scale factor. By prescribing extremely large values for , , and , we induce a highly intense elastic distortion field and along the and axes as per Eq. 1. Thereafter, we apply large-kernel Gaussian smoothing to ensure continuity as in Eq. 2. The smoothed distortion fields then undergo random shifts and scaling, with pixel adjustments based on their distance from the image center, yielding modified displacement fields and . Ultimately, the distorted displacement fields and are added to the original pixel coordinates to obtain the “crumpled” coordinates, and we remap according to these coordinates to create a severely crumpled signature :
(3)
Following this, we apply Gaussian noise to the crumpled signatures. We then crop a square patch of side length l (the shorter side of I) at a random position of I, and crop a corresponding crumpled patch from at the same position. An equal-sized patch is cropped from I elsewhere to serve as the style reference. This process is illustrated in Fig. 2 (a). Mirroring the human cognitive process of inferring holistic writing styles from visible parts, RFR requires the SigDiffuser model to restore the crumpled patch to its clean version under the guidance of . We use a visual encoder (detailed in the next subsection) to extract writing style representations of the same signature from to aid in reconstruction.
Technical foundation of RFR: shortcut-resistant information bottleneck. Technically, RFR induces a shortcut-resistant information bottleneck by suppressing the direct information path from to , thereby making reconstruction depend more on the style representation . Let denote mutual information. The reconstruction-relevant information can be decomposed as:
In self-supervised tasks with mild image transformations [19, 52] or simple noise addition [14, 15, 16], the corrupted input preserves strong local structural correspondence with the target. Similarly, conventional reconstruction paradigms like Masked Image Modeling (MIM) [12, 13] lack an explicit, spatially independent style reference, relying heavily on local spatial cues from unmasked patches. In these cases, the first term remains dominant, allowing the denoiser/generator to exploit low-level pixel or geometry shortcuts and reducing the learning pressure on the encoder. In contrast, the severe crumpling introduced in RFR destroys local stroke continuity and spatial layouts, driving the direct target-corrupted mutual information toward a small residual, i.e., , forcing the reconstruction predominantly rely on .
To ensure provides meaningful guidance for this conditional dependence, the source patch is intentionally cropped from a spatially distinct position from . This prevents the visual encoder from trivially copying pixels, compelling it to encode intrinsic writing traits into , such as stroke dynamics (stroke connections and turns), slant tendency, and pressure variations, that transfer across spatial locations. In this context, supplies rich style cues to maximize the conditional mutual information , effectively preventing superficial pixel shortcuts during reconstruction and improving the encoder's representation quality.
B. SigDiffuser
We present the architecture of the SigDiffuser model in Fig. 2 (b), consisting of an encoder , a pyramidal feature aggregation module (PFAM) , and a denoiser .
Encoder. The encoder is a ResNet-18 [53] without the second and last downsampling operations. It encodes the style signature patch to derive hierarchical feature maps:
where denotes the number of hierarchies in . These feature maps are then fed into the PFAM for hierarchical aggregation.
Pyramidal feature aggregation module. Existing models like DiffAE [14] and SODA [16] input only a single latent representation (typically from the last layer) to the denoiser, leading to limited representational capacity. To address this issue, we introduce the PFAM ( ; see Fig. 2 (b)) to extract richer representations by hierarchically aggregating multi-scale features from different layers of the visual encoder. PFAM is simplified from the feature pyramid network [54] by removing the final convolution on the merged feature map. It takes the feature maps outputted by the encoder , deriving a set of compact latent representations :
(6) where is the layer of the PFAM, is a convolution layer for channel projection, is an upsample operation for spatial dimension matching through bilinear interpolation, and is element-wise addition. Through this hierarchical aggregation process (Eq. 6), the layer of PFAM amalgamates feature maps and to encode multi-scale writing traits, producing a more informative latent representation at the current hierarchy. These hierarchical embeddings are subsequently injected into different layers of the denoiser for layer-wise modulation. is set to 4.
Denoiser. We build the denoiser employing a conditional Denoising Diffusion Implicit Model (DDIM) [55], which is conditioned on the hierarchical latent representations . It incorporates a forward process that progressively corrupts the target distribution into pure Gaussian noise , complemented by a backward process that reconstructs the target by steps iterative denoising from the conditional input .
The forward process is a Markov chain that incrementally adds noise to the target, as formulated by:
where , is the maximum sampling timestep. is a fixed hyperparameter that indicates the noise levels. The backward process takes as input and deterministically approximates the reverse mapping:
The noise term in Eq. 8 is predicted by the denoiser under the supervision of the MSE loss . As illustrated in Fig. 2 (b), the denoiser adopts a four-layer, symmetric UNet architecture [56]. Since we compute four latent representations , we symmetrically add into the UNet layer through addition, achieving hierarchical modulation. From a global perspective, the denoiser is primarily responsible for image reconstruction, thus liberating the encoder to focus on latent encoding. Given the demanding reconstruction task (i.e., RFR), the encoder is driven to leverage any available writing features to assist the denoiser, which in turn incentivizes itself to extract more informative writing patterns, resulting in enhanced latent representations.
Notably, closer to our work are SODA [16] and DiffAE [14], yet SigDiffuser differs in two main aspects. (1) For the pretext task, SigDiffuser reconstructs severely crumpled signatures (the proposed RFR). However, SODA synthesizes a novel view of the image, while DiffAE performs reconstruction with the same image as semantic guidance. (2) Regarding architecture, SigDiffuser introduces a multi-scale, hierarchical feature modulation architecture for enriched latent features, whereas both SODA and DiffAE employ a single-representation approach. These approaches together result in better self-supervised learning performance on HSV as validated in Table II.

Fig. 3: Downstream model architecture for HSV. (a) Training. The encoder pretrained on the RFR pretext task is transferred to the downstream model for HSV fine-tuning. (b) Testing. All signatures are input to the model to extract corresponding feature vectors, which are then used for verification.
C. Downstream HSV Model
After the self-supervised pretraining with the RFR pretext task, we fine-tune a specific model for the downstream HSV task, as illustrated in Fig. 3. This model's fine-tuning is independent of SigDiffuser's pretraining (Sec. III-B), and all testing results (Sec. IV) are obtained using this model. Model architecture, training, and testing details are elaborated below.
Model architecture. As shown in Fig. 3 (a), the encoder of SigDiffuser pretrained via the RFR pretext task transfers directly as the HSV model encoder. Inspired by Spatial Pyramid Pooling (SPP) [57], we design an improved Normalized SPP (NSPP) module, which is placed after the encoder to reduce the spatial dimension of the last feature map into feature vectors. Given the final feature map , where 512 is the channel number, h and w respectively denote the height and width, it is first compressed by average pooling to derive local and global features and :
To ensure scale invariance and enhance discriminability, both features are L2-normalized to obtain and . They are then transformed into 1D vectors using convolutional and fused:
The final feature vector f is used for loss computation or identity verification as described below.
Downstream model training. As shown in Fig. 3(a), we append a Position-Dependent Siamese Network (PDSN) [51] after the NSPP module strictly for training. For each writer, we sample triplets comprising an anchor (genuine), a positive (genuine), and a negative (skilled forgery) signature. The encoder and NSPP extract corresponding features . PDSN processes a collection of pairs to compute a logit triplet, which is supervised by binary cross-entropy loss against ground-truth labels [1, 1, 0]. Additionally, the feature vectors pass through a linear layer for writer ID classification, optimized via label-smoothed cross-entropy loss (label smoothing
TABLE I: Dataset details and data splitting. #Writer and #Writer respectively denote the number of writers for training and testing. Sig. denotes signature. /writer denotes per writer.
| Dataset | Language | #Writer | #Writer | #Writer | #Genuine | Sig./writer | #Forged | Sig./writer | #Split | #Training | #Testing | #Total |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| BHSig260-B [20] | Bengali | 100 | 50 | 50 | 24 | 30 | 5 | 2,700 | 2,700 | 5,400 | ||
| BHSig260-H [20] | Hindi | 160 | 100 | 60 | 24 | 30 | 5 | 5,400 | 3,240 | 8,640 | ||
| HanSig [21] | Chinese | 238 | 213 | 25 | 20 | 20 | 10 | 31,800 | 3,600 | 35,400 | ||
| UTSig [22] | Persian | 115 | 60 | 55 | 27 | 45 | 5 | 4,320 | 3,960 | 8,280 | ||
| CEDAR [23] | English | 55 | 50 | 5 | 24 | 24 | 11 | 2,400 | 240 | 2,640 |
0.1). The final optimization objective is . We process triplets from distinct writers per batch, resulting in an effective batch size of 24.
Downstream model testing. During testing, genuine signatures and skilled forgeries are processed to extract feature vectors via the NSPP module (bypassing the PDSN), as shown in Fig. 3 (b). These features are used to determine the genuineness of each sample and evaluate model performance.
IV. EXPERIMENT
A. Experimental Protocol
- Dataset: We evaluate our method on multiple HSV datasets using two data-splitting settings: (i) Standard split, following existing training/testing partitions; and (ii) Split with validation, which holds out a validation subset from the training data for early stopping and checkpoint selection. As these datasets lack official splits, we mitigate evaluation bias by employing standard K-fold cross-validation (where test folds are mutually exclusive). For datasets indivisible into K folds under prior partitions (e.g., 100/60 for BHSig260-H), we adopt full-coverage random splits, ensuring every writer appears in the test set at least once, with some writers recurring in multiple test splits. These protocols are applied to all datasets, with per-dataset details presented below.
BHSig260. BHSig260 [20] contains BHSig260-B (5,400 Bengali signatures from 100 writers) and BHSig260-H (8,640 Hindi signatures from 160 writers), with each writer contributing 24 genuine signatures and 30 skilled forgeries. Under setting (i), BHSig260-B is split into 50/50 writers for training/testing, and BHSig260-H is split into 100/60, following [5, 6, 41, 44]. Under setting (ii), 10 and 20 training writers are further reserved for validation on BHSig260-B and BHSig260-H, respectively, yielding 40/10/50 and 80/20/60 training/validation/testing splits. We perform 5 full-coverage random splits on each of BHSig260-B and BHSig260-H.
HanSig. HanSig [21] is a Chinese signature dataset containing 885 names signed by 238 writers. Each name has 20 genuine signatures in three styles (neat, normal, and stylish) and an equal number of skilled forgeries, totaling 35,400 signatures. Under setting (i), 795 names from 213 writers are used for training and 90 names from 25 writers for testing, following the original protocol. Under setting (ii), 60 training names are reserved for validation, giving a 735/60/90 split. We perform 10 full-coverage random splits.
UTSig. UTSig [22] includes 8,280 Persian signatures from 115 individuals, each providing 27 genuine signatures and 45 forgeries (42 skilled forgeries and three opposite-hand written). Under setting (i), 60/55 writers are used for training/testing following the original protocol. Under setting (ii),
10 training writers are reserved for validation, giving a 50/10/55 split. We perform 5 full-coverage random splits.
CEDAR. CEDAR [23] comprises 2,640 English signatures from 55 writers, with 24 genuine signatures and 24 skilled forgeries per writer. Under setting (i), 50/5 writers are used for training/testing following [5, 43]. Under setting (ii), 5 training writers are reserved for validation, giving a 45/5/5 split. Unlike the other datasets, which use full-coverage random splits, we perform 11-fold cross-validation on CEDAR.
Data splitting details are summarized in Table I. Note that writer sets for training and testing are disjoint, ensuring open-set evaluations. For BHSig260, we pretrain on the union of the BHSig260-B and BHSig260-H training sets, but fine-tune and evaluate on each separately. For other datasets, pretraining and fine-tuning share the corresponding training set. To prevent data leakage, pretraining and fine-tuning are independently rerun per split or fold. We report the mean and standard deviation of the performance as mean (std).
- Evaluation Metric: We employ four metrics: Equal Error Rate (EER), False Acceptance Rate (FAR), False Rejection Rate (FRR), and Accuracy (Acc). For fairness, we follow the most stringent evaluation setting from [5, 43, 44], implementing an open-set verifier based on three realistic design choices. (1) Since HSV compares a query against one or more references, we adopt the more difficult yet realistic single-reference (1-vs-1) protocol, despite multiple references typically yielding higher accuracy. (2) We use a global threshold across all writers rather than a user-specific one for decision-making, enabling more reliable and objective assessment. (3) We evaluate under the writer-independent scenario, verifying signatures without user-specific training during enrollment. This better reflects real-world deployment than writer-dependent methods that train personalized classifiers per writer. Implementation details are presented below.
Specifically, given a query signature claiming to be writer and a reference signature of writer , we extract their 512-dimensional feature vectors and using the encoder and pooling layer of our downstream model, and measure their similarity by:
where refers to the Euclidean distance, denotes the mean reference-to-reference distance for writer , following [66]; in our 1-vs-1 setting with a single reference, . Given a threshold , the decision rule is defined as:
where is the indicator function; accepts as
TABLE II: Linear probing and downstream fine-tuning results on BHSig260-B [20] and BHSig260-H [20]. The best and second-best results are marked in bold and with underlines, with the same annotations throughout. Superscripts *, †, * indicate models utilizing their original backbones: ResNet-50 [53], a modified 10-layer VGG [58], and ConvNeXt-Small [59], respectively.
| Method | Venue | Linear Probing | Downstream Fine-tuning | |||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| BHSig260-B | BHSig260-H | BHSig260-B | BHSig260-H | |||||||||||||
| EER ↓ | FAR ↓ | FRR ↓ | Acc ↑ | EER ↓ | FAR ↓ | FRR ↓ | Acc ↑ | EER ↓ | FAR ↓ | FRR ↓ | Acc ↑ | |||||
| Generative SRE Methods | ||||||||||||||||
| SimCLR [60] | ICML20 | |||||||||||||||
| SimCLR [60] | ICML20 | |||||||||||||||
| BYOL [61] | NeuroPS20 | |||||||||||||||
| BYOL* [61] | ICML20 | |||||||||||||||
| SegCLR [62] | CVPR21 | |||||||||||||||
| ChaCo [63] | ICFHR22 | |||||||||||||||
| CMT-Co [64] | ACCV22 | |||||||||||||||
| SWIS [10] | ICIP22 | |||||||||||||||
| Discrete SRE Methods | ||||||||||||||||
| SURDS [9] | ICPR22 | |||||||||||||||
| SimAN [19] | CVPR22 | |||||||||||||||
| SimAN* [19] | CVPR22 | |||||||||||||||
| MAE [12] | CVPR22 | |||||||||||||||
| CVPR22 [14] | CVPR22 | |||||||||||||||
| Spark [27] | ICLR23 | |||||||||||||||
| Spark* [27] | ICLR23 | |||||||||||||||
| DDAE [15] | ICCV23 | |||||||||||||||
| SODA [16] | CVPR24 | |||||||||||||||
| SODA* [16] | CVPR24 | |||||||||||||||
| IDAE [27] | ICLR25 | |||||||||||||||
| IDAE [30] | ICLR25 | |||||||||||||||
| CAMD [8] | TCSVT26 | |||||||||||||||
| DIS [65] | CVPR26 | |||||||||||||||
| Baseline (Ours) | This work | |||||||||||||||
| SigDiffuser (Ours) | This work | |||||||||||||||
genuine, and rejects it as a forgery.
Consider a dataset comprising writers, each possessing genuine signatures and forged signatures. To achieve 1-vs-1 evaluation, we designate each genuine sample in turn as the reference while treating the remaining genuine signatures and forged signatures as queries. Since the comparison score is symmetric, each genuine-genuine pair is counted once, yielding genuine-genuine scores and genuine-forged scores per writer. We then pool all the comparison scores from all writers into a single global evaluation set, resulting in scores. Given a global threshold , each score is converted into a binary decision according to Eq. 12. We compare these decisions with the corresponding pair labels and count the numbers of True Positive (TP), False Positive (FP), True Negative (TN), and False Negative (FN). The FAR, FRR, and Acc at threshold are computed as:
EER is the error rate at the threshold where FAR equals FRR. Let denote the candidate threshold set consisting of all distinct comparison scores. Given the discrete and finite nature of , an exact threshold satisfying generally does not exist within . We therefore first search the candidate set for a discrete threshold that minimizes the gap between FAR and FRR:
Since the computation of FAR, FRR, and Acc requires a valid confusion matrix at an actual discrete threshold, we report them at this determined operating point:
Subsequently, we compute EER at an exact threshold ob-
tained through linear interpolation. While the discrete approximation can provide a direct estimate, it may deviate from the EER at the true FAR-FRR intersection. To obtain a precise EER, we linearly interpolate between and its adjacent threshold lying on the opposite side of the FAR-FRR crossing to locate the crossing point, i.e., the exact threshold. Let , this threshold is given by:
At this threshold, the FAR and FRR equalize, allowing us to compute the EER as:
Note that when , EER = FAR = FRR = 1 - Acc.
Importantly, (and consequently ) is derived from the score distribution pooled across all writers, representing a global threshold rather than a writer-specific one. This implementation also accommodates an unlimited number of test writers, ensuring writer independence and generalization to unseen writers. All metrics are reported as percentages.
B. Implementation Detail
The maximum time step for denoiser sampling is set to 1000. , and in RFR (Eq. 1 and 2) are set to 18,072, , 91, respectively. During pretraining, the side length for patches , , and is 96. During fine-tuning, all datasets use (height width) image inputs. More data processing details are included in Appendix A.
For pretraining, SigDiffuser is trained from scratch for 800 epochs (20 warmup epochs) using AdamW ( , , and weight decay 0.05), a batch size of 32, and a learning rate of 1e-4. The additive noise term in the denoiser follows a cosine schedule. For downstream training, we train the model for 80 epochs with a batch size of 24, using AdamW with a weight decay of 1e-5 and a cosine learning rate decay from 1e-4 to 1e-7. The baseline is a randomly initialized downstream model fine-tuned per dataset.
TABLE III: Performance comparison on BHSig260-B [20].
| Method | Venue | EER ↓ | FAR ↓ | FRR ↓ | Acc ↑ |
|---|---|---|---|---|---|
| SigNet [41] | arXiv'17 | 13.89 | 13.89 | 13.89 | 86.11 |
| SigNet-F [40] | PR'17 | 20.44 | 20.30 | 20.87 | 79.45 |
| FMPNet [51] | ICFHR'18 | 13.36 | 13.33 | 13.37 | 86.65 |
| DeepHSV [42] | ICDAR'19 | 11.92 | - | - | 88.08 |
| IDN [6] | CVPR'19 | - | 4.12 | 5.24 | 95.32 |
| SDINet [67] | AAAI'21 | - | 3.30 | 7.86 | 94.42 |
| CaP [68] | ICPR'21 | 3.96 | 3.96 | 3.96 | - |
| AVN [44] | TMM'22 | 6.14 | - | - | 93.80 |
| 2C2S [48] | EAAI'23 | 6.75 | 5.37 | 8.11 | 93.25 |
| MGRNet [21] | arXiv'23 | 6.12 | 5.93 | 6.20 | - |
| LwR [69] | PR'23 | 6.10 | - | - | 94.50 |
| TransOSV [5] | PR'24 | 9.90 | 9.90 | 9.90 | - |
| SPD Manifold [39] | TIFS'24 | 11.10 | - | - | - |
| CWA [45] | ICDAR'24 | 2.53 | 2.95 | 2.14 | 97.27 |
| DetailSemNet [46] | ECCV'24 | 10.19 | 5.96 | 18.24 | 90.64 |
| HTCSigNet [47] | PR'25 | 8.52 | 9.20 | 7.83 | 91.17 |
| Baseline (Ours) | This work | 6.23 (±0.45) | 6.23 (±0.45) | 6.23 (±0.45) | 93.77 (±0.45) |
| SigDiffuserval (Ours) | This work | 2.23 (±0.53) | 2.23 (±0.53) | 2.23 (±0.53) | 97.77 (±0.53) |
| SigDiffuser (Ours) | This work | 1.85 (±0.46) | 1.85 (±0.46) | 1.84 (±0.46) | 98.15 (±0.46) |
TABLE V: Performance comparison on HanSig [21].
| Method | Venue | EER ↓ | FAR ↓ | FRR ↓ | Acc ↑ |
|---|---|---|---|---|---|
| SigNet [41] | arXiv'17 | 33.07 | 33.10 | 33.05 | 66.92 |
| SigNet-F [40] | PR'17 | 41.71 | 41.80 | 41.58 | 58.31 |
| FMPNet [51] | ICFHR'18 | 13.13 | 13.10 | 13.16 | 86.87 |
| MGRNet [21] | arXiv'23 | 9.93 | 11.85 | 7.69 | - |
| CWA [45] | ICDAR'24 | 9.47 | 6.61 | 16.23 | 90.26 |
| DetailSemNet [46] | ECCV'24 | 16.00 | 10.19 | 24.62 | 85.17 |
| HTCSigNet [47] | PR'25 | 22.18 | 22.18 | 22.18 | 77.82 |
| Baseline (Ours) | This work | 19.22 (±8.99) | 19.22 (±8.98) | 19.23 (±8.99) | 80.78 (±8.99) |
| SigDiffuserval (Ours) | This work | 7.69 (±2.23) | 7.69 (±2.23) | 7.69 (±2.24) | 92.31 (±2.23) |
| SigDiffuser (Ours) | This work | 7.39 (±1.64) | 7.39 (±1.63) | 7.39 (±1.64) | 92.61 (±1.64) |
TABLE VII: Performance comparison on CEDAR [23].
| Method | Venue | EER ↓ | FAR ↓ | FRR ↓ | Acc ↑ |
|---|---|---|---|---|---|
| SigNet-F [40] | PR'17 | 5.92 | - | - | - |
| FMPNet [51] | ICFHR'18 | 12.17 | 12.08 | 12.17 | 87.87 |
| IDN [6] | CVPR'19 | 3.62 | 5.87 | 2.17 | - |
| SDINet [67] | AAAI'21 | 1.75 | 0.73 | 3.42 | - |
| MSDN [43] | PR'21 | 6.74 | - | - | - |
| CaP [68] | ICPR'21 | 4.34 | 4.34 | 4.34 | - |
| ILNNeck [70] | ICNN'22 | 9.21 | - | - | 90.79 |
| QSLs [71] | Neural Comput. Appl.'23 | 1.93 | 3.35 | 2.39 | - |
| MGRNet [21] | arXiv'23 | 3.51 | 3.33 | 3.55 | - |
| SPD Manifold [39] | TIFS'24 | 8.53 | - | - | - |
| DetailSemNet [46] | ECCV'24 | 24.61 | 10.97 | 40.29 | 79.53 |
| DCCCAE [50] | PR'25 | 10.81 | - | - | - |
| Baseline (Ours) | This work | 12.77 (±8.42) | 12.77 (±8.42) | 12.75 (±8.42) | 87.23 (±8.42) |
| SigDiffuserval (Ours) | This work | 8.55 (±6.91) | 8.55 (±6.91) | 8.54 (±6.91) | 91.45 (±6.91) |
| SigDiffuser (Ours) | This work | 6.92 (±5.88) | 6.92 (±5.87) | 6.92 (±5.88) | 93.08 (±5.88) |
Data augmentation is limited to random translation (≤5 pixels, padded with white). Training time scales with the dataset size. For example, on the largest HanSig dataset, pretraining consumes around four days and fine-tuning takes around two hours, respectively, on a single NVIDIA 3090 GPU. For standard data splits, we evaluate the final epoch's checkpoint. For splits with validation, we apply early stopping with a patience of 20 epochs and evaluate the best checkpoint.
C. Linear Probing and Downstream Fine-Tuning Evaluation
We investigate SigDiffuser's representation quality through probe evaluation (freezing the encoder, training only NSPP and PDSN) and downstream fine-tuning (full-parameter training). Baselines include contrastive methods (e.g., SimCLR [60], SeqCLR [62]), MIM-based generative methods (e.g., MAE [12], SparK [27], CAMD [8]), diffusion-based generative methods (e.g., DiffAE [14], SODA [16], l-DAE [17]). For fair comparison, most baselines are reimplemented using SigDiffuser's ResNet-18 encoder. Exceptions retaining their native architectures are MAE, CAMD, and DIS (ViT-Tiny [26]), and
TABLE IV: Performance comparison on BHSig260-H [20].
| Method | Venue | EER ↓ | FAR ↓ | FRR ↓ | Acc ↑ |
|---|---|---|---|---|---|
| SigNet [41] | arXiv'17 | 15.36 | 15.36 | 15.36 | 84.64 |
| SigNet-F [40] | PR'17 | 18.30 | 18.22 | 18.37 | 81.71 |
| FMPNet [51] | ICFHR'18 | 14.28 | 14.17 | 14.48 | 85.70 |
| DeepHSV [42] | ICDAR'19 | 13.34 | - | - | 86.66 |
| IDN [6] | CVPR'19 | - | 8.99 | 4.93 | 93.04 |
| SDINet [67] | AAAI'21 | - | 6.24 | 3.77 | 95.00 |
| CaP [68] | ICPR'21 | 5.97 | 5.97 | 5.97 | - |
| AVN [44] | TMM'22 | 5.65 | - | - | 94.32 |
| 2C2S [48] | EAAI'23 | 9.32 | 8.66 | 9.98 | 90.68 |
| MGRNet [21] | arXiv'23 | 6.68 | 6.76 | 6.56 | - |
| LwR [69] | PR'23 | 8.80 | - | - | 92.60 |
| TransOSV [5] | PR'24 | 3.24 | 3.24 | 3.24 | - |
| SPD Manifold [39] | TIFS'24 | 15.60 | - | - | - |
| CWA [45] | ICDAR'24 | 9.55 | 7.11 | 12.14 | 91.42 |
| DetailSemNet [46] | ECCV'24 | 13.31 | 7.89 | 22.32 | 88.11 |
| HTCSigNet [47] | PR'25 | 4.63 | 4.61 | 4.65 | 95.26 |
| Baseline (Ours) | This work | 6.88 (±1.31) | 6.89 (±1.31) | 6.88 (±1.31) | 93.11 (±1.31) |
| SigDiffuserval (Ours) | This work | 3.65 (±0.44) | 3.65 (±0.44) | 3.65 (±0.44) | 96.35 (±0.44) |
| SigDiffuser (Ours) | This work | 3.13 (±0.33) | 3.13 (±0.33) | 3.13 (±0.33) | 96.87 (±0.33) |
TABLE VI: Performance comparison on UTSig [22].
| Method | Venue | EER ↓ | FAR ↓ | FRR ↓ | Acc ↑ |
|---|---|---|---|---|---|
| UTSig-S1 [22] | IET Biom'16 | 29.71 | 21.29 | 39.27 | - |
| SigNet [41] | arXiv'17 | 47.08 | 46.71 | 47.38 | 53.05 |
| SigNet-F [40] | PR'17 | 43.20 | 42.93 | 43.64 | 56.81 |
| FMPNet [51] | ICFHR'18 | 32.95 | 32.81 | 33.04 | 67.11 |
| LwR [69] | PR'23 | 29.70 | - | - | 72.70 |
| DetailSemNet [46] | ECCV'24 | 39.54 | 0.78 | 96.31 | 77.80 |
| HTCSigNet [47] | PR'25 | 28.93 | 28.92 | 28.96 | 71.08 |
| Baseline (Ours) | This work | 29.81 (±1.51) | 29.81 (±1.51) | 29.81 (±1.51) | 70.19 (±1.51) |
| SigDiffuserval (Ours) | This work | 27.39 (±1.62) | 27.38 (±1.61) | 27.40 (±1.62) | 72.61 (±1.62) |
| SigDiffuser (Ours) | This work | 23.48 (±1.81) | 23.48 (±1.81) | 23.49 (±1.82) | 76.52 (±1.81) |
l-DAE (DiT-S [72]). Baselines evaluated with their original encoders are marked with *, †, and *.
Results are summarized in Table II. (1) SigDiffuser consistently achieves the best performance in both probe and fine-tuning evaluations. Compared to the randomly initialized baseline, the pretrained model achieves superior mean performance and generally lower across-split variance, demonstrating that our pretraining extracts high-quality representations, directly improving verification stability. (2) Most competing methods, even those with pretext tasks tailored for handwritten/scene text self-supervised representation learning (SSRL) [19, 62, 63, 64], perform significantly worse, exhibiting lower means and higher across-split variance. SigDiffuser also surpasses other diffusion-based schemes, such as DiffAE and SODA, by considerable margins. (3) Models using their original encoders, whether deeper (ResNet-50), modern-designed (ConvNeXt-Small), or lightweight (VGG-10), consistently underperform our default ResNet-18. Although native architectures align better with their vanilla designs, these results indicate that ResNet-18 provides a superior balance of capacity and architectural suitability for SSRL in HSV.
(4) Generative methods generally outperform contrastive methods, suggesting contrastive learning is less suited for HSV. Among generative methods, diffusion-based approaches mostly surpass MIM-based models, consistent with the blurred reconstruction results shown in Fig. 1 (a). This is potentially due to MIM's difficulty in perceiving fine textures amidst white backgrounds when large portions of strokes are masked. (5) SigDiffuser's superiority mainly stems from the proposed RFR. Unlike pretext tasks with mild deformations that permit local pixel-copying shortcuts, RFR requires the model to restore a severely ruined signature region guided by a spatially
TABLE VIII: Ablation study on BHSig260-B [20] and BHSig260-H [20]. SSRL denotes self-supervised representation learning.
| #Line | Case | BHSig260-B | BHSig260-H | ||||||
|---|---|---|---|---|---|---|---|---|---|
| EER ↓ | FAR ↓ | FRR ↓ | Acc ↑ | EER ↓ | FAR ↓ | FRR ↓ | Acc ↑ | ||
| 1 | Baseline | 5.77 | 5.78 | 5.76 | 94.23 | 5.95 | 5.96 | 5.95 | 94.04 |
| 2 | Baseline w/ RFR-based SSRL; w/ | 2.60 | 2.60 | 2.60 | 97.40 | 5.18 | 5.19 | 5.18 | 94.82 |
| 3 | Baseline w/ RFR-based SSRL; w/ ; w/ PFAM | 1.58 | 1.58 | 1.57 | 98.43 | 2.59 | 2.59 | 2.58 | 97.41 |
| 4 | Baseline w/ RFR-based SSRL; w/o ; w/ PFAM | 4.34 | 4.34 | 4.33 | 95.66 | 3.31 | 3.31 | 3.31 | 96.69 |
| 5 | Baseline w/ MIM-based SSRL; w/ ; w/ PFAM | 3.39 | 3.39 | 3.39 | 96.61 | 4.13 | 4.13 | 4.13 | 95.87 |
distinct style patch. As discussed in Sec. III-A, this design suppresses reconstruction shortcuts and forces reliance on intrinsic writing-style evidence encoded from . Hence, the encoder captures writing-style cues across spatial locations (e.g., stroke dynamics, spacing, and slant) rather than trivial pixel relations, which are essential for HSV. Further visual analyses are presented in Sec. IV-H.
D. Comparison with Existing HSV Method
We compare the full-parameter fine-tuned model with SOTA HSV methods in Tables III to VI. For fair comparison, we only include prior results obtained under identical training/testing splits and evaluation settings. For instance, we report single-reference rather than multi-reference results for HTCSigNet [47] and the 50/50 writer split for TransOSV [5] on BHSig260-B (which also reports 80/20). Here we report the multi-split results, with per-split details provided in Appendix B.
As confirmed by the results, even under the multi-split protocol, SigDiffuser outperforms preceding models in almost all cases. On BHSig260-B and BHSig260-H (Tables III and IV), SigDiffuser sets new records by improving EERs from 2.53% and 3.24% to 1.85% and 3.13%, respectively. Although the second-best method, CWA, uses an 80/20 writer split (easier than our 50/50 split), SigDiffuser maintains its superiority. HanSig is a challenging Chinese HSV dataset characterized by significant variation in writing style. Despite the heightened difficulty, SigDiffuser outperforms all existing methods in Table V. On UTSig (Table VI), SigDiffuser shows significant advantages over existing methods, even approaching the performance of 12-reference methods despite using only one reference. It is noteworthy that the signatures across different datasets diverge drastically in text structure and writing styles due to language and cultural discrepancies. Overall, the strong average results across multiple data splits demonstrate SigDiffuser's effectiveness in learning informative writing patterns that transcend linguistic and stylistic boundaries.
We further evaluate on the CEDAR dataset. Several prior works [41, 42, 45, 48] report seemingly perfect metrics (0% EER and 100% Acc) by relying on trivial background cues (genuine signatures are gray, forgeries are white) rather than actual strokes. To prevent this, we remove all backgrounds during data preprocessing. Table VII shows that RFR pretraining substantially improves SigDiffuser over the baseline. Notably, although the inherent difficulty of certain writers and samples in CEDAR causes high performance variance, our pretraining effectively reduces this instability ( ). While not achieving the lowest EER, SigDiffuser remains competitive.

(a) Corruption Degree Comparison (Setting 1)
(b) Corruption Degree Comparison (Setting 2)
Fig. 4: Visualized comparison of varying corruption degrees.
Other than standard data splits, we also evaluate using splits with validation (Sec. IV-A1), denoted as SigDiffuser . As observed, performance consistently drops across all datasets. We attribute this degradation to the reduced training data volume. Since offline HSV datasets are inherently small, mainstream methods typically use only training-testing splits to maximize training data; introducing a validation set inevitably hampers performance. Despite this decline, SigDiffuser maintains optimal or near-optimal performance on most datasets.
E. Ablation Study
We analyze the effect of SigDiffuser's key components, including the RFR pretext task, the pyramidal feature aggregation module (PFAM), and the corrupted signature input , on a single data split, with results presented in Table VIII. Comparing Lines 1 and 2, self-supervised learning with RFR effectively improves HSV performance. In Line 3, adding PFAM to form the complete SigDiffuser further improves EER by 1.02% and 2.59%, confirming PFAM's efficacy.
Additionally, since using and also enables representation learning, we investigate the efficacy and necessity of introducing the corrupted signature region . Conceptually, removing degrades our RFR pretext task to novel view synthesis. As shown in Lines 3 and 4, removing leads to significant performance declines, especially on BHSig260-B. This suggests that reconstructing from the corrupted signatures is effective to boost model performance, underscoring its necessity as RFR's core component. Furthermore, substituting RFR with MIM drops overall performance (Lines 3 vs. 5). This indicates RFR's superiority over MIM in HSV modeling, aligning with our findings in Sec. IV-C. Additional ablation studies regarding PFAM's implementation variants, the isolated effect of diffusion modeling in SigDiffuser, the number of pretraining epochs, and patch side length l used in RFR are detailed in Appendices C, D, E, and F, respectively.
F. Cross-Dataset Generalization Analysis
To investigate cross-domain generalization of SigDiffuser, we conduct cross-dataset validation on four datasets, as shown
TABLE IX: Cross-dataset validation. Models are trained on the source dataset and tested on the target dataset. denotes the accuracy drop from the best in-domain accuracy, where smaller values indicate better cross-dataset generalization.
| Source | Model | Venue | Target | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| BHSig260-B | BHSig260-H | CEDAR | HanSig | |||||||||||
| EER ↓ | Acc ↑ | ↓ | EER ↓ | Acc ↑ | ↓ | EER ↓ | Acc ↑ | ↓ | EER ↓ | Acc ↑ | ↓ | |||
| BHSig260-B | SigNet [41] | arXiv'17 | 33.89 | 86.11 | 0.00 | - | 52.78 | 33.33 | - | 50.00 | 36.11 | - | - | - |
| IDN [6] | CVPR'19 | - | 95.32 | 0.00 | - | 74.30 | 21.02 | - | 50.00 | 45.32 | - | - | - | |
| CaP [68] | ICDAR'21 | 3.96 | 96.04 | 0.00 | - | 69.59 | 26.45 | - | 66.29 | 29.75 | - | - | - | |
| ILNNeck [70] | IICNN'22 | 5.72 | 94.28 | 0.00 | - | 79.21 | 15.07 | - | 80.34 | 13.94 | - | - | - | |
| DetailSemNet [46] | ECCV'24 | 10.19 | 90.64 | 0.00 | 26.00 | 78.69 | 11.95 | 33.40 | 72.35 | 18.29 | 36.01 | 70.41 | 20.23 | |
| Baseline (Ours) | This work | 5.77 | 94.23 | 0.00 | 22.69 | 77.32 | 16.91 | 28.85 | 71.15 | 23.08 | 24.70 | 75.31 | 18.92 | |
| SigDiffuser (Ours) | This work | 1.58 | 98.43 | 0.00 | 12.44 | 87.56 | 10.87 | 16.95 | 83.05 | 15.38 | 19.06 | 80.94 | 17.49 | |
| BHSig260-H | SigNet | arXiv'17 | - | 60.65 | 23.99 | 15.36 | 84.64 | 0.00 | - | 59.57 | 25.07 | - | - | - |
| IDN | CVPR'19 | - | 74.12 | 18.92 | - | 93.04 | 0.00 | - | 50.00 | 43.04 | - | - | - | |
| CaP | ICDAR'21 | - | 85.34 | 8.69 | 5.97 | 94.03 | 0.00 | - | 70.51 | 23.52 | - | - | - | |
| ILNNeck | IICNN'22 | - | 87.57 | 8.22 | 4.21 | 95.79 | 0.00 | - | 79.76 | 16.03 | - | - | - | |
| DetailSemNet | ECCV'24 | 22.07 | 80.52 | 7.59 | 13.31 | 88.11 | 0.00 | 35.94 | 71.13 | 16.98 | 36.46 | 69.72 | 18.39 | |
| Baseline (Ours) | This work | 11.27 | 88.73 | 5.31 | 5.95 | 94.04 | 0.00 | 21.53 | 78.47 | 15.57 | 24.93 | 75.07 | 18.97 | |
| SigDiffuser (Ours) | This work | 6.45 | 93.55 | 3.86 | 2.59 | 97.41 | 0.00 | 15.68 | 84.32 | 13.09 | 20.37 | 79.63 | 17.78 | |
| CEDAR | IDN | CVPR'19 | - | 50.01 | 46.37 | - | 50.36 | 46.02 | 3.62 | 96.38 | 0.00 | - | - | - |
| CaP | ICDAR'21 | - | 61.93 | 33.63 | - | 60.92 | 35.46 | 4.34 | 95.56 | 0.00 | - | - | - | |
| ILNNeck | IICNN'22 | - | 84.93 | 5.86 | - | 80.83 | 9.96 | 9.21 | 90.79 | 0.00 | - | - | - | |
| DetailSemNet | ECCV'24 | 32.00 | 73.75 | 5.78 | 33.67 | 73.40 | 6.13 | 24.61 | 79.53 | 0.00 | 39.71 | 68.19 | 10.34 | |
| Baseline (Ours) | This work | 32.54 | 67.46 | 27.42 | 32.25 | 67.70 | 27.18 | 5.11 | 94.88 | 0.00 | 27.70 | 72.33 | 22.55 | |
| SigDiffuser (Ours) | This work | 21.08 | 78.92 | 18.62 | 29.04 | 70.97 | 26.57 | 2.46 | 97.54 | 0.00 | 23.90 | 76.10 | 21.44 | |
| HanSig | FMPNet [51] | ICFHR'18 | 23.16 | 76.83 | 9.53 | 26.52 | 73.47 | 12.37 | 22.25 | 77.75 | 8.10 | 14.15 | 85.85 | 0.00 |
| DetailSemNet | ECCV'24 | 20.85 | 80.72 | 4.45 | 21.92 | 80.46 | 4.71 | 22.54 | 81.01 | 4.16 | 16.00 | 85.17 | 0.00 | |
| Baseline (Ours) | This work | 14.61 | 85.39 | 4.53 | 30.18 | 69.82 | 20.10 | 16.59 | 83.40 | 6.52 | 10.07 | 89.92 | 0.00 | |
| SigDiffuser (Ours) | This work | 10.66 | 89.34 | 3.30 | 25.99 | 74.02 | 18.62 | 11.32 | 88.69 | 3.95 | 7.36 | 92.64 | 0.00 | |
TABLE X: Comparison of corruption degrees on BHSig260-B [20] and BHSig260-H [20]. (a) Setting 1. We use to control the crumpling severity, ranging from 0 (no crumpling) to 27,108 (highly intensified). (b) Setting 2. We use existing data-augmentation techniques to control the crumpling degree: None (SimAN [19]), Mild (CMT-Co [64]), and Full (our RFR).
(a) Setting 1: Controlled by as described in Sec. III-A.
| BHSig260-B | BHSig260-H | |||||||
|---|---|---|---|---|---|---|---|---|
| EER ↓ | FAR ↓ | FRR ↓ | Acc ↑ | EER ↓ | FAR ↓ | FRR ↓ | Acc ↑ | |
| 0 | 6.39 | 6.39 | 6.39 | 93.61 | 5.42 | 5.41 | 5.42 | 94.59 |
| 9,036 | 1.88 | 1.88 | 1.88 | 98.12 | 3.21 | 3.21 | 3.21 | 96.79 |
| 18,072 | 1.58 | 1.58 | 1.57 | 98.43 | 2.59 | 2.59 | 2.59 | 97.41 |
| 27,108 | 2.19 | 2.19 | 2.19 | 97.81 | 3.05 | 3.05 | 3.05 | 96.95 |
(b) Setting 2: Controlled by existing implementations.
| Degree | BHSig260-B | BHSig260-H | ||||||
|---|---|---|---|---|---|---|---|---|
| EER ↓ | FAR ↓ | FRR ↓ | Acc ↑ | EER ↓ | FAR ↓ | FRR ↓ | Acc ↑ | |
| None | 4.59 | 4.59 | 4.59 | 95.41 | 5.73 | 5.73 | 5.72 | 94.27 |
| Mild | 2.00 | 2.00 | 2.01 | 98.00 | 3.68 | 3.68 | 3.68 | 96.32 |
| Full | 1.58 | 1.58 | 1.57 | 98.43 | 2.59 | 2.59 | 2.59 | 97.41 |
in Table IX. We measure performance degradation from source to target domain via accuracy drop (). All methods suffer noticeable degradation when transferred to unseen target datasets, with drops ranging from 3% to 43%. The decline is attributable to the domain-shift problem inherent in HSV [70, 73], where variations in language, writing style, and data volume introduce significant discrepancies between datasets. Despite this challenging setting, SigDiffuser consistently yields smaller than the baseline across different source-target pairs. For instance, when trained on BHSig260-H, it reduces the accuracy drops by 1.44%, 5.85%, and 4.56% on BHSig260-B, CEDAR, and HanSig, respectively. It also achieves the smallest performance drop among compared methods in many settings, such as BHSig260-H→BHSig260-B and HanSig→CEDAR. These results indicate that SigDiffuser degrades more gracefully under domain shift than both the baseline and existing HSV methods.
Nevertheless, the absolute cross-dataset performance remains limited. SigDiffuser's accuracy falls below 80% in 5 of the 12 cross-dataset settings, indicating a substantial gap from its in-domain performance (mostly above 92%). This difficulty is not specific to our method: under the same protocol, previous SOTA methods such as ILNNeck and DetailSemNet
exhibit comparable or more severe degradation, as evidenced by DetailSemNet falling below 80% in 8 of the 12 settings. These observations suggest that cross-domain transfer in HSV remains an open problem, where inherent morphological differences between scripts introduce representation gaps that current methods, including ours, do not fully resolve.
Beyond script differences, cross-dataset generalization is further influenced by experimental factors. Following previous studies, we adopt the standard training/testing splits for each dataset, which results in varying numbers of training writers (e.g., 50 for CEDAR and 100 for BHSig260-H). This leads to asymmetric generalization behaviors, where models trained on larger splits naturally acquire richer representations. For instance, BHSig260-B and BHSig260-H share similar collection environments, but transferring from the larger BHSig260-H (100 training writers) to BHSig260-B (50 training writers) yields a much smaller performance drop than the reverse. This confirms that scaling up training writers helps mitigate the domain gap. This advantage is further magnified by writer diversity in HanSig. Results show that transferring to HanSig incurs larger drops than transferring from it to other datasets. This stems from its large training split (795 names, 31,800 samples), which exposes models to far more diverse writing

(a) BHSig260-B.

(b) BHSig260-H.
Fig. 5: Grad-CAM [74] visualizations of downstream models. While MAE produces sharp responses on local, isolated strokes, SigDiffuser highlights broader, discriminative structures like stroke connections and turns, capturing rich personal writing styles.

(a) BHSig260-B: 12/24 samples per writer for 25/50 tested writers.

(b) BHSig260-H. 12/24 samples per writer for 30/60 tested writers.
Fig. 6: t-SNE visualizations of downstream HSV embeddings (partial samples shown; full results in Appendix H). We use the Silhouette score [75] to quantify the separation degree (higher is better). Compared to the baseline and MAE, SigDiffuser forms more compact writer-level clusters with significantly higher scores, demonstrating superior feature separability.
styles, resulting in better cross-domain results.
G. Effectiveness Analysis of RFR's Crumpling Strategy
Given the unprecedentedly severe crumpling applied to signatures in RFR, we explore the effectiveness of crumpling degrees through two strategies. (1) Scale factor control. We vary in Eq. 1 across 0, 9, 036, 18, 072, and 27, 108, representing moderate to severe crumpling. (2) Existing augmentation control. We apply data augmentation methods from SimAN [19] and CMT-Co [64] on clean signatures to emulate no spatial distortion (None) and mild crumpling (Mild), with vanilla RFR crumpling as Full. These proxies offer an alternative yet convincing evaluation of crumpling severity, with visualized and quantitative results shown in Fig. 4 and Table X.
Table X (a) shows that performance improves as increases, but excessive stroke warping () exceeds reconstruction capacity and degrades results. Table X (b) similarly shows that amplifying distortion progressively improves model performance. The consistency under both settings implies the effectiveness of introducing severe crumpling in RFR for empowering signature representation learning, which is a core difference against other generative methods that apply mild deformation [19] or simple noise addition [14, 15, 16]. In practice, one can tune to find the optimal crumpling degree for application. Furthermore, we investigate employing forged signatures as natural crumpling in comparison to the artificial crumpling of RFR in Appendix G, which yields similar findings that reinforce RFR's efficacy.
H. Visualization
We first evaluate feature discriminability using Grad-CAM [74] and t-SNE. Fig. 5 shows Grad-CAM heatmaps using
the ground-truth writer identity as targets. As observed, the baseline (no pretraining) generally fails to focus on valid signatures, while MAE (pretrained with MIM) sparsely activates on isolated stroke fragments, indicating shortcut learning based on superficial patterns. In contrast, SigDiffuser (pretrained with RFR) accurately attends to structurally significant regions like stroke connections and turns, which reflect intrinsic, unconscious personal writing habits. This confirms that the severe corruption design in RFR successfully suppresses direct reconstruction shortcuts, forcing the model to capture stable, discriminative writing-style evidence.
Subsequently, we present t-SNE visualizations of genuine signature features in Fig. 6 (partial samples shown for clarity; full results in Appendix H), illustrating how this attention translates into the global feature space. While baseline and MAE features exhibit noticeable class overlap and scattered distributions, SigDiffuser forms compact, well-separated writer clusters. This demonstrates that SigDiffuser effectively minimizes intra-writer variations and maximizes inter-writer separability, yielding discriminative representations. We further visualize SigDiffuser's reconstruction examples and failure cases in Appendices I and J.
V. LIMITATION
Apart from the strong HSV performance, some potential limitations warrant discussion. First, SigDiffuser primarily targets enhancing representation learning rather than image synthesis. Compared to dedicated image synthesis methods [16, 76], SigDiffuser may falter in producing a disentangled latent space and struggle with controllable image generation such as attribute manipulation. Second, while incorporating a broader range of signature data could further boost pretraining performance, we adhere to standard self-supervised protocols
[12, 16] that restrict pretraining to the same dataset as fine-tuning to ensure fair comparisons. Third, while SigDiffuser achieves leading performance under in-domain settings (Tables II to VI), its absolute accuracy under cross-domain transfer (e.g., Bengali↔English↔Chinese) remains limited, as discussed in Sec. IV-F. This is a field-wide challenge in HSV, and designing pretext tasks or domain-adaptation techniques that yield domain-invariant representations remains an important direction for future work.
VI. CONCLUSION
We propose SigDiffuser, a novel diffusion-based representation learning method for handwritten signature verification (HSV), comprising a Reconstruction from Ruins (RFR) pretext task and a pyramidal feature aggregation module (PFAM). RFR introduces severe crumpling corruption on signatures, creating a challenging reconstruction problem that compels the model's deep understanding of discriminative writing patterns. PFAM aggregates multi-scale encoder features into latent embeddings, elevating representation quality.
Experiments across multiple HSV datasets demonstrate SigDiffuser's superior performance and adaptability across diverse linguistic and stylistic contexts. We reveal that increasing crumpling severity yields better signature representations, validating RFR's effectiveness. Unlike existing works [14, 16] that apply simple noise on clean images, our work innovatively proves that extreme destruction (i.e., severe crumpling) can enhance latent encoding for more informative representations. By leveraging denoising diffusion to reconstruct severely "ruined" signatures, we naturally bridge diffusion models and self-supervised learning, paving a new avenue for signature representation and potentially inspiring advances in other biometric domains, such as fingerprint verification.
APPENDIX A
DATA PREPROCESSING
For data preprocessing, we first convert signature images into grayscale and remove the signature background with white pixel substitution. Gaussian filtering is then applied to filter out noise. Next, we excise the peripheral white pixel borders and resize the signature images to a fixed size of 96×336 (height × width), preserving the aspect ratio through white pixel padding until the preset dimensions are achieved to avoid distortions. Consequently, during pretraining, the patch side length is set to 96, resulting in a size of 96×96 for cropped image patches , , and . During downstream fine-tuning, we utilize 96×336 as the standard input size across all datasets.
APPENDIX B
PER-SPLIT PERFORMANCE OF SIGDIFFUSER
For transparency and reproducibility, we present the per-split performance of SigDiffuser on different datasets, along with comparisons against existing SOTA models. Results are presented in Tables XI to XV. As observed, SigDiffuser surpasses previous SOTA in most single-split cases, especially on BHSig260-B, BHSig260-H, HanSig, and UTSig. This demonstrates that our model's superiority holds not only in the multi-split average but also across single splits. Yet, the EER on CEDAR fluctuates from 1.59% (Split-1) to 18.55% (Split-11), resulting in a suboptimal multi-split average. This sensitivity to data partitioning highlights an inherent limitation of traditional single-split protocols, where performance can be heavily biased by a specific random split. Therefore, it underscores the necessity of our multi-split evaluation for a more objective and reliable assessment.
TABLE XI: Per-split performance on BHSig260-B [20].
| Model | EER↓ | FAR↓ | FRR↓ | Acc↑ |
|---|---|---|---|---|
| Existing SOTA Model | ||||
| CWA [45] | 2.53 | 2.95 | 2.14 | 97.27 |
| Ours | ||||
| Split-1 | 1.59 | 1.59 | 1.59 | 98.41 |
| Split-2 | 2.45 | 2.44 | 2.45 | 97.55 |
| Split-3 | 2.23 | 2.23 | 2.22 | 97.77 |
| Split-4 | 1.40 | 1.40 | 1.39 | 98.60 |
| Split-5 | 1.58 | 1.58 | 1.57 | 98.43 |
| Mean (±std) | 1.85 (±0.46) | 1.85 (±0.46) | 1.84 (±0.45) | 98.15 (±0.46) |
APPENDIX C
EXTENDED ABLATION STUDY: HIERARCHICAL ARCHITECTURE IMPLEMENTATION
To validate the effectiveness of the proposed pyramidal feature aggregation Module (PFAM) in hierarchical latent encoding, we conduct an ablation study regarding the implementation of multi-scale feature aggregation architectures. We implement three alternative hierarchical approaches to substitute the PFAM inside SigDiffuser, including channel-wise concatenation, cross-attention aggregation, and hierarchical bottlenecks. The first two directly integrate multi-scale features into decoder layers through concatenation or cross-attention. The hierarchical bottlenecks, which are an extension of the single bottleneck of SODA [16], compress multi-scale features into
TABLE XII: Per-split performance on BHSig260-H [20].
| Model | EER↓ | FAR↓ | FRR↓ | Acc↑ |
|---|---|---|---|---|
| Existing SOTA Model | ||||
| TransOSV [5] | 3.24 | 3.24 | 3.24 | - |
| Ours | ||||
| Split-1 | 3.13 | 3.13 | 3.13 | 96.87 |
| Split-2 | 3.31 | 3.31 | 3.31 | 96.69 |
| Split-3 | 3.44 | 3.44 | 3.44 | 96.56 |
| Split-4 | 3.18 | 3.18 | 3.19 | 96.82 |
| Split-5 | 2.59 | 2.59 | 2.58 | 97.41 |
| Mean (±std) | 3.13 (±0.33) | 3.13 (±0.33) | 3.13 (±0.33) | 96.87 (±0.33) |
TABLE XIII: Per-split performance on HanSig [21].
| Model | EER↓ | FAR↓ | FRR↓ | Acc↑ |
|---|---|---|---|---|
| Existing SOTA Model | ||||
| MGRNet [21] | 9.93 | 11.85 | 7.69 | - |
| CWA [45] | 9.47 | 6.61 | 16.23 | 90.26 |
| Ours | ||||
| Split-1 | 5.23 | 5.23 | 5.25 | 94.76 |
| Split-2 | 7.36 | 7.36 | 7.36 | 92.64 |
| Split-3 | 7.13 | 7.13 | 7.13 | 92.87 |
| Split-4 | 5.81 | 5.81 | 5.81 | 94.19 |
| Split-5 | 6.69 | 6.69 | 6.69 | 93.31 |
| Split-6 | 6.84 | 6.84 | 6.83 | 93.16 |
| Split-7 | 8.10 | 8.10 | 8.11 | 91.90 |
| Split-8 | 6.83 | 6.82 | 6.83 | 93.18 |
| Split-9 | 11.00 | 10.99 | 11.00 | 89.01 |
| Split-10 | 8.89 | 8.89 | 8.89 | 91.11 |
| Mean (±std) | 7.39 (±1.64) | 7.39 (±1.63) | 7.39 (±1.64) | 92.61 (±1.64) |
latent vectors and integrate them into decoder layers through addition. Table XVI presents the comparative results. It can be seen that PFAM exhibits the optimal performance among the four methods, underscoring its superiority. By cumulatively compounding multi-scale handwriting feature maps, PFAM produces more informative latent representations than other architectures that linearly use multi-scale features without further aggregation. The enriched latent representations, in turn, enhance the encoder's feature extraction capabilities, leading to more effective representation learning.
APPENDIX D
EXTENDED ABLATION STUDY: EFFECT OF DIFFUSION MODELING IN SIGDIFFUSER
In the RFR pretext task, SigDiffuser leverages the iterative denoising mechanism of diffusion to reconstruct severely crumpled signature patches for representation learning. To isolate the effect of the diffusion process, we remove it from the framework for an ablation. In this case, the framework degenerates into a single-step image-to-image translation model conditioned on an extra encoder. As shown in Table XVII, performance drops significantly without the diffusion process. This is because restoring a heavily crumpled signature is far beyond the capability of a single-step mapping, which consequently hampers representation learning. In contrast, the multi-step iterative denoising of diffusion effectively handles such reconstruction, enabling the model to learn meaningful representations. These results highlight the indispensable role of diffusion modeling in our method, resonating with our motivation for coupling the RFR pretext task with a diffusion-based framework.
TABLE XIV: Per-split performance on UTSig [22].
| Model | EER↓ | FAR↓ | FRR↓ | Acc↑ |
|---|---|---|---|---|
| Existing SOTA Model | ||||
| UTSig-S1 [22] | 29.71 | 21.29 | 39.27 | - |
| HTCSigNet [47] | 28.93 | 28.92 | 28.96 | 71.08 |
| Ours | ||||
| Split-1 | 24.22 | 24.22 | 24.23 | 75.78 |
| Split-2 | 20.50 | 20.51 | 20.50 | 79.49 |
| Split-3 | 25.18 | 25.17 | 25.19 | 74.83 |
| Split-4 | 24.35 | 24.35 | 24.36 | 75.65 |
| Split-5 | 23.14 | 23.14 | 23.15 | 76.86 |
| Mean (±std) | 23.48 (±1.81) | 23.48 (±1.81) | 23.49 (±1.82) | 76.52 (±1.81) |
TABLE XV: Per-split performance on CEDAR [23].
| Model | EER↓ | FAR↓ | FRR↓ | Acc↑ |
|---|---|---|---|---|
| Existing SOTA Model | ||||
| IDN [6] | 3.62 | 5.87 | 2.17 | - |
| SDNet [67] | 1.75 | 0.73 | 3.42 | - |
| Ours | ||||
| Split-1 | 1.59 | 1.60 | 1.59 | 98.40 |
| Split-2 | 3.26 | 3.26 | 3.26 | 96.74 |
| Split-3 | 2.46 | 2.47 | 2.46 | 97.54 |
| Split-4 | 2.25 | 2.26 | 2.25 | 97.75 |
| Split-5 | 4.62 | 4.62 | 4.64 | 95.38 |
| Split-6 | 5.02 | 5.03 | 5.00 | 94.98 |
| Split-7 | 3.38 | 3.37 | 3.41 | 96.62 |
| Split-8 | 8.06 | 8.06 | 8.04 | 91.95 |
| Split-9 | 16.50 | 16.49 | 16.52 | 83.50 |
| Split-10 | 10.42 | 10.42 | 10.43 | 89.58 |
| Split-11 | 18.55 | 18.54 | 18.55 | 81.46 |
| Mean (±std) | 6.92 (±5.88) | 6.92 (±5.87) | 6.92 (±5.88) | 93.08 (±5.88) |
APPENDIX E
EXTENDED ABLATION STUDY: EFFECT OF PRETRAINING EPOCHS
We further conduct an ablation study on the number of self-supervised pretraining epochs, with results shown in Table XVIII. As observed, the performance improves as the pretraining schedule becomes longer, despite minor fluctuations. The best results are obtained at 800 epochs. This is particularly evident on BHSig260-H, where EER drops from 3.45% to 2.59% and Acc rises to 97.41%.
These findings align with prior self-supervised learning methods, such as SimCLR [60], MoCo v2 [77], SwAV [78], and MAE [12], which demonstrate that longer pretraining generally improves downstream performance. Accordingly, they often adopt pretraining schedules of several hundred to over 1000 epochs, and inspire our adoption of 800 pretraining epochs. Although extended pretraining schedules are often studied on large-scale datasets such as ImageNet [79], our results indicate that this practice also benefits the proposed RFR task on relatively smaller signature datasets. Therefore, we adopt 800 epochs as the default pretraining schedule.
APPENDIX F
EXTENDED ABLATION STUDY: EFFECT OF PATCH SIDE LENGTH
The side length of the signature square patch used in RFR could essentially affect model performance. Consequently, we conduct ablation studies on the side length, with results presented in Table XIX. From the outcomes, increasing steadily improves the downstream performance, achieving the
TABLE XVI: Comparison of different multi-scale feature aggregation architectures used for SigDiffuser on BHSig260-B [20] and BHSig260-H [20]. PFAM denotes the pyramidal feature aggregation module of SigDiffuser.
| Architecture | BHSig260-B | BHSig260-H | ||||||
|---|---|---|---|---|---|---|---|---|
| EER ↓ | FAR ↓ | FRR ↓ | Acc ↑ | EER ↓ | FAR ↓ | FRR ↓ | Acc ↑ | |
| Concatenation | 1.77 | 1.77 | 1.77 | 98.23 | 3.83 | 3.83 | 3.83 | 96.17 |
| Cross-Attention | 4.78 | 4.78 | 4.77 | 95.22 | 7.11 | 7.11 | 7.11 | 92.89 |
| Hierarchical Bottleneck | 1.97 | 1.98 | 1.97 | 98.03 | 2.27 | 2.27 | 2.27 | 97.73 |
| PFAM | 1.58 | 1.58 | 1.57 | 98.43 | 2.59 | 2.59 | 2.59 | 97.41 |
TABLE XVII: Performance comparison of SigDiffuser pretrained with versus without diffusion modeling on BHSig260-B [20] and BHSig260-H [20].
| Method | BHSig260-B | BHSig260-H | ||||||
|---|---|---|---|---|---|---|---|---|
| EER ↓ | FAR ↓ | FRR ↓ | Acc ↑ | EER ↓ | FAR ↓ | FRR ↓ | Acc ↑ | |
| w/o Diffusion | 6.85 | 6.85 | 6.86 | 93.15 | 5.67 | 5.67 | 5.67 | 94.33 |
| w/ Diffusion | 1.58 | 1.58 | 1.57 | 98.43 | 2.59 | 2.59 | 2.59 | 97.41 |
optimal results at . Further increasing to 128 leads to an obvious drop in performance. The optimal value of naturally aligns with our downstream evaluation setup, which uses input dimensions of , ensuring better model perception of signature pixel distributions. Based on these results, we adopt for all experiments.
APPENDIX G
EFFECTIVENESS ANALYSIS OF RFR'S CRUMPLING STRATEGY: USING FORGERY AS NATURAL CRUMPLING
While RFR employs artificial crumpling, skillfully forged signatures represent natural deformations [81] of genuine signatures. Therefore, we compare using forgeries as corrupted images in RFR against the vanilla crumpling, with results presented in Table XX. As observed, downstream performance decreases when forged signatures are used as crumpling. The reasons could be two-fold. (1) Using forged signatures as corruptions reduces the pretraining data volume by over half, which could decline downstream performance. (2) The natural variations of forged signatures exhibit fewer spatial deformations compared to vanilla corrupted ones, weakening the model's representation learning ability. This aligns with the finding in Sec. IV-G that a lower corruption degree declines model performance, reinforcing the efficacy of using severe crumpling in RFR.
APPENDIX H
FULL T-SNE VISUALIZATION
Complementing Sec. IV-H1 in the main paper, we present the full t-SNE visualization results in Fig. 7. Compared with the baseline model and MAE, SigDiffuser forms significantly more compact and better separated writer-level clusters, with higher Silhouette scores. The visualized and numerical results collectively validate SigDiffuser's effectiveness in learning discriminative signature representations.
APPENDIX I
RECONSTRUCTION EXAMPLE
We present reconstruction examples across datasets in Fig. 8. Comparing the reconstructed signatures to the

(a) BHSig260-B.
(b) BHSig260-H.
Fig. 7: Full t-SNE visualizations [80] of downstream HSV embeddings. We use the Silhouette score [75] to quantify the compactness and separation (higher is better). SigDiffuser yields more compact writer-level feature clusters with significantly larger Silhouette scores than the baseline and MAE, validating its effectiveness in learning separable writer-level representations.

Fig. 8: Reconstruction visualizations of SigDiffuser on different datasets. denotes the intact signature patches used as the style reference, which is input to the visual encoder. denotes the corrupted signature patch. denotes the clean version of , which is also the reconstruction target of the model. denotes the reconstructed signature patches.
TABLE XVIII: Performance comparison under different numbers of pretraining epochs in the RFR task on BHSig260-B [20] and BHSig260-H [20].
| #Epoch | BHSig260-B | BHSig260-H | ||||||
|---|---|---|---|---|---|---|---|---|
| EER | FAR | FRR | Acc | EER | FAR | FRR | Acc | |
| 300 | 2.13 | 2.13 | 2.14 | 97.87 | 3.19 | 3.19 | 3.19 | 96.81 |
| 500 | 1.90 | 1.90 | 1.90 | 98.10 | 3.21 | 3.21 | 3.21 | 96.79 |
| 700 | 2.14 | 2.13 | 2.14 | 97.86 | 2.63 | 2.63 | 2.63 | 97.37 |
| 800 | 1.58 | 1.58 | 1.57 | 98.43 | 2.59 | 2.59 | 2.59 | 97.41 |
original uncrumpled ones , writing styles and textures are faithfully restored, while the content is sometimes imprecisely replicated as visually plausible but garbled characters. Nonetheless, unlike traditional font/text generation methods [82, 83], the primary objective of RFR is on capturing signature styles rather than precise verbatim replication. Despite these discrepancies, SigDiffuser achieves high-quality signature representations through self-supervised pretraining, as demonstrated across various datasets (Tables II to VI in the main paper). Furthermore, as shown in Fig. 1, SigDiffuser's reconstructions significantly surpass those of Masked Image
TABLE XIX: Performance comparison of varying signature patch size (side length) l used in the RFR task on BHSig260-B [20] and BHSig260-H [20].
| l | BHSig260-B | BHSig260-H | ||||||
|---|---|---|---|---|---|---|---|---|
| EER | FAR | FRR | Acc | EER | FAR | FRR | Acc | |
| 32 | 4.92 | 4.92 | 4.91 | 95.08 | 4.44 | 4.44 | 4.44 | 95.56 |
| 48 | 3.07 | 3.08 | 3.07 | 96.93 | 4.69 | 4.70 | 4.69 | 95.30 |
| 64 | 2.38 | 2.38 | 2.38 | 97.62 | 3.38 | 3.38 | 3.38 | 96.62 |
| 96 | 1.58 | 1.58 | 1.57 | 98.43 | 2.59 | 2.59 | 2.59 | 97.41 |
| 128 | 1.66 | 1.67 | 1.66 | 98.34 | 4.02 | 4.02 | 4.03 | 95.98 |
TABLE XX: Comparison between using forged signatures (natural destruction) and RFR's severe crumpling as destruction methods on BHSig260-B [20] and BHSig260-H [20].
| Crumpling Effect | BHSig260-B | BHSig260-H | ||||||
|---|---|---|---|---|---|---|---|---|
| EER | FAR | FRR | Acc | EER | FAR | FRR | Acc | |
| Forged Signature | 3.04 | 3.04 | 3.04 | 96.96 | 4.09 | 4.09 | 4.09 | 95.91 |
| Vanilla Crumpling | 1.58 | 1.58 | 1.57 | 98.43 | 2.59 | 2.59 | 2.59 | 97.41 |
Modeling (MIM), which only restores blurred structures. This superior structural fidelity demonstrates a deep understanding

Fig. 9: Visualization of false rejection and false acceptance examples of SigDiffuser.
of signature writing patterns, confirming that precise content replication is inconsequential to our method's overall effectiveness as an HSV pretraining approach.
APPENDIX J
FAILURE CASE ANALYSIS
We present some incorrectly verified samples of SigDiffuser across different datasets in Fig. 9, including false rejection and false acceptance. As observed, the false rejections typically exhibit significant deviations from their reference templates. For example, in CEDAR, the falsely rejected samples show larger inclination angles and contrasting size proportions (shorter overall length) compared to the template. In HanSig, the template signature displays a free-flowing writing style with obvious connected strokes, whereas the false rejection lacks stroke connections and exhibits a rigid writing style. The huge differences lead to their misclassification as forgeries, despite originating from the same writers of templates.
Regarding false acceptances, forged signatures often exhibit local writing patterns that resemble their corresponding template. For instance, the central portion of Bengali forgeries, the stroke inclination in Hindi forgeries, and the free-flowing writing style in Chinese forgeries all demonstrate similarities to their respective templates. The model may not always identify these deceptive details, leading to erroneous classification. These failed cases reveal that self-supervised learning remains challenged by some high-quality forged samples and struggles with genuine samples that exhibit significant stylistic variations from templates, despite improved HSV performance. Notably, Tables III to VII show that SigDiffuser maintains closely balanced FAR and FRR, suggesting the need for comprehensive optimization across all failure modes rather than targeting specific error types.
REFERENCES
[1] M. Diaz, M. A. Ferrer, D. Impedovo et al., "A Perspective Analysis of Handwritten Signature Technology," ACM Computing Survey, vol. 51, no. 6, Jan 2019. [2] P. Zhang, J. Jiang, Y. Liu, and L. Jin, "MSDS: A Large-Scale Chinese Signature and Token Digit String Dataset for Handwriting Verification," in NeurIPS, vol. 35, 2022, pp. 36 507–36 519. [3] P. Zhang, K. Ding, and L. Jin, "Capturing More: Learning Multi-Domain Representations for Robust Online Handwriting Verification," in ACM MM, 2025, p. 1471–1479. [4] R. Sabourin, G. Genest, and F. Preteux, "Off-Line Signature Verification by Local Granulometric Size Distributions," IEEE Transactions on Pattern Analysis and Machine Intelligence, vol. 19, no. 9, pp. 976–988, 1997. [5] H. Li, P. Wei, Z. Ma et al., "TransOSV: Offline Signature Verification with Transformers," Pattern Recognition, vol. 145, p. 109882, 2024. [6] P. Wei, H. Li, and P. Hu, "Inverse Discriminative Networks for Handwritten Signature Verification," in CVPR, June 2019, pp. 5757–5765. [7] C. Fan, S. Hou, J. Wang et al., "Learning Gait Representation From Massive Unlabelled Walking Videos: A Benchmark," IEEE Transactions on Pattern Analysis and Machine Intelligence, vol. 45, no. 12, pp. 14 920–14 937, 2023. [8] S. Wang, S. Chen, D.-H. Wang et al., "CAMD: Context-Aware Masked Distillation for General Self-Supervised Facial Representation Pre-Training," IEEE Transactions on Circuits and Systems for Video Technology, vol. 36, no. 4, pp. 4663–4677, 2026. [9] S. Chattopadhyay, S. Manna, S. Bhattacharya, and U. Pal, "SURDS: Self-Supervised Attention-guided Reconstruct-tion and Dual Triplet Loss for Writer Independent Offline Signature Verification," in ICPR, 2022, pp. 1600–1606.
[10] S. Manna, S. Chattopadhyay, S. Bhattacharya, and U. Pal, "SWIS: Self-Supervised Representation Learning for Writer Independent Offline Signature Verification," in ICIP, 2022, pp. 1411–1415.
[11] X. Liu, F. Zhang, Z. Hou et al., “Self-Supervised Learning: Generative or Contrastive,” IEEE Transactions on Knowledge and Data Engineering, vol. 35, no. 1, pp. 857–876, 2023.
[12] K. He, X. Chen, S. Xie et al., “Masked Autoencoders are Scalable Vision Learners,” in CVPR, June 2022, pp. 16000–16009.
[13] Z. Xie, Z. Zhang, Y. Cao et al., “SimMIM: A Simple Framework for Masked Image Modeling,” in CVPR, June 2022, pp. 9653–9663.
[14] K. Preechakul, N. Chatthee, S. Wizadwongsa, and S. Suwajanakorn, “Diffusion Autoencoders: Toward a Meaningful and Decodable Representation,” in CVPR, June 2022, pp. 10619–10629.
[15] W. Xiang, H. Yang, D. Huang, and Y. Wang, “Denoising Diffusion Autoencoders are Unified Self-supervised Learners,” in ICCV, October 2023, pp. 15 802–15 812.
[16] D. A. Hudson, D. Zoran, M. Malinowski et al., “SODA: Bottleneck Diffusion Models for Representation Learning,” in CVPR, June 2024, pp. 23 115–23 127.
[17] X. Chen, Z. Liu, S. Xie, and K. He, “Deconstructing Denoising Diffusion Models for Self-Supervised Learning,” in ICLR, 2025.
[18] Z. Zhang, Z. Zhao, and Z. Lin, “Unsupervised Representation Learning from Pre-trained Diffusion Probabilistic Models,” in NeurIPS, vol. 35, 2022, pp. 22117–22130.
[19] C. Luo, L. Jin, and J. Chen, “SimAN: Exploring Self-Supervised Representation Learning of Scene Text via Similarity-Aware Normalization,” in CVPR, June 2022, pp. 1039–1048.
[20] S. Pal, A. Alaei, U. Pal, and M. Blumenstein, “Performance of an Off-Line Signature Verification Method Based on Texture Features on a Large Indic-Script Signature Dataset,” in DAS, 2016, pp. 72–77.
[21] F.-H. Huang and H.-M. Lu, “Multiscale Global and Regional Feature Learning using Co-Tuplet Loss for Offline Handwritten Signature Verification,” arXiv preprint arXiv:2308.00428, 2023.
[22] A. Soleimani, K. Fouladi, and B. N. Araabi, “UTSig: A Persian Offline Signature Dataset,” IET Biometrics, vol. 6, no. 1, pp. 1–8, 2017.
[23] M. K. KALERA, S. SRIHARI, and A. XU, “Offline Signature Verification and Identification using Distance Statistics,” International Journal of Pattern Recognition and Artificial Intelligence, vol. 18, no. 07, pp. 1339–1360, 2004.
[24] A. Radford, L. Metz, and S. Chintala, “Unsupervised Representation Learning with Deep Convolutional Generative Adversarial Networks,” arXiv preprint arXiv:1511.06434, 2015.
[25] D. Pathak, P. Krahenbuhl, J. Donahue et al., “Context Encoders: Feature Learning by Inpainting,” in CVPR,
June 2016, pp. 2536–2544.
[26] A. Dosovitskiy, L. Beyer, A. Kolesnikov et al., “An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale,” in ICLR, 2021.
[27] K. Tian, Y. Jiang, Q. Diao et al., “Designing BERT for Convolutional Networks: Sparse and Hierarchical Masked Modeling,” in ICLR, 2023.
[28] M. Chen, A. Radford, R. Child, J. Wu, H. Jun, D. Luan, and I. Sutskever, “Generative Pretraining From Pixels,” in ICML, vol. 119, 2020, pp. 1691–1703.
[29] M. Fuest, P. Ma, M. Gui et al., “Diffusion Models and Representation Learning: A Survey,” IEEE Transactions on Pattern Analysis and Machine Intelligence, vol. 48, no. 7, pp. 7209–7228, 2026.
[30] Y. Kim, K. Lee, M. Park et al., “Diffusion Bridge AutoEncoders for Unsupervised Representation Learning,” in ICLR, 2025, pp. 84 846–84 887.
[31] S. Chen and S. Srihari, “Use of Exterior Contours and Shape Features in Off-Line Signature Verification,” in ICDAR, 2005, pp. 1280–1284.
[32] D. Bertolini, L. Oliveira, E. Justino, and R. Sabourin, “Reducing Forgeries in Writer-Independent Off-Line Signature Verification through Ensemble of Classifiers,” Pattern Recognition, vol. 43, no. 1, pp. 387–396, 2010.
[33] A. Hamadene and Y. Chibani, “One-Class Writer-Independent Offline Signature Verification using Feature Dissimilarity Thresholding,” IEEE Transactions on Information Forensics and Security, vol. 11, no. 6, pp. 1226–1238, 2016.
[34] J. Vargas, M. Ferrer, C. Travieso, and J. Alonso, “Off-Line Signature Verification Based on Grey Level Information using Texture Features,” Pattern Recognition, vol. 44, no. 2, pp. 375–385, 2011.
[35] M. A. Ferrer, J. F. Vargas, A. Morales, and A. Ordonez, “Robustness of Offline Signature Verification based on Gray Level Features,” IEEE Transactions on Information Forensics and Security, vol. 7, no. 3, pp. 966–977, 2012.
[36] J. Hu and Y. Chen, “Offline Signature Verification using Real Adaboost Classifier Combination of Pseudo-Dynamic Features,” in ICDAR, 2013, pp. 1345–1349.
[37] R. Kumar, J. Sharma, and B. Chanda, “Writer-Independent Off-Line Signature Verification using Surroundedness Feature,” Pattern Recognition Letters, vol. 33, no. 3, pp. 301–308, 2012.
[38] M. Okawa, “Synergy of Foreground–Background Images for Feature Extraction: Offline Signature Verification using Fisher Vector with Fused KAZE Features,” Pattern Recognition, vol. 79, pp. 480–489, 2018.
[39] E. N. Zois, D. Tsourounis, and D. Kalivas, “Similarity Distance Learning on SPD Manifold for Writer Independent Offline Signature Verification,” IEEE Transactions on Information Forensics and Security, vol. 19, pp. 1342–1356, 2024.
[40] L. G. Hafemann, R. Sabourin, and L. S. Oliveira, “Learning Features for Offline Handwritten Signature Verification using Deep Convolutional Neural Networks,” Pattern Recognition, vol. 70, pp. 163–176, 2017.
[41] S. Dey, A. Dutta, J. I. Toledo et al., “SigNet:
Convolutional Siamese Network for Writer Independent Offline Signature Verification," arXiv preprint arXiv:1707.02131, 2017.
[42] C. Li, F. Lin, Z. Wang et al., “DeepHSV: User-Independent Offline Signature Verification using Two-Channel CNN,” in ICDAR, 2019, pp. 166–171.
[43] L. Liu, L. Huang, F. Yin et al., “Offline Signature Verification using a Region Based Deep Metric Learning Network,” Pattern Recognition, vol. 118, p. 108009, 2021.
[44] H. Li, P. Wei, and P. Hu, “AVN: An Adversarial Variation Network Model for Handwritten Signature Verification,” IEEE Transactions on Multimedia, vol. 24, pp. 594–608, 2022.
[45] L.-R. Ling, H. Zhang, Y. Fei, and C.-L. Liu, “Deep Metric Learning with Cross-Writer Attention for Offline Signature Verification,” in ICDAR, 2024, pp. 250–267.
[46] M.-C. Shih, T.-L. Huang, Y.-H. Shih et al., “DetailSemNet: Elevating Signature Verification Through Detail-Semantic Integration,” in ECCV, 2024, pp. 449–466.
[47] L. Zheng, D. Wu, S. Xu, and Y. Zheng, “HTCSigNet: A Hybrid Transformer and Convolution Signature Network for Offline Signature Verification,” Pattern Recognition, vol. 159, p. 111146, 2025.
[48] J.-X. Ren, Y.-J. Xiong, H. Zhan et al., “2C2S: A Two-Channel and Two-Stream Transformer Based Framework for Offline Signature Verification,” Engineering Applications of Artificial Intelligence, vol. 118, p. 105639, 2023.
[49] C.-Q. Lin, D.-H. Wang, Y.-F. Su et al., “OCR4HSV: A Multi-task Learning Approach for Handwritten Signature Verification,” in ICPR, 2025, pp. 287–302.
[50] X. Zhao, L. Zheng, P. Yuan et al., “Fusing Deep and Hand-Crafted Features by Deep Canonically Correlated Contractive Autoencoder for Offline Signature Verification,” Pattern Recognition, vol. 168, p. 111834, 2025.
[51] S. Lai and L. Jin, “Learning Discriminative Feature Hierarchies for Off-Line Signature Verification,” in ICFHR, 2018, pp. 175–180.
[52] S. Gidaris, P. Singh, and N. Komodakis, “Unsupervised Representation Learning by Predicting Image Rotations,” in ICLR, 2018.
[53] K. He, X. Zhang, S. Ren, and J. Sun, “Deep Residual Learning for Image Recognition,” in CVPR, June 2016.
[54] T.-Y. Lin, P. Dollar, R. Girshick, K. He, B. Hariharan, and S. Belongie, “Feature Pyramid Networks for Object Detection,” in CVPR, July 2017.
[55] J. Song, C. Meng, and S. Ermon, “Denoising Diffusion Implicit Models,” in ICLR, 2021.
[56] O. Ronneberger, P. Fischer, and T. Brox, “U-Net: Convolutional Networks for Biomedical Image Segmentation,” in MICCAI, 2015, pp. 234–241.
[57] K. He, X. Zhang, S. Ren et al., “Spatial Pyramid Pooling in Deep Convolutional Networks for Visual Recognition,” IEEE Transactions on Pattern Analysis and Machine Intelligence, vol. 37, no. 9, pp. 1904–1916, 2015.
[58] K. Simonyan and A. Zisserman, “Very Deep Convolutional Networks for Large-Scale Image Recognition,” in
ICLR, 2015.
[59] Z. Liu, H. Mao, C.-Y. Wu et al., “A ConvNet for the 2020s,” in CVPR, June 2022, pp. 11976–11986.
[60] T. Chen, S. Kornblith, M. Norouzi, and G. Hinton, “A Simple Framework for Contrastive Learning of Visual Representations,” in ICML, vol. 119, 13–18 Jul 2020, pp. 1597–1607.
[61] J.-B. Grill, F. Strub, F. Altché et al., “Bootstrap Your Own Latent - A New Approach to Self-Supervised Learning,” in NeurIPS, vol. 33, 2020, pp. 21 271–21 284.
[62] A. Aberdam, R. Litman, S. Tsiper et al., “Sequence-to-Sequence Contrastive Learning for Text Recognition,” in CVPR, June 2021, pp. 15 302–15 312.
[63] X. Zhang, T. Wang, J. Wang et al., “ChaCo: Character Contrastive Learning for Handwritten Text Recognition,” in ICFHR, 2022, pp. 345–359.
[64] X. Zhang, J. Wang, L. Jin et al., “CMT-Co: Contrastive Learning with Character Movement Task for Handwritten Text Recognition,” in ACCV, 2022, pp. 3104–3120.
[65] X. Zhang, R. Jiang, W. Gao et al., “Residual Connections Harm Generative Representation Learning,” in CVPR, June 2026, pp. 39 669–39 679.
[66] S. Lai, L. Jin, Y. Zhu et al., “SynSig2Vec: Forgery-Free Learning of Dynamic Signature Representations by Sigma Lognormal-Based Synthesis and 1D CNN,” IEEE Transactions on Pattern Analysis and Machine Intelligence, vol. 44, no. 10, pp. 6472–6485, 2022.
[67] H. Li, P. Wei, and P. Hu, “Static-Dynamic Interaction Networks for Offline Signature Verification,” AAAI, vol. 35, pp. 1893–1901, May 2021.
[68] X. Lu, L. Huang, and F. Yin, “Cut and Compare: End-to-end Offline Signature Verification Network,” in ICPR, 2021, pp. 3589–3596.
[69] X. ji, D. Suehiro, and S. Uchida, “Paired Contrastive Feature for Highly Reliable Offline Signature Verification,” Pattern Recognition, vol. 144, p. 109816, 2023.
[70] X. Cairang, D. Zhaxi, X. Yang et al., “Learning Generalisable Representations for Offline Signature Verification,” in IJCNN, 2022, pp. 1–7.
[71] M. Ajj, S. Pratihar, S. R. Nayak et al., “Off-Line Signature Verification using Elementary Combinations of Directional Codes from Boundary Pixels,” Neural Computing and Applications, pp. 1–18, 2023.
[72] W. Peebles and S. Xie, “Scalable Diffusion Models with Transformers,” in ICCV, October 2023, pp. 4195–4205.
[73] D. Engin, A. Kantarci, S. Arslan, and H. K. Ekenel, “Offline Signature Verification on Real-World Documents,” in CVPRW, June 2020.
[74] R. R. Selvaraju, M. Cogswell, A. Das et al., “Grad-CAM: Visual Explanations From Deep Networks via Gradient-Based Localization,” in ICCV, Oct 2017.
[75] P. J. Rousseeuw, “Silhouettes: A Graphical Aid to the Interpretation and Validation of Cluster Analysis,” Journal of Computational and Applied Mathematics, vol. 20, pp. 53–65, 1987.
[76] G. Ding, X. Han, S. Wang et al., “Stable Attribute Group Editing for Reliable Few-Shot Image Generation,” IEEE Transactions on Circuits and Systems for Video
Technology, vol. 35, no. 12, pp. 12719–12733, 2025.
[77] X. Chen, H. Fan, R. Girshick, and K. He, “Improved Baselines with Momentum Contrastive Learning,” arXiv preprint arXiv:2003.04297, 2020.
[78] M. Caron, I. Misra, J. Mairal, P. Goyal, P. Bojanowski, and A. Joulin, “Unsupervised Learning of Visual Features by Contrasting Cluster Assignments,” in NeurIPS, vol. 33, 2020, pp. 9912–9924.
[79] J. Deng, W. Dong, R. Socher, L.-J. Li, K. Li, and L. Fei-Fei, “ImageNet: A Large-Scale Hierarchical Image Database,” in CVPR, 2009, pp. 248–255.
[80] L. Van der Maaten and G. Hinton, “Visualizing Data using t-SNE,” JMLR, vol. 9, no. 11, 2008.
[81] P. Zhang, Y. Liu, S. Lai et al., “Privacy-Preserving Biometric Verification with Handwritten Random Digit String,” IEEE Transactions on Pattern Analysis and Machine Intelligence, vol. 47, no. 4, pp. 3049–3066, 2025.
[82] Z. Yang, D. Peng, Y. Kong et al., “FontDiffuser: One-Shot Font Generation via Denoising Diffusion with Multi-Scale Content Aggregation and Style Contrastive Learning,” AAAI, vol. 38, no. 7, pp. 6603–6611, 2024.
[83] C. Luo, Y. Zhu, L. Jin, Z. Li, and D. Peng, “SLOGAN: Handwriting Style Synthesis for Arbitrary-Length and Out-of-Vocabulary Text,” IEEE Transactions on Neural Networks and Learning Systems, vol. 34, no. 11, pp. 8503–8515, 2023.