[Paper Review] N-GrAM: New Groningen Author-profiling Model
N-GrAM is a simple yet highly effective author profiling system that uses linear SVM with word unigrams and character 3- to 5-grams (tf-idf weighted) to predict gender and language variety across English, Spanish, Arabic, and Portuguese. It achieved 0.86 averaged accuracy on the PAN 2017 shared task, ranking first overall, despite additional features and complex models harming performance.
We describe our participation in the PAN 2017 shared task on Author Profiling, identifying authors' gender and language variety for English, Spanish, Arabic and Portuguese. We describe both the final, submitted system, and a series of negative results. Our aim was to create a single model for both gender and language, and for all language varieties. Our best-performing system (on cross-validated results) is a linear support vector machine (SVM) with word unigrams and character 3- to 5-grams as features. A set of additional features, including POS tags, additional datasets, geographic entities, and Twitter handles, hurt, rather than improve, performance. Results from cross-validation indicated high performance overall and results on the test set confirmed them, at 0.86 averaged accuracy, with performance on sub-tasks ranging from 0.68 to 0.98.
Motivation & Objective
- To develop a unified model for predicting both gender and language variety in multilingual social media text.
- To evaluate whether combining gender and language variety prediction into a single joint model improves performance.
- To investigate whether advanced features (e.g., POS tags, geographic entities, Twitter handles) enhance performance over basic n-gram features.
- To determine whether feature engineering or hyperparameter tuning yields greater gains in author profiling tasks.
Proposed method
- Employed a linear SVM classifier with tf-idf weighting using sublinear term frequency scaling: $1 + \log(tf)$.
- Used word unigrams and character 3- to 5-grams as primary features, with min_df=2 to reduce sparsity.
- Conducted a comprehensive grid search over hyperparameters including C, lowercase normalization, max_df, and use_idf.
- Evaluated both joint and separate modeling of gender and language variety, favoring the joint approach.
- Tested additional features such as POS tags, geographic entities, and Twitter handles, but found them detrimental.
- Performed 5-fold cross-validation and final evaluation on the PAN 2017 test set, with results aggregated per language and task.
Experimental results
Research questions
- RQ1Can a single, unified model effectively predict both gender and language variety in multilingual social media text?
- RQ2Does incorporating domain-specific features (e.g., Twitter handles, POS tags, geographic entities) improve author profiling performance?
- RQ3To what extent do basic n-gram features outperform more complex, hand-crafted features in author profiling tasks?
- RQ4Why do certain features—like platform-specific terms or place names—perform well in this dataset but may not generalize?
- RQ5Is hyperparameter tuning more effective than feature engineering for improving author profiling systems in this setting?
Key findings
- The final N-GrAM system achieved 0.86 averaged accuracy across all tasks and languages, ranking first in the PAN 2017 shared task.
- The best-performing system used only word unigrams and character 3- to 5-grams with tf-idf weighting and linear SVM, without additional features.
- Adding features such as POS tags, geographic entities, and Twitter handles consistently hurt performance, reducing accuracy across all languages.
- The model achieved 0.981 accuracy for Portuguese variety and 0.962 for Spanish variety, indicating strong performance on high-variance language tasks.
- For gender prediction, the system scored 0.823 on English and 0.801 on Arabic, with overall accuracy of 0.8253 on the test set.
- The joint prediction accuracy was 0.8361, significantly outperforming the LDR baseline, which scored 0.6738 on the joint task.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.