LLM vs Small Model? Large Language Model Based Text Augmentation Enhanced Personality Detection Model

Linmei Hu, Hongyu He, Duokang Wang, Ziwang Zhao, Yingxia Shao, Liqiang Nie

Abstract

Personality detection from social media posts is a challenging task due to data scarcity and the complexity of psychological traits. While Large Language Models (LLMs) excel in general NLP tasks, they often underperform in direct personality classification. This paper introduces the Text Augmentation Enhanced (TAE) model, which leverages LLMs to generate multi-faceted linguistic analyses and label explanations to "teach" a smaller, specialized BERT-based model. By incorporating semantic, sentiment, and linguistic augmentations alongside soft labels derived from trait descriptions, the TAE model achieves state-of-the-art performance on benchmark datasets like Kaggle and Pandora, outperforming both standalone LLMs and previous specialized models.

Introduction

Identifying personality traits from digital footprints is crucial for personalized services and psychological research. However, the field faces significant hurdles: the scarcity of labeled data (often requiring extensive self-report questionnaires) and the oversimplification of personality as binary labels. Traditional models often fail to capture the nuanced "how" of communication, focusing instead on the "what." While LLMs possess vast knowledge, their direct application to personality detection is often suboptimal, frequently missing subtle linguistic and emotional cues.

Methodology

The proposed TAE model adopts a "teacher-student" framework to distill high-level LLM knowledge into a smaller, more efficient encoder. The process consists of three main stages:

  1. Knowledgeable Post Augmentation: Instead of direct classification, an LLM analyzes posts through three specific lenses: Semantic (content meaning), Sentiment (emotional tone), and Linguistic (style and structure).
  2. Contrastive Learning: A BERT-based encoder is trained using contrastive loss to align original social media posts with their corresponding LLM-generated augmentations in a shared mathematical space. This forces the small model to capture the psycho-linguistic features identified by the LLM.
  3. Label Information Enrichment: To move beyond simple binary labels, the researchers used the LLM to generate detailed descriptions of personality traits. They then calculated the similarity between a user’s posts and these descriptions to create "soft labels," helping the model handle users who do not lean strongly toward one extreme of a trait.
The architecture of the TAE model, illustrating the distillation of LLM-generated semantic, sentiment, and linguistic knowledge into a smaller classifier via contrastive learning.

Experiments and Results

The model was evaluated on two gold-standard benchmarks: the Kaggle (PersonalityCafe) dataset and the Pandora (Reddit) dataset. Both utilize the Myers-Briggs Type Indicator (MBTI) taxonomy.

TAE consistently outperformed all baselines, including specialized graph-based models and standalone LLMs. On the Kaggle dataset, TAE achieved a 72.07% Macro-F1 score, a significant improvement over the previous state-of-the-art (71.35%) and direct classification by GPT-3.5 (66.89%).

Ablation studies highlighted the importance of each augmentation component. Notably, the removal of linguistic augmentation resulted in the largest performance drop among the three augmentation types, confirming that writing style is a critical indicator of personality.

Ablation study results on the Kaggle dataset, demonstrating that the removal of linguistic features causes the most significant drop in average performance.

Discussion and Conclusion

The TAE model demonstrates that LLMs are most effective in personality detection when used as analytical feature extractors rather than final judges. By distilling high-level psychological insights into smaller models, researchers can achieve superior accuracy and computational efficiency. The study also highlights that how we write is often more telling than what we write about. Future work may explore applying this framework to the "Big Five" personality traits and integrating structured knowledge graphs to further refine the model's understanding of human psychology.

Summary updated

BibTeX
@inproceedings{hu2024llm,
  author = {Linmei Hu and Hongyu He and Duokang Wang and Ziwang Zhao and Yingxia Shao and Liqiang Nie},
  title = {{LLM vs Small Model? Large Language Model Based Text Augmentation Enhanced Personality Detection Model}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2024},
  doi = {10.1609/aaai.v38i16.29782},
}
Figure