Secret Keepers: The Impact of LLMs on Linguistic Markers of Personal Traits

Zhivar Sourati, Meltem Ozcan, Colin McDaniel, Alireza Ziabari, Nuan Wen, Ala Tak, Fred Morstatter, Morteza DehghaniarXiv 2024

TL;DR

As Large Language Models (LLMs) become our ubiquitous co-authors, a critical privacy and psychological question arises: do they mask the linguistic "fingerprints" that reveal our personality, age, and gender? This study finds that while LLMs slightly dampen these signals, they are surprisingly poor "secret keepers"—most personal traits remain detectable even after an AI rewrite, though the models do inject their own stylistic biases.

What Problem Does This Paper Address?

For decades, psycholinguistics research has shown that our word choices are windows into our souls. Patterns in how we use pronouns, emotion words, or complex sentence structures correlate strongly with traits like neuroticism, political leanings, and even age.

However, we are entering an era of "AI-in-the-loop" writing. When you use GPT-4 or Gemini to "polish" an email or "rephrase" an essay, does the resulting text still reflect you, or does it reflect the model? If LLMs "wash away" these linguistic markers, it could protect user privacy—but it could also invalidate decades of social science research that relies on text analysis to understand human behavior. The authors set out to quantify exactly how much of our "linguistic identity" survives the LLM meat-grinder.

Methods

The researchers employed a two-pronged analytical approach across three major LLMs (GPT-3.5, Llama 2 70B, and Gemini Pro):

  1. Bottom-up (Data-driven): They trained a variety of classifiers—ranging from traditional Support Vector Machines (SVMs) to modern Transformers like Longformer—to predict author traits from original texts. They then tested these same classifiers on versions of the text rewritten by LLMs to see if predictive power ($F_1$ scores) dropped.
  2. Top-down (Theory-driven): They used established psycholinguistic dictionaries (like LIWC) to see if specific, theoretically-grounded correlations (e.g., the link between extraversion and social words) were preserved or erased in the AI-generated versions.

They tested two types of "neutral" prompts:

  • Syntax Grammar (SG): A conservative prompt asking for minimal revisions.
  • Rephrase (R): A more transformative prompt allowing the LLM free reign to change the style.

Datasets

The study utilized four diverse datasets covering six traits:

  • U.S. Congressional Records: Used for predicting gender, age, and political affiliation.
  • Extended Essays Dataset: A classic psycholinguistic dataset for the Big Five personality traits.
  • Empathetic Conversations: Essays written in response to news, used to measure dispositional empathy.
  • YourMorals: Facebook posts paired with scores from the Moral Foundations Questionnaire.

Key Insights and Ideas

  • The Resilience of Identity: The most striking finding is that linguistic markers are incredibly stubborn. Even when an LLM rephrases a text, the semantic core often remains intact enough for classifiers to identify the author's traits.
  • LLMs have "Personalities" too: LLMs aren't neutral filters; they act as stylistic "norming" machines. The study found that LLM-rewritten text consistently shifted toward higher perceived levels of morality and age. Essentially, the AI makes everyone sound a bit more like a polite, older adult.
  • Gemini is the "Eraser": Among the models tested, Gemini was generally the most aggressive at altering demographic markers, particularly for gender and age, compared to GPT-3.5 and Llama 2.
  • Lexical Erosion: While high-level machine learning models stayed accurate, specific "fine-grained" markers were often lost. For example, the correlation between "Openness" and the use of complex "BigWords" was frequently washed away by the models' tendency to simplify language.
Figure 1: Semantic similarity between original and LLM-generated texts (with Rephrase and Syntax Grammar prompts) across different data sources and utilized LLMs.

Key Results

  • Minor Performance Drop: On average, the absolute $F_1$ score of classifiers dropped by only 6% when moving from human to AI-edited text.
  • Infrequent Failures: As shown in Figure 2, for most traits (especially personality and morality), the majority of classifiers maintained "unchanged" predictive power.
  • Prompt Impact: The "Syntax Grammar" prompt was significantly more preservative than the "Rephrase" prompt. For age group prediction, the ratio of models with unchanged performance dropped from 75% (SG) to 56% (R).
  • Directional Bias: LLM involvement caused classifiers to incorrectly predict authors as Democrats more often than Republicans ($d=1.35$) and shifted gender predictions from Female to Male ($d=0.37$) for Gemini and GPT-3.5.
The ratio of models maintaining predictive power is high for psychological traits but lower for demographics like gender and age.

Limitations and Future Work

The authors acknowledge several constraints:

  • Neutral Prompts Only: The study didn't look at "adversarial" prompting (e.g., "Rewrite this to hide my age").
  • Western Bias: The datasets are primarily English-speaking and Western-centric; linguistic markers may behave differently in other cultures or languages.
  • Data Volume: The study found that LLM impact is more pronounced when less text is available (e.g., single essays vs. concatenated posts), suggesting that "secret keeping" might be easier in short-form content.

Future research could explore how different cultural backgrounds interact with LLM editing and whether specific fine-tuning (like RLHF) is responsible for the "moralizing" bias observed in the outputs.

Summary updated

BibTeX
@misc{sourati2024secret,
  author = {Zhivar Sourati and Meltem Ozcan and Colin McDaniel and Alireza Ziabari and Nuan Wen and Ala Tak and Fred Morstatter and Morteza Dehghani},
  title = {{Secret Keepers: The Impact of LLMs on Linguistic Markers of Personal Traits}},
  year = {2024},
  eprint = {2404.00267},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2404.00267},
}
Figure