Abstract
In the last few years, pre-trained neural architectures have provided impressive improvements across several NLP tasks. Still, generative language models are available mainly for English. We develop GePpeTto, the first generative language model for Italian, built using the GPT-2 architecture. We provide a thorough analysis of GePpeTto's quality by means of both an automatic and a human-based evaluation. The automatic assessment consists in (i) calculating perplexity across different genres and (ii) a profiling analysis over GePpeTto's writing characteristics. We find that GePpeTto's production is a sort of bonsai version of human production, with shorter but yet complex sentences. Human evaluation is performed over a sentence completion task, where GePpeTto's output is judged as natural more often than not, and much closer to the original human texts than to a simpler language model which we take as baseline.
Introduction
Until recently, the landscape of Natural Language Processing (NLP) was heavily dominated by English-centric models. While "masked" language models like BERT had been adapted for many languages to improve text understanding, generative models like GPT-2—capable of creating coherent text—were lagging behind for Italian. GePpeTto represents the first generative language model specifically designed for the Italian language. Beyond its creation, the research addresses the fundamental challenge of evaluation: moving beyond simple mathematical metrics to analyze the linguistic "DNA" of AI-generated text and how native speakers perceive its naturalness.
Methodology and Data
GePpeTto is built upon the GPT-2 small architecture, featuring 117 million parameters and 12 layers. The model was trained on a massive 13GB collection of Italian text, combining the standardized, encyclopedic prose of Italian Wikipedia (2.8GB) with the broader, more varied ItWac Corpus (11GB), which contains web-crawled text spanning formal and informal registers.
To evaluate the model's versatility, researchers tested its "zero-shot" performance on domains it had not seen during training, including legal documents (EUR-Lex), news articles (la Repubblica, Il Giornale), and social media forum comments. A key technical innovation included "style priming," where texts were prefixed with tokens like "Wikipedia" or "Links" during training, allowing the model to pivot its tone based on the desired output style.
The "Bonsai" Effect: Linguistic Profiling
One of the most striking findings from the linguistic analysis is what the authors term the "bonsai" effect. By using the Profiling-UD tool to compare GePpeTto's output against human-written text, researchers found that the model produces sentences that are significantly shorter on average—approximately 20 tokens per sentence compared to 32 for humans.
Despite this reduction in length, the internal syntactic complexity remains remarkably high. When normalized for length, the "depth" of GePpeTto's grammar and its use of various Parts-of-Speech (POS) closely mirror human patterns, suggesting it creates condensed but structurally sophisticated versions of human language.
Human Evaluation and Naturalness
To measure how "human" the model feels, the researchers conducted a human-based evaluation using a sentence completion task. Participants were asked to rank the naturalness of completions from GePpeTto, a human (Gold), and a simple Markov-chain baseline.
The results were compelling: in isolation, 54% of GePpeTto’s outputs were identified by humans as "natural" (not AI), a figure much closer to the 68% achieved by actual human text than the 26% of the Markov baseline. Furthermore, GePpeTto yielded the highest percentage of "can't tell" responses, indicating that even when humans suspect AI involvement, the output is polished enough to create genuine uncertainty. The model's performance was particularly strong when given longer prompts (10 tokens), where its completions were judged as natural nearly as often as human ones (62% vs 63%).
Conclusion and Future Work
While GePpeTto is a "small" model by modern standards, it successfully captures the essence of the Italian language. Its primary weakness lies in informal, "noisy" environments like social media, where its perplexity scores rise significantly (84.6 vs 26.1 on Wikipedia). Future work will focus on scaling the architecture to larger GPT-2 variants and incorporating more diverse, informal datasets to improve the model's robustness across all registers of the Italian language.
Summary updated