Skip to content

RepTran: Search-Based Repair of Transformer Models

Jul 2026 · arXiv.org · Vol abs/2607.11193 · 0 citations · 40 references
Computer Science

TL;DR

RepTran, a search-based repair method for Transformer models, targets their feed-forward networks (FFNs), which play a central role in the architecture and suggests that RepTran is effective for enhancing the reliability of AI-enabled software.

Abstract

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.

View source

Similar papers

#artificial intelligence Preprint Sep 2026

Component-Aware Feedback for Self-Evolving Programs

LLM-guided evolutionary search can discover complex programs, but existing methods mostly only save candidate programs and fitness scores while discarding which component edits produced which fitness metric changes. Existing methods force the mutator LLM to infer the effect of prior edits from cluttered histories, maki...

Ethan Lin, Jinming Nian, Yi Fang · 1 citation
#machine learning Preprint Oct 2026

Beyond the Leaderboard: Multi-Dimensional Evaluation of Dense and Mixture-of-Experts Models for Automated Program Repair

Automated Program Repair (APR) with language models is usually evaluated by whether a generated patch passes the test suite, which can hide differences in maintainability, security, and computational cost. We propose a Weighted Quality Index (QI), inspired by the ISO/IEC 25010 software quality model, that combines func...

Anvit Shah, B. UmamaheswaraSharma · 0 citations
#artificial intelligence Preprint Oct 2026

Meta-Reflective Evolution Effectively Improves Production AI Systems

Large Language Model (LLM)-guided evolutionary optimization has successfully improved prompts, programs, and even entire AI systems. Most optimization methods select a candidate from the search frontier, then mutate it in one LLM pass based only on its failures. This focus on the frontier can stall on production AI sys...

Seunghyun Yoo, Chang Zeng, Aditi Somayajula et al. · 0 citations
#machine learning Preprint Sep 2026

RAZOR: Pruning Replaceable Experts in LLMs

RAZOR, a training-free pruning method based on consensus residuals, the deviations of expert outputs from their original weighted mixture, gives the exact output change for a single deletion under survivor renormalization and router refill.

Ming-Yang Song, Mao Zheng · 0 citations
Open access Oct 2026

StateTree: A Tree-Based Modeling Approach for Fault Detection in Recurrent Neural Networks

Recurrent Neural Networks (RNNs) have become a core component of modern intelligent software due to their strong ability to model temporal dependencies. As RNNs are increasingly deployed in safety-critical domains, ensuring their reliability is crucial. However, most existing testing techniques are designed for feedfor...

Xin-Yu Gao, Shuo-Xiao Zhang, Ming-Hui Wei et al. · 0 citations
Open access Oct 2026

ProgSCA: Software Composition Analysis via Program-Level Modeling

Software composition analysis (SCA) aims to identify third-party dependencies in programs, which plays a critical role in ensuring software supply chain security. Existing approaches largely follow a rule-based paradigm: they first compute function-level similarities, then aggregate these results using handcrafted heur...

Pei-Hong Li, Cheng Li, Yu-Chen Gu et al. · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.