TopoReformer: Mitigating Adversarial Attacks Using Topological Purification in OCR Models

Bhagyesh Kumar, A S Aravinthakashan, Akshat Satyanarayan, Ishaan Gakhar, Ujjwal Verma
11/19/2025
cs.LGcs.AI

No official code found. Best implementation: invi-bhagyesh/TopoReformer (3 stars, last commit 2026-02-21).

Abstract

Adversarially perturbed images of text can cause sophisticated OCR systems to produce misleading or incorrect transcriptions from seemingly invisible changes to humans. Some of these perturbations even survive physical capture, posing security risks to high-stakes applications such as document processing, license plate recognition, and automated compliance systems. Existing defenses, such as adversarial training, input preprocessing, or post-recognition correction, are often model-specific, computationally expensive, and affect performance on unperturbed inputs while remaining vulnerable to unseen or adaptive attacks. To address these challenges, TopoReformer is introduced, a model-agnostic reformation pipeline that mitigates adversarial perturbations while preserving the structural integrity of text images. Topology studies properties of shapes and spaces that remain unchanged under continuous deformations, focusing on global structures such as connectivity, holes, and loops rather than exact distance. Leveraging these topological features, TopoReformer employs a topological autoencoder to enforce manifold-level consistency in latent space and improve robustness without explicit gradient regularization. The proposed method is benchmarked on EMNIST, MNIST, against standard adversarial attacks (FGSM, PGD, Carlini-Wagner), adaptive attacks (EOT, BDPA), and an OCR-specific watermark attack (FAWA).

View on arXivView PDF

Code Implementations(1)

[AAAI 26] TopoReformer: Mitigating Adversarial Attacks Using Topological Purification in OCR Models

32PythonAug 15, 20258 months ago
adversarial-attackspersistent-homologytopology

Similar Papers

Cite this paper

@article{kumar2025toporeformer,
  title  = {TopoReformer: Mitigating Adversarial Attacks Using Topological Purification in OCR Models},
  author = {Bhagyesh Kumar and A S Aravinthakashan and Akshat Satyanarayan and Ishaan Gakhar and Ujjwal Verma},
  year   = {2025},
  eprint = {2511.15807},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2511.15807v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2511.15807.svg)](https://codeofpaper.com/paper/2511.15807)

Discussion