Manuscript Offprint

arXiv:2611.07810

Self-Supervised Diffusion Models for Handwritten Signature Verification via Ruin Reconstruction

Peirong Zhang, Zhenhua Yang, Jiaxin Zhang, Moises Diaz, Miguel A. Ferrer, Umapada Pal, Wei Zhou, Lianwen Jin

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.

Figure

(a) Masked Image Modeling (MIM)

Figure

Figure

(b) Reconstruction from Ruins (RFR)

Figure

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.

References (83)

  • A Perspective Analysis of Handwritten Signature Technology
  • MSDS: A Large-Scale Chinese Signature and Token Digit String Dataset for Handwriting Verification
  • Capturing More: Learning Multi-Domain Representations for Robust Online Handwriting Verification
  • Off-Line Signature Verification by Local Granulometric Size Distributions
  • TransOSV: Offline Signature Verification with Transformers
  • Inverse Discriminative Networks for Handwritten Signature Verification
  • Learning Gait Representation From Massive Unlabelled Walking Videos: A Benchmark
  • CAMD: Context-Aware Masked Distillation for General Self-Supervised Facial Representation Pre-Training
  • SURDS: Self-Supervised Attention-guided Reconstruct-tion and Dual Triplet Loss for Writer Independent Offline Signature Verification
  • SWIS: Self-Supervised Representation Learning for Writer Independent Offline Signature Verification
  • Self-Supervised Learning: Generative or Contrastive
  • Masked Autoencoders are Scalable Vision Learners
  • SimMIM: A Simple Framework for Masked Image Modeling
  • Diffusion Autoencoders: Toward a Meaningful and Decodable Representation
  • Denoising Diffusion Autoencoders are Unified Self-supervised Learners
  • SODA: Bottleneck Diffusion Models for Representation Learning
  • Deconstructing Denoising Diffusion Models for Self-Supervised Learning
  • Unsupervised Representation Learning from Pre-trained Diffusion Probabilistic Models
  • SimAN: Exploring Self-Supervised Representation Learning of Scene Text via Similarity-Aware Normalization
  • Performance of an Off-Line Signature Verification Method Based on Texture Features on a Large Indic-Script Signature Dataset
  • Multiscale Global and Regional Feature Learning using Co-Tuplet Loss for Offline Handwritten Signature Verification (opens arXiv in a new tab)
  • UTSig: A Persian Offline Signature Dataset
  • Offline Signature Verification and Identification using Distance Statistics
  • Unsupervised Representation Learning with Deep Convolutional Generative Adversarial Networks
  • Context Encoders: Feature Learning by Inpainting
  • An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • Designing BERT for Convolutional Networks: Sparse and Hierarchical Masked Modeling
  • Generative Pretraining From Pixels
  • Diffusion Models and Representation Learning: A Survey
  • Diffusion Bridge AutoEncoders for Unsupervised Representation Learning
  • Use of Exterior Contours and Shape Features in Off-Line Signature Verification
  • Reducing Forgeries in Writer-Independent Off-Line Signature Verification through Ensemble of Classifiers
  • One-Class Writer-Independent Offline Signature Verification using Feature Dissimilarity Thresholding
  • Off-Line Signature Verification Based on Grey Level Information using Texture Features
  • Robustness of Offline Signature Verification based on Gray Level Features
  • Offline Signature Verification using Real Adaboost Classifier Combination of Pseudo-Dynamic Features
  • Writer-Independent Off-Line Signature Verification using Surroundedness Feature
  • Synergy of Foreground–Background Images for Feature Extraction: Offline Signature Verification using Fisher Vector with Fused KAZE Features
  • Similarity Distance Learning on SPD Manifold for Writer Independent Offline Signature Verification
  • Learning Features for Offline Handwritten Signature Verification using Deep Convolutional Neural Networks
  • SigNet: Convolutional Siamese Network for Writer Independent Offline Signature Verification (opens arXiv in a new tab)
  • DeepHSV: User-Independent Offline Signature Verification using Two-Channel CNN
  • Offline Signature Verification using a Region Based Deep Metric Learning Network
  • AVN: An Adversarial Variation Network Model for Handwritten Signature Verification
  • Deep Metric Learning with Cross-Writer Attention for Offline Signature Verification
  • DetailSemNet: Elevating Signature Verification Through Detail-Semantic Integration
  • HTCSigNet: A Hybrid Transformer and Convolution Signature Network for Offline Signature Verification
  • 2C2S: A Two-Channel and Two-Stream Transformer Based Framework for Offline Signature Verification
  • OCR4HSV: A Multi-task Learning Approach for Handwritten Signature Verification
  • Fusing Deep and Hand-Crafted Features by Deep Canonically Correlated Contractive Autoencoder for Offline Signature Verification
  • Learning Discriminative Feature Hierarchies for Off-Line Signature Verification
  • Unsupervised Representation Learning by Predicting Image Rotations
  • Deep Residual Learning for Image Recognition
  • Feature Pyramid Networks for Object Detection
  • Denoising Diffusion Implicit Models
  • U-Net: Convolutional Networks for Biomedical Image Segmentation
  • Spatial Pyramid Pooling in Deep Convolutional Networks for Visual Recognition
  • Very Deep Convolutional Networks for Large-Scale Image Recognition
  • A ConvNet for the 2020s
  • A Simple Framework for Contrastive Learning of Visual Representations
  • Bootstrap Your Own Latent - A New Approach to Self-Supervised Learning
  • Sequence-to-Sequence Contrastive Learning for Text Recognition
  • ChaCo: Character Contrastive Learning for Handwritten Text Recognition
  • CMT-Co: Contrastive Learning with Character Movement Task for Handwritten Text Recognition
  • Residual Connections Harm Generative Representation Learning
  • SynSig2Vec: Forgery-Free Learning of Dynamic Signature Representations by Sigma Lognormal-Based Synthesis and 1D CNN
  • Static-Dynamic Interaction Networks for Offline Signature Verification
  • Cut and Compare: End-to-end Offline Signature Verification Network
  • Paired Contrastive Feature for Highly Reliable Offline Signature Verification
  • Learning Generalisable Representations for Offline Signature Verification
  • Off-Line Signature Verification using Elementary Combinations of Directional Codes from Boundary Pixels
  • Scalable Diffusion Models with Transformers
  • Offline Signature Verification on Real-World Documents
  • Grad-CAM: Visual Explanations From Deep Networks via Gradient-Based Localization
  • Silhouettes: A Graphical Aid to the Interpretation and Validation of Cluster Analysis
  • Stable Attribute Group Editing for Reliable Few-Shot Image Generation
  • Improved Baselines with Momentum Contrastive Learning (opens arXiv in a new tab)
  • Unsupervised Learning of Visual Features by Contrasting Cluster Assignments
  • ImageNet: A Large-Scale Hierarchical Image Database
  • Visualizing Data using t-SNE
  • Privacy-Preserving Biometric Verification with Handwritten Random Digit String
  • FontDiffuser: One-Shot Font Generation via Denoising Diffusion with Multi-Scale Content Aggregation and Style Contrastive Learning
  • SLOGAN: Handwriting Style Synthesis for Arbitrary-Length and Out-of-Vocabulary Text