Abstract
Author Profiling (AP) aims to determine demographic characteristics such as gender or language variety from written text. This paper introduces User Specific Representation (USR), a novel approach that shifts from coarse group-level analysis to fine-grained, person-to-person relationships. By representing a user through their similarity to every other individual in a training dataset, USR captures subtle stylistic nuances often missed by traditional methods. Evaluated on the PAN 2017 social media corpora, USR achieved state-of-the-art results across English, Spanish, Portuguese, and Arabic, demonstrating significant improvements over standard baselines and second-order attribute models.
Introduction
Determining demographic traits from writing—Author Profiling—is a critical task for forensic linguistics and targeted marketing. However, social media text presents significant challenges due to its noisy nature, characterized by slang, grammatical errors, and informal structures. Traditional Natural Language Processing (NLP) tools often struggle with this informality.
Previous high-performing strategies utilized "Second Order Attributes" (SOA), which group users into broad categories (e.g., "all males") to identify patterns. This paper argues that such broad groupings are too coarse, failing to capture the diverse ways individuals within those groups express themselves. To address this, the authors propose a more granular approach based on individual-to-individual similarity.
Methodology: User Specific Representation (USR)
The core innovation of this work is User Specific Representation (USR). Instead of representing a document by its constituent words (Bag-of-Words) or its relationship to broad categories (SOA), USR represents a user through their relationship with every other individual user in the training set.
The methodology consists of two primary stages:
- Term Representation: Each word is transformed into a vector where each dimension corresponds to a specific user in the training database. The value in each dimension reflects the relevance of that word to that specific person, calculated using a variation of TF-IDF.
- User Mapping: To profile a new user, the system aggregates the vectors of all words they have used. This process maps the user into a high-dimensional "social space" where their coordinates are defined by vocabulary overlap with known individuals.
The resulting enriched representations are then processed by a standard linear classifier (LibLINEAR) for final prediction.
Experimental Setup
The study utilized the PAN 2017 corpora, which contains Twitter posts in four languages: English, Spanish, Portuguese, and Arabic. The datasets include labels for gender (male/female) and language variety (e.g., regional dialects of Spanish or Arabic).
Key Results
The USR method consistently outperformed traditional baselines, including Bag-of-Terms (BoT) and modern word embeddings like Word2Vec (W2V).
Language Variety Prediction
USR achieved high accuracy in identifying language varieties, notably reaching 98.7% for Portuguese and 94.2% for Spanish in training evaluations. In English, it outperformed the standard BoT approach by nearly 12%.
Gender Prediction
Gender prediction is recognized as a more difficult task in author profiling. Nevertheless, USR maintained its lead, achieving 83.8% accuracy in Portuguese and 82.3% in English.
Statistical validation using the Wilcoxon Signed Rank test confirmed with 98% confidence that USR provides a genuine performance boost over previous methodologies.
Discussion and Insights
The success of USR highlights several key insights:
- Granularity Matters: Individual-to-individual similarity is more predictive than group-to-group similarity. Users with shared interests (e.g., technology or family) will exhibit similar linguistic patterns regardless of broad demographic labels.
- Distributional Hypothesis: By analyzing how words are distributed across thousands of specific authors, the model captures latent semantic relationships that simple word counts overlook.
- Robustness to Noise: The model's reliance on broad distributional patterns across many users makes it resilient to individual typos or idiosyncratic slang.
Conclusion and Future Work
While USR offers superior performance, it faces challenges regarding computational cost, as the feature space dimensionality grows linearly with the training set size. Future research may explore hybrid approaches combining USR with SOA to leverage both fine-grained details and broad categorical patterns. Additionally, incorporating complex stylistic features or structural information could further refine user profiles.
Summary updated