AEyeDE: An Attention-Based Attribution Framework for AI-Generated Text Detection
Organizations: Department of Computer Science, University of Luxembourg
Abstract
Detecting AI-generated text is becoming increasingly challenging as modern language models approach human-level fluency and can evade detectors that rely on surface statistics or likelihood-based signals. We propose AEyeDE, an attribution-driven approach to human-AI authorship detection that leverages model attention as a discriminative signal. Specifically, we extract attention-based attribution matrices for both human- and AI-generated text using a proxy Transformer model with white-box access and train a lightweight Convolutional Neural Network to learn representations from these attribution maps. Across encoder-decoder translation settings, our method consistently outperforms a text-only baseline. In decoder-only settings, it performs strongly in generator-specific detection, remains competitive on standard benchmarks, and shows robustness under cross-dataset transfer and alternative-spelling perturbations. We further show that attention maps exhibit recurring local structures whose relative frequencies differ consistently between human- and AI-generated text across datasets and proxy models. These findings suggest that attention-based attribution maps provide a complementary and interpretable signal for AI-generated text detection. We will make the code publicly available to support future research.
Figures & tables
| ar-en | de-en | fr-en | |||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Config | Acc | Prec | Rec | F1 | AUC | Acc | Prec | Rec | F1 | AUC | Acc | Prec | Rec | F1 | AUC |
| AEyeDE(CNN) | 68.9 | 63.0 | 91.4 | 74.6 | 77.7 | 79.0 | 72.6 | 93.0 | 81.5 | 87.3 | 83.6 | 78.0 | 93.6 | 85.1 | 91.0 |
| AEyeDE(CNN+text) | 71.9 | 65.7 | 91.9 | 76.6 | 81.5 | 81.1 | 74.9 | 93.6 | 83.2 | 89.2 | 85.4 | 80.3 | 93.9 | 86.5 | 92.7 |
| text (baseline) | 61.9 | 57.3 | 93.4 | 71.0 | 71.5 | 69.5 | 63.7 | 90.5 | 74.8 | 77.5 | 72.4 | 66.2 | 91.4 | 76.8 | 81.4 |
| Cohere | GPT-neo | |||||||||||
| Acc | Prec | Rec | F1 | AUC | TPR-FPR | Acc | Prec | Rec | F1 | AUC | TPR-FPR | |
| AEyeDE | 97.23 | 97.48 | 98.43 | 97.95 | 99.51 | 95.22 | 97.22 | 97.20 | 98.73 | 97.96 | 99.71 | 95.89 |
| Binoculars | 67.94 | 67.91 | 99.48 | 80.72 | 78.10 | 34.83 | 67.61 | 67.63 | 99.78 | 80.62 | 25.84 | 0.45 |
| Curvature | 83.27 | 86.29 | 89.39 | 87.81 | 90.86 | 47.01 | 78.91 | 98.22 | 70.03 | 81.76 | 79.70 | 65.47 |
| GLTR | 67.39 | 67.42 | 99.93 | 80.52 | 76.68 | 10.99 | 67.96 | 67.92 | 99.55 | 80.75 | 71.54 | 44.99 |
| LogRank | 67.39 | 67.42 | 99.93 | 80.52 | 75.49 | 10.24 | 69.58 | 69.31 | 98.58 | 81.39 | 73.95 | 36.70 |
| Cohere | GPT-neo | |||||||||||
| Acc | Prec | Rec | F1 | AUC | TPR-FPR | Acc | Prec | Rec | F1 | AUC | TPR-FPR | |
| AEyeDE | 72.38 | 90.98 | 65.55 | 76.19 | 80.67 | 58.67 | 72.25 | 96.57 | 61.06 | 74.82 | 78.86 | 58.97 |
| Binoculars | 67.29 | 67.57 | 99.03 | 80.33 | 74.21 | 49.33 | 67.46 | 67.51 | 99.85 | 80.55 | 74.43 | 43.57 |
| Curvature | 57.41 | 79.03 | 50.15 | 61.36 | 64.00 | 20.18 | 70.13 | 93.37 | 60.01 | 73.07 | 77.82 | 52.84 |
| GLTR | 67.44 | 67.44 | 100.00 | 80.55 | 76.32 | 26.53 | 67.51 | 68.11 | 97.53 | 80.21 | 73.42 | 15.10 |
| LogRank | 67.44 | 67.44 | 100.00 | 80.55 | 75.14 | 24.51 | 68.06 | 69.44 | 94.10 | 79.91 | 73.20 | 16.52 |
| GPT-neo | ||||||
|---|---|---|---|---|---|---|
| Acc | Prec | Rec | F1 | AUC | TPR-FPR | |
| AEyeDE | 96.85 | 95.68 | 98.27 | 96.96 | 99.51 | 93.50 |
| Curvature | 98.40 | 99.83 | 97.04 | 98.42 | 99.22 | 97.45 |
| GLTR | 98.25 | 98.89 | 97.60 | 98.24 | 99.17 | 97.60 |
| LogRank | 97.95 | 99.69 | 96.20 | 97.91 | 99.03 | 97.50 |
| Rank | 83.40 | 81.63 | 86.20 | 83.85 | 91.22 | 36.60 |
| Method | Mistral | |||||
|---|---|---|---|---|---|---|
| Acc | Prec | Rec | F1 | AUC | TPR | |
| AEyeDE | 66.36 | 62.16 | 83.64 | 71.32 | 74.43 | 14.55 |
| Binoculars | 51.36 | 50.71 | 96.36 | 66.45 | 63.16 | 6.36 |
| Curvature | 49.44 | 49.74 | 98.73 | 66.16 | 50.47 | 9.76 |
| GLTR | 51.40 | 50.74 | 98.88 | 67.07 | 74.38 | 15.46 |
| LogRank | 51.27 | 50.68 | 98.47 | 66.92 | 74.25 | 13.01 |
| Dataset | Setting | Proxy-model | cid | Human | Machine | 95% CI | ||
|---|---|---|---|---|---|---|---|---|
| HC3 | individual | GPT-neo 2.7B | 24 | 9.7 | 20.7 | +11.0 | [ 9.3, 12.7] | |
| RAID | unified | Cohere Cmd-R 7B | 13 | 80.0 | 69.5 | -10.5 | [-12.9, -8.2] | |
| RAID | individual | Mistral 7B | 23 | 63.5 | 54.8 | -8.7 | [-11.1, -6.2] | |
| RAID | individual | GPT-neo 2.7B | 4 | 87.6 | 81.1 | -6.5 | [ -9.0, -4.1] | |
| RAID | individual | Llama 3.1 8B | 12 | 7.5 | 3.1 | -4.4 | [ -4.8, -3.9] | |
| RAID | unified | GPT-neo 2.7B | 37 | 11.6 | 8.5 | -3.0 | [ -4.1, -2.0] |
AI-Generated Text Detection
AI-generated text detection develops methods to distinguish human-written, machine-generated, and AI-edited text.
See all 167 papers