MergeGuard: Efficient Thwarting of Trojan Attacks in Machine Learning Models

Soheil Zibakhsh Shabgahi, Yaman Jandali, Farinaz Koushanfar
5/6/2025
cs.CRcs.AI

No confident code implementation found for this paper.

Abstract

This paper proposes MergeGuard, a novel methodology for mitigation of AI Trojan attacks. Trojan attacks on AI models cause inputs embedded with triggers to be misclassified to an adversary's target class, posing a significant threat to model usability trained by an untrusted third party. The core of MergeGuard is a new post-training methodology for linearizing and merging fully connected layers which we show simultaneously improves model generalizability and performance. Our Proof of Concept evaluation on Transformer models demonstrates that MergeGuard maintains model accuracy while decreasing trojan attack success rate, outperforming commonly used (post-training) Trojan mitigation by fine-tuning methodologies.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{shabgahi2025mergeguard,
  title  = {MergeGuard: Efficient Thwarting of Trojan Attacks in Machine Learning Models},
  author = {Soheil Zibakhsh Shabgahi and Yaman Jandali and Farinaz Koushanfar},
  year   = {2025},
  eprint = {2505.04015},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2505.04015v1}
}

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/2505.04015.svg)](https://codeofpaper.com/paper/2505.04015)

Discussion