Paper Reading AI Learner

Vulnerability Analysis of Transformer-based Optical Character Recognition to Adversarial Attacks

2023-11-28 15:22:23
Lucas Beerens, Desmond J. Higham

Abstract

Recent advancements in Optical Character Recognition (OCR) have been driven by transformer-based models. OCR systems are critical in numerous high-stakes domains, yet their vulnerability to adversarial attack remains largely uncharted territory, raising concerns about security and compliance with emerging AI regulations. In this work we present a novel framework to assess the resilience of Transformer-based OCR (TrOCR) models. We develop and assess algorithms for both targeted and untargeted attacks. For the untargeted case, we measure the Character Error Rate (CER), while for the targeted case we use the success ratio. We find that TrOCR is highly vulnerable to untargeted attacks and somewhat less vulnerable to targeted attacks. On a benchmark handwriting data set, untargeted attacks can cause a CER of more than 1 without being noticeable to the eye. With a similar perturbation size, targeted attacks can lead to success rates of around $25\%$ -- here we attacked single tokens, requiring TrOCR to output the tenth most likely token from a large vocabulary.

Abstract (translated)

近年来,在自然语言处理(NLP)领域,特别是基于Transformer的模型在光学字符识别(OCR)方面的进步取得了重要突破。OCR系统在许多高风险领域至关重要,但它们对攻击的抵抗力仍然是一个未被充分探索的领域,这引发了关于安全和人工智能法规遵守方面的担忧。在这项工作中,我们提出了一个评估Transformer-based OCR(TrOCR)模型韧性的新框架。我们开发并评估了针对目标和无目标攻击的算法。对于无目标攻击,我们测量字符误差率(CER),而对于有目标攻击,我们使用成功率。我们发现,TrOCR在无目标攻击上高度脆弱,在有目标攻击上 somewhat less vulnerable。在一个人工手写数据集上进行评估,无目标攻击可能导致超过1的CER,而目标攻击可能导致约25%的成功率。在这里,我们攻击单个标记,要求TrOCR从大型词汇中输出最有可能的标记。

URL

https://arxiv.org/abs/2311.17128

PDF

https://arxiv.org/pdf/2311.17128.pdf


Tags
3D Action Action_Localization Action_Recognition Activity Adversarial Agent Attention Autonomous Bert Boundary_Detection Caption Chat Classification CNN Compressive_Sensing Contour Contrastive_Learning Deep_Learning Denoising Detection Dialog Diffusion Drone Dynamic_Memory_Network Edge_Detection Embedding Embodied Emotion Enhancement Face Face_Detection Face_Recognition Facial_Landmark Few-Shot Gait_Recognition GAN Gaze_Estimation Gesture Gradient_Descent Handwriting Human_Parsing Image_Caption Image_Classification Image_Compression Image_Enhancement Image_Generation Image_Matting Image_Retrieval Inference Inpainting Intelligent_Chip Knowledge Knowledge_Graph Language_Model LLM Matching Medical Memory_Networks Multi_Modal Multi_Task NAS NMT Object_Detection Object_Tracking OCR Ontology Optical_Character Optical_Flow Optimization Person_Re-identification Point_Cloud Portrait_Generation Pose Pose_Estimation Prediction QA Quantitative Quantitative_Finance Quantization Re-identification Recognition Recommendation Reconstruction Regularization Reinforcement_Learning Relation Relation_Extraction Represenation Represenation_Learning Restoration Review RNN Robot Salient Scene_Classification Scene_Generation Scene_Parsing Scene_Text Segmentation Self-Supervised Semantic_Instance_Segmentation Semantic_Segmentation Semi_Global Semi_Supervised Sence_graph Sentiment Sentiment_Classification Sketch SLAM Sparse Speech Speech_Recognition Style_Transfer Summarization Super_Resolution Surveillance Survey Text_Classification Text_Generation Tracking Transfer_Learning Transformer Unsupervised Video_Caption Video_Classification Video_Indexing Video_Prediction Video_Retrieval Visual_Relation VQA Weakly_Supervised Zero-Shot