Stylometry recognizes human and LLM-generated texts in short samples. Przystalski, K., Argasiński, J. K., Grabska-Gradzińska, I., & Ochab, J. K. 2025. Version Number: 2
Paper doi abstract bibtex The paper explores stylometry as a method to distinguish between texts created by Large Language Models (LLMs) and humans, addressing issues of model attribution, intellectual property, and ethical AI use. Stylometry has been used extensively to characterise the style and attribute authorship of texts. By applying it to LLM-generated texts, we identify their emergent writing patterns. The paper involves creating a benchmark dataset based on Wikipedia, with (a) human-written term summaries, (b) texts generated purely by LLMs (GPT-3.5/4, LLaMa 2/3, Orca, and Falcon), (c) processed through multiple text summarisation methods (T5, BART, Gensim, and Sumy), and (d) rephrasing methods (Dipper, T5). The 10-sentence long texts were classified by tree-based models (decision trees and LightGBM) using human-designed (StyloMetrix) and n-gram-based (our own pipeline) stylometric features that encode lexical, grammatical, syntactic, and punctuation patterns. The cross-validated results reached a performance of up to .87 Matthews correlation coefficient in the multiclass scenario with 7 classes, and accuracy between .79 and 1. in binary classification, with the particular example of Wikipedia and GPT-4 reaching up to .98 accuracy on a balanced dataset. Shapley Additive Explanations pinpointed features characteristic of the encyclopaedic text type, individual overused words, as well as a greater grammatical standardisation of LLMs with respect to human-written texts. These results show – crucially, in the context of the increasingly sophisticated LLMs – that it is possible to distinguish machine- from human-generated texts at least for a well-defined text type.
@misc{przystalski2025Stylometry,
title = {Stylometry recognizes human and {LLM}-generated texts in short samples},
copyright = {Creative Commons Attribution Non Commercial No Derivatives 4.0 International},
url = {https://arxiv.org/abs/2507.00838},
doi = {10.48550/ARXIV.2507.00838},
abstract = {The paper explores stylometry as a method to distinguish between texts created by Large Language Models (LLMs) and humans, addressing issues of model attribution, intellectual property, and ethical AI use. Stylometry has been used extensively to characterise the style and attribute authorship of texts. By applying it to LLM-generated texts, we identify their emergent writing patterns. The paper involves creating a benchmark dataset based on Wikipedia, with (a) human-written term summaries, (b) texts generated purely by LLMs (GPT-3.5/4, LLaMa 2/3, Orca, and Falcon), (c) processed through multiple text summarisation methods (T5, BART, Gensim, and Sumy), and (d) rephrasing methods (Dipper, T5). The 10-sentence long texts were classified by tree-based models (decision trees and LightGBM) using human-designed (StyloMetrix) and n-gram-based (our own pipeline) stylometric features that encode lexical, grammatical, syntactic, and punctuation patterns. The cross-validated results reached a performance of up to .87 Matthews correlation coefficient in the multiclass scenario with 7 classes, and accuracy between .79 and 1. in binary classification, with the particular example of Wikipedia and GPT-4 reaching up to .98 accuracy on a balanced dataset. Shapley Additive Explanations pinpointed features characteristic of the encyclopaedic text type, individual overused words, as well as a greater grammatical standardisation of LLMs with respect to human-written texts. These results show -- crucially, in the context of the increasingly sophisticated LLMs -- that it is possible to distinguish machine- from human-generated texts at least for a well-defined text type.},
urldate = {2025-07-24},
publisher = {arXiv},
author = {Przystalski, Karol and Argasiński, Jan K. and Grabska-Gradzińska, Iwona and Ochab, Jeremi K.},
year = {2025},
note = {Version Number: 2},
keywords = {Artificial Intelligence (cs.AI), Computation and Language (cs.CL), FOS: Computer and information sciences, Machine Learning (cs.LG)},
}
Downloads: 0
{"_id":"R4XpCiEZr53u6Z2dt","bibbaseid":"przystalski-argasiski-grabskagradziska-ochab-stylometryrecognizeshumanandllmgeneratedtextsinshortsamples-2025","author_short":["Przystalski, K.","Argasiński, J. K.","Grabska-Gradzińska, I.","Ochab, J. K."],"bibdata":{"bibtype":"misc","type":"misc","title":"Stylometry recognizes human and LLM-generated texts in short samples","copyright":"Creative Commons Attribution Non Commercial No Derivatives 4.0 International","url":"https://arxiv.org/abs/2507.00838","doi":"10.48550/ARXIV.2507.00838","abstract":"The paper explores stylometry as a method to distinguish between texts created by Large Language Models (LLMs) and humans, addressing issues of model attribution, intellectual property, and ethical AI use. Stylometry has been used extensively to characterise the style and attribute authorship of texts. By applying it to LLM-generated texts, we identify their emergent writing patterns. The paper involves creating a benchmark dataset based on Wikipedia, with (a) human-written term summaries, (b) texts generated purely by LLMs (GPT-3.5/4, LLaMa 2/3, Orca, and Falcon), (c) processed through multiple text summarisation methods (T5, BART, Gensim, and Sumy), and (d) rephrasing methods (Dipper, T5). The 10-sentence long texts were classified by tree-based models (decision trees and LightGBM) using human-designed (StyloMetrix) and n-gram-based (our own pipeline) stylometric features that encode lexical, grammatical, syntactic, and punctuation patterns. The cross-validated results reached a performance of up to .87 Matthews correlation coefficient in the multiclass scenario with 7 classes, and accuracy between .79 and 1. in binary classification, with the particular example of Wikipedia and GPT-4 reaching up to .98 accuracy on a balanced dataset. Shapley Additive Explanations pinpointed features characteristic of the encyclopaedic text type, individual overused words, as well as a greater grammatical standardisation of LLMs with respect to human-written texts. These results show – crucially, in the context of the increasingly sophisticated LLMs – that it is possible to distinguish machine- from human-generated texts at least for a well-defined text type.","urldate":"2025-07-24","publisher":"arXiv","author":[{"propositions":[],"lastnames":["Przystalski"],"firstnames":["Karol"],"suffixes":[]},{"propositions":[],"lastnames":["Argasiński"],"firstnames":["Jan","K."],"suffixes":[]},{"propositions":[],"lastnames":["Grabska-Gradzińska"],"firstnames":["Iwona"],"suffixes":[]},{"propositions":[],"lastnames":["Ochab"],"firstnames":["Jeremi","K."],"suffixes":[]}],"year":"2025","note":"Version Number: 2","keywords":"Artificial Intelligence (cs.AI), Computation and Language (cs.CL), FOS: Computer and information sciences, Machine Learning (cs.LG)","bibtex":"@misc{przystalski2025Stylometry,\n\ttitle = {Stylometry recognizes human and {LLM}-generated texts in short samples},\n\tcopyright = {Creative Commons Attribution Non Commercial No Derivatives 4.0 International},\n\turl = {https://arxiv.org/abs/2507.00838},\n\tdoi = {10.48550/ARXIV.2507.00838},\n\tabstract = {The paper explores stylometry as a method to distinguish between texts created by Large Language Models (LLMs) and humans, addressing issues of model attribution, intellectual property, and ethical AI use. Stylometry has been used extensively to characterise the style and attribute authorship of texts. By applying it to LLM-generated texts, we identify their emergent writing patterns. The paper involves creating a benchmark dataset based on Wikipedia, with (a) human-written term summaries, (b) texts generated purely by LLMs (GPT-3.5/4, LLaMa 2/3, Orca, and Falcon), (c) processed through multiple text summarisation methods (T5, BART, Gensim, and Sumy), and (d) rephrasing methods (Dipper, T5). The 10-sentence long texts were classified by tree-based models (decision trees and LightGBM) using human-designed (StyloMetrix) and n-gram-based (our own pipeline) stylometric features that encode lexical, grammatical, syntactic, and punctuation patterns. The cross-validated results reached a performance of up to .87 Matthews correlation coefficient in the multiclass scenario with 7 classes, and accuracy between .79 and 1. in binary classification, with the particular example of Wikipedia and GPT-4 reaching up to .98 accuracy on a balanced dataset. Shapley Additive Explanations pinpointed features characteristic of the encyclopaedic text type, individual overused words, as well as a greater grammatical standardisation of LLMs with respect to human-written texts. These results show -- crucially, in the context of the increasingly sophisticated LLMs -- that it is possible to distinguish machine- from human-generated texts at least for a well-defined text type.},\n\turldate = {2025-07-24},\n\tpublisher = {arXiv},\n\tauthor = {Przystalski, Karol and Argasiński, Jan K. and Grabska-Gradzińska, Iwona and Ochab, Jeremi K.},\n\tyear = {2025},\n\tnote = {Version Number: 2},\n\tkeywords = {Artificial Intelligence (cs.AI), Computation and Language (cs.CL), FOS: Computer and information sciences, Machine Learning (cs.LG)},\n}\n\n","author_short":["Przystalski, K.","Argasiński, J. K.","Grabska-Gradzińska, I.","Ochab, J. K."],"key":"przystalski2025Stylometry","id":"przystalski2025Stylometry","bibbaseid":"przystalski-argasiski-grabskagradziska-ochab-stylometryrecognizeshumanandllmgeneratedtextsinshortsamples-2025","role":"author","urls":{"Paper":"https://arxiv.org/abs/2507.00838"},"keyword":["Artificial Intelligence (cs.AI)","Computation and Language (cs.CL)","FOS: Computer and information sciences","Machine Learning (cs.LG)"],"metadata":{"authorlinks":{}}},"bibtype":"misc","biburl":"https://api.zotero.org/users/4032374/collections/FGB7WXUI/items?key=AvKzRlfHQGAHrSrOLjp1YHkN&format=bibtex&limit=100","dataSources":["oc6fukhijx9G4TDpT"],"keywords":["artificial intelligence (cs.ai)","computation and language (cs.cl)","fos: computer and information sciences","machine learning (cs.lg)"],"search_terms":["stylometry","recognizes","human","llm","generated","texts","short","samples","przystalski","argasiński","grabska-gradzińska","ochab"],"title":"Stylometry recognizes human and LLM-generated texts in short samples","year":2025}