# SAGHOG: Self-Supervised Autoencoder for Generating HOG Features for Writer Retrieval

arXiv: https://arxiv.org/abs/2404.17221 · HTML: https://mlsanity.com/paper/2404.17221/

## Key facts

- Cited by 4 papers in the map (data through 14 Oct 2026).
- Builds on 17 of its 37 references that are in the map.
- First posted on arXiv 26 Apr 2024.

## Builds on (most cited first, 17 of 17)

- [Adam: A Method for Stochastic Optimization](https://mlsanity.com/paper/1412.6980/) (2014)
- [An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale](https://mlsanity.com/paper/2010.11929/) (2020)
- [A Simple Framework for Contrastive Learning of Visual Representations](https://mlsanity.com/paper/2002.05709/) (2020)
- [Segment Anything](https://mlsanity.com/paper/2304.02643/) (2023)
- [Momentum Contrast for Unsupervised Visual Representation Learning](https://mlsanity.com/paper/1911.05722/) (2019)
- [Masked Autoencoders Are Scalable Vision Learners](https://mlsanity.com/paper/2111.06377/) (2021)
- [Emerging Properties in Self-Supervised Vision Transformers](https://mlsanity.com/paper/2104.14294/) (2021)
- [SGDR: Stochastic Gradient Descent with Warm Restarts](https://mlsanity.com/paper/1608.03983/) (2016)
- [Masked Feature Prediction for Self-Supervised Visual Pre-Training](https://mlsanity.com/paper/2112.09133/) (2021)
- [Multi-Similarity Loss with General Pair Weighting for Deep Metric Learning](https://mlsanity.com/paper/1904.06627/) (2019)
- [Unsupervised Feature Learning for Writer Identification and Writer Retrieval](https://mlsanity.com/paper/1705.09369/) (2017)
- [Encoding CNN Activations for Writer Recognition](https://mlsanity.com/paper/1712.07923/) (2017)
- [ICDAR 2019 Competition on Image Retrieval for Historical Handwritten Documents](https://mlsanity.com/paper/1912.03713/) (2019)
- [ICFHR 2020 Competition on Image Retrieval for Historical Handwritten Fragments](https://mlsanity.com/paper/2010.10197/) (2020)
- [Writer Retrieval and Writer Identification in Greek Papyri](https://mlsanity.com/paper/2212.07664/) (2022)
- [Towards Writer Retrieval for Historical Datasets](https://mlsanity.com/paper/2305.05358/) (2023)
- [Feature Mixing for Writer Retrieval and Identification on Papyri Fragments](https://mlsanity.com/paper/2306.12939/) (2023)

## Built on by (most cited first, 4 of 4)

- [Towards the Influence of Text Quantity on Writer Retrieval](https://mlsanity.com/paper/2506.07566/) (2025)
- [Beyond the Pipeline: Analyzing Key Factors in End-to-End Deep Learning for Historical Writer Identification](https://mlsanity.com/paper/2510.18671/) (2025)
- [BullingerDB: A Dataset for Handwritten Text Recognition and Writer Retrieval](https://mlsanity.com/paper/2605.30235/) (2026)
- [Handwriting Extraction and Analysis of Signature Lists in Swiss Popular Initiatives](https://mlsanity.com/paper/2606.05018/) (2026)

## Abstract (arXiv)

This paper introduces SAGHOG, a self-supervised pretraining strategy for writer retrieval using HOG features of the binarized input image. Our preprocessing involves the application of the Segment Anything technique to extract handwriting from various datasets, ending up with about 24k documents, followed by training a vision transformer on reconstructing masked patches of the handwriting. SAGHOG is then finetuned by appending NetRVLAD as an encoding layer to the pretrained encoder. Evaluation of our approach on three historical datasets, Historical-WI, HisFrag20, and GRK-Papyri, demonstrates the effectiveness of SAGHOG for writer retrieval. Additionally, we provide ablation studies on our architecture and evaluate un- and supervised finetuning. Notably, on HisFrag20, SAGHOG outperforms related work with a mAP of 57.2 % - a margin of 11.6 % to the current state of the art, showcasing its robustness on challenging data, and is competitive on even small datasets, e.g. GRK-Papyri, where we achieve a Top-1 accuracy of 58.0%.
