AI-generated Text Detection with a GLTR-based Approach

Lucía Yan Wu, Isabel Segura-Bedmar
2/17/2025
cs.CLcs.AI

No official code found. Best implementation: luciayn/AI-generated-Text-Detection-with-GLTR-based-approach (1 star, MIT, last commit 2024-11-30).

Abstract

The rise of LLMs (Large Language Models) has contributed to the improved performance and development of cutting-edge NLP applications. However, these can also pose risks when used maliciously, such as spreading fake news, harmful content, impersonating individuals, or facilitating school plagiarism, among others. This is because LLMs can generate high-quality texts, which are challenging to differentiate from those written by humans. GLTR, which stands for Giant Language Model Test Room and was developed jointly by the MIT-IBM Watson AI Lab and HarvardNLP, is a visual tool designed to help detect machine-generated texts based on GPT-2, that highlights the words in text depending on the probability that they were machine-generated. One limitation of GLTR is that the results it returns can sometimes be ambiguous and lead to confusion. This study aims to explore various ways to improve GLTR's effectiveness for detecting AI-generated texts within the context of the IberLef-AuTexTification 2023 shared task, in both English and Spanish languages. Experiment results show that our GLTR-based GPT-2 model overcomes the state-of-the-art models on the English dataset with a macro F1-score of 80.19%, except for the first ranking model (80.91%). However, for the Spanish dataset, we obtained a macro F1-score of 66.20%, which differs by 4.57% compared to the top-performing model.

View on arXivView PDF

Code Implementations(1)

MIT
11Python, Jupyter NotebookJul 13, 20241 years agoMIT

Similar Papers

Cite this paper

@article{wu2025aigenerated,
  title  = {AI-generated Text Detection with a GLTR-based Approach},
  author = {Lucía Yan Wu and Isabel Segura-Bedmar},
  year   = {2025},
  eprint = {2502.12064},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2502.12064v1}
}

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

Discussion