STR-Cert: Robustness Certification for Deep Text Recognition on Deep Learning Pipelines and Vision Transformers
Daqian Shao, Lukas Fesser, Marta Kwiatkowska
TL;DR
STR-Cert tackles robustness certification for scene text recognition, a challenging image-based sequence prediction task, including Vision Transformer pipelines. It extends the DeepPoly polyhedral framework with novel bounds for components such as TPS, patch embedding, and the CTC/Softmax layers to certify STR models under $L_∞$ perturbations. The method certifies three STR architectures (CTC, attention, and ViTSTR) across six STR benchmarks, revealing scalability advantages of ViTSTR over LSTM-based decoders, especially for longer sequences. The work demonstrates practical safety guarantees for STR systems and points to future work in rotation robustness, branch-and-bound enhancements, and other perturbation norms.
Abstract
Robustness certification, which aims to formally certify the predictions of neural networks against adversarial inputs, has become an integral part of important tool for safety-critical applications. Despite considerable progress, existing certification methods are limited to elementary architectures, such as convolutional networks, recurrent networks and recently Transformers, on benchmark datasets such as MNIST. In this paper, we focus on the robustness certification of scene text recognition (STR), which is a complex and extensively deployed image-based sequence prediction problem. We tackle three types of STR model architectures, including the standard STR pipelines and the Vision Transformer. We propose STR-Cert, the first certification method for STR models, by significantly extending the DeepPoly polyhedral verification framework via deriving novel polyhedral bounds and algorithms for key STR model components. Finally, we certify and compare STR models on six datasets, demonstrating the efficiency and scalability of robustness certification, particularly for the Vision Transformer.
