Papers › Artificial Text Detection via Examining the Topology of Attention Maps

Artificial Text Detection via Examining the Topology of Attention Maps

10 Sep 2021EMNLP 2021 11arXiv:2109.04825archive 2025-07-28

Laida Kushnareva, Daniil Cherniavskii, Vladislav Mikhailov, Ekaterina Artemova, Serguei Barannikov, Alexander Bernstein, Irina Piontkovskaya, Dmitri Piontkovski, Evgeny Burnaev

The impressive capabilities of recent generative models to create texts that are challenging to distinguish from the human-written ones can be misused for generating fake news, product reviews, and even abusive content. Despite the prominent performance of existing methods for artificial text detection, they still lack interpretability and robustness towards unseen models. To this end, we propose three novel types of interpretable topological features for this task based on Topological Data Analysis (TDA) which is currently understudied in the field of NLP. We empirically show that the features derived from the BERT model outperform count- and neural-based baselines up to 10\% on three common datasets, and tend to be the most robust towards unseen GPT-style generation models as opposed to existing methods. The probing analysis of the features reveals their sensitivity to the surface and syntactic properties. The results demonstrate that TDA is a promising line with respect to NLP tasks, specifically the ones that incorporate surface and structural information.

PaperPDFConference PDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2109.04825")

Code

Syntology Ran 9 of 9 code samples harvested from 1 repository linked to this paper; 0 have no recorded run. Of those that ran: 8 ran · honoured contract; 1 ran · our draft was wrong.

By repository: official repository: 9 samples from 1 repository, 9 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

danchern97/tda4atd officialmentioned in papermentioned on GitHub report
upunaprosk/la-tda mentioned on GitHub report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

9 samples harvested; 9 ran; 8 honoured the contract we drafted; 0 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

8ran · honoured contract
1ran · our draft was wrong

Licence: 9 of the 9 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from danchern97/tda4atd. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

barcode_entropy danchern97/tda4atd/ripser_count.py official repository ran · honoured contract no licence file found · pointer only · 6486319f6396dcb2 · report
barcode_mean danchern97/tda4atd/ripser_count.py official repository ran · honoured contract no licence file found · pointer only · 72a17f917c17d964 · report
barcode_number danchern97/tda4atd/ripser_count.py official repository ran · honoured contract no licence file found · pointer only · a85cfca2bcaa9f99 · report
barcode_number_of_barcodes danchern97/tda4atd/ripser_count.py official repository ran · honoured contract fingerprinted no licence file found · pointer only · ece9f4884ba61658 · report
barcode_pop_inf danchern97/tda4atd/ripser_count.py official repository ran · our draft was wrong no licence file found · pointer only · 2a3d5f88ec1f40b6 · report
barcode_std danchern97/tda4atd/ripser_count.py official repository ran · honoured contract no licence file found · pointer only · ec2164194aa5ef9a · report
barcode_sum danchern97/tda4atd/ripser_count.py official repository ran · honoured contract no licence file found · pointer only · 100138690422e928 · report
barcode_time danchern97/tda4atd/ripser_count.py official repository ran · honoured contract no licence file found · pointer only · b1c33d05c2c4d881 · report
count_ripser_features danchern97/tda4atd/ripser_count.py official repository ran · honoured contract no licence file found · pointer only · 45f088ee843c2b8d · report

Tasks

Text DetectionTopological Data Analysis

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

AdamAttentionAttention DropoutBERTDense ConnectionsDropoutLayer NormalizationLinear LayerLinear Warmup With Linear DecayMulti-Head AttentionResidual ConnectionSoftmaxWeight DecayWordPiece

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections