RepTran: Search-Based Repair of Transformer Models
Not on the map. Why?
Abstract (arXiv)
To ensure the overall quality of AI-enabled software, not only traditional software components but also AI components need to be tested and repaired. Among AI components, Transformer models are increasingly integrated into software systems, which makes their misbehaviors critical. Although prior work in the software engineering community has proposed deep neural network (DNN) repair methods, most overlook Transformer-specific structures. We propose RepTran, a search-based repair method for Transformer models. It targets their feed-forward networks (FFNs), which play a central role in the architecture. RepTran identifies suspicious weights by combining two types of scores: a variance-based neuron score and an existing bidirectional score. It then iteratively optimizes these weights using differential evolution. Our evaluation includes 18 fault benchmarks constructed from CIFAR-100 and Tiny-ImageNet. We compare RepTran against three baselines: random weight selection, Arachne (a state-of-the-art DNN repair method), and ArachneW, which enables Arachne to control the number of selected weights. RepTran achieved an average repair rate of 74.7%, statistically outperforming random selection and Arachne across all benchmarks. Effect size analysis revealed that RepTran achieved higher repair rates than ArachneW regardless of the number of selected weights. These results suggest that RepTran is effective for enhancing the reliability of AI-enabled software.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 23 of its 40 references that are in the map. First posted on arXiv 13 Jul 2026.
Builds on
23 of 40 references.
References · 23
- 2017Attention Is All You Needcited by 60,361
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
- 2017Axiomatic Attribution for Deep Networkscited by 3,384
- 2022Locating and Editing Factual Associations in GPTcited by 2,691
- 2020Transformer Feed-Forward Layers Are Key-Value Memoriescited by 1,336
- 2022Planning-oriented Autonomous Drivingcited by 1,087
- 2019Are Sixteen Heads Really Better than One?cited by 816
- 2021Knowledge Neurons in Pretrained Transformerscited by 601
- 2021Fast Model Editing at Scalecited by 498
- 2024Language-Specific Neurons: The Key to Multilingual Capabilities in Large Language Modelscited by 126
- 2020Self-Attention Attribution: Interpreting Information Interactions Inside Transformercited by 125
- 2023MedViT: A Robust Vision Transformer for Generalized Medical Image Classificationcited by 89
11 more
- 2024What does the Knowledge Neuron Thesis Have to do with Knowledge?cited by 49
- 2022Causality-based Neural Network Repaircited by 47
- 2021Provable Repair of Deep Neural Networkscited by 42
- 2023Look Before You Leap: An Exploratory Study of Uncertainty Measurement for Large Language Modelscited by 41
- 2023How Does Attention Work in Vision Transformers? A Visual Analytics Attemptcited by 30
- 2019Arachne: Search Based Repair of Deep Neural Networkscited by 26
- 2021Revisiting Neuron Coverage for DNN Testing: A Layer-Wise and Distribution-Aware Criterioncited by 11
- 2023Architecture-Preserving Provable Repair of Deep Neural Networkscited by 11
- 2022NeuRecover: Regression-Controlled Repair of Deep Neural Networks with Training Historycited by 8
- 2025A Comprehensive Study of Deep Learning Model Fixing Approachescited by 2
- 2025An Experience Report on Regression-Free Repair of Deep Neural Network Modelcited by 1
Built on by
Not cited yet.