Explainability-Based Token Replacement on LLM-Generated Text

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Mohammadi, Hadi, Giachanou, Anastasia, Oberski, Daniel L., Bagheri, Ayoub
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866918270298226688
author Mohammadi, Hadi
Giachanou, Anastasia
Oberski, Daniel L.
Bagheri, Ayoub
author_facet Mohammadi, Hadi
Giachanou, Anastasia
Oberski, Daniel L.
Bagheri, Ayoub
contents Generative models, especially large language models (LLMs), have shown remarkable progress in producing text that appears human-like. However, they often exhibit patterns that make their output easier to detect than text written by humans. In this paper, we investigate how explainable AI (XAI) methods can be used to reduce the detectability of AI-generated text (AIGT) while also introducing a robust ensemble-based detection approach. We begin by training an ensemble classifier to distinguish AIGT from human-written text, then apply SHAP and LIME to identify tokens that most strongly influence its predictions. We propose four explainability-based token replacement strategies to modify these influential tokens. Our findings show that these token replacement approaches can significantly diminish a single classifier's ability to detect AIGT. However, our ensemble classifier maintains strong performance across multiple languages and domains, showing that a multi-model approach can mitigate the impact of token-level manipulations. These results show that XAI methods can make AIGT harder to detect by focusing on the most influential tokens. At the same time, they highlight the need for robust, ensemble-based detection strategies that can adapt to evolving approaches for hiding AIGT.
format Preprint
id arxiv_https___arxiv_org_abs_2506_04050
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Explainability-Based Token Replacement on LLM-Generated Text
Mohammadi, Hadi
Giachanou, Anastasia
Oberski, Daniel L.
Bagheri, Ayoub
Computation and Language
Artificial Intelligence
Generative models, especially large language models (LLMs), have shown remarkable progress in producing text that appears human-like. However, they often exhibit patterns that make their output easier to detect than text written by humans. In this paper, we investigate how explainable AI (XAI) methods can be used to reduce the detectability of AI-generated text (AIGT) while also introducing a robust ensemble-based detection approach. We begin by training an ensemble classifier to distinguish AIGT from human-written text, then apply SHAP and LIME to identify tokens that most strongly influence its predictions. We propose four explainability-based token replacement strategies to modify these influential tokens. Our findings show that these token replacement approaches can significantly diminish a single classifier's ability to detect AIGT. However, our ensemble classifier maintains strong performance across multiple languages and domains, showing that a multi-model approach can mitigate the impact of token-level manipulations. These results show that XAI methods can make AIGT harder to detect by focusing on the most influential tokens. At the same time, they highlight the need for robust, ensemble-based detection strategies that can adapt to evolving approaches for hiding AIGT.
title Explainability-Based Token Replacement on LLM-Generated Text
topic Computation and Language
Artificial Intelligence
url https://arxiv.org/abs/2506.04050