A Deep Learning and Knowledge Transfer Based Architecture for Social Media User Characteristic Determination

Matthew Riemer, Sophia Krasikov, Harini SrinivasanSocialNLP @ NAACL 2015

Abstract

Determining demographic characteristics of social media users is a critical task for recommendation systems and social polling. However, explicit metadata is often missing, and traditional text-based models struggle with the subtle linguistic cues of traits like age. This paper proposes an end-to-end deep learning architecture that combines unsupervised text representation with a novel "hidden layer sharing" multitask learning approach. By transferring knowledge from auxiliary tasks (gender, ethnicity) to a primary task (age), the model achieves high accuracy even with limited labeled data, outperforming traditional N-gram baselines by over 34%.

The Challenge of User Profiling

For applications like social recommendation systems and social polling, businesses need to understand the demographic characteristics of users (e.g., age, gender, political leanings). However, on public platforms like Twitter, users rarely provide this explicit metadata.

Traditional text analytics rely on rule-based systems or N-gram machine learning models to infer these traits from user posts. While these work for simple tasks, they often fail at capturing the subtle, complex linguistic cues required to predict something like a user's age group. Furthermore, N-gram models require massive amounts of labeled training data to avoid overfitting, which is expensive and time-consuming to generate. The authors tackle the challenge of building a highly accurate, generalizable user profiling system when only a small dataset of manually labeled users is available.

Proposed Methodology

The authors propose an architecture that moves away from sparse N-grams and standard multitask learning, utilizing three key techniques:

1. Unsupervised Text Vectors

The model treats a user's entire historical tweet collection as a single "document" and uses Paragraph Vector to map it to a dense, continuous vector. To improve this representation, the training process is augmented with millions of unlabeled tweets, allowing the model to naturally learn semantic relationships and synonymy without needing labels.

2. Deep Neural Networks

Deep neural networks are trained on top of these unsupervised features, utilizing Hessian Free optimization and greedy layer-wise pretraining to navigate the complex error surfaces associated with small datasets.

3. Hidden Layer Sharing (Multitask Learning)

This is the paper's core architectural novelty. Instead of standard multitask learning, the authors train separate networks for related tasks (e.g., age, gender, ethnicity), discard the output layers, and concatenate their top hidden layers. This combined layer is then used as the input feature space for a final classifier.

The proposed architecture: (A) separate training, (B) concatenation of top hidden layers, and (C) the final integrated architecture.

Crucially, this allows developers to manually allocate the "parameter budget"—for example, dedicating 70% of the network's free parameters to the primary task (age) and 30% to an auxiliary task (gender).

Datasets

  • Labeled Twitter Dataset: A custom, manually annotated dataset of 1,808 Twitter profiles categorized into three age ranges: Generation Y, Generation X, and Older.
  • Unlabeled Twitter Corpora: Datasets of 1 million and 10 million unlabeled tweets were used purely to train and enhance the unsupervised Paragraph Vector language models.

Key Insights and Results

Dense Vectors vs. N-grams

The authors found that N-gram models (Naïve Bayes, Maximum Entropy) suffered massive accuracy drop-offs (up to 35%) between training and test sets. Paragraph Vector models only dropped by 1%, proving that dense representations constrain the learning space to actual semantic knowledge rather than misleading, dataset-specific co-occurrences.

The Failure of Standard Multitask Learning

Standard multitask learning, where one network predicts multiple outputs simultaneously, actually degraded performance in these tests. Attempting to jointly predict age, gender, and ethnicity with a single standard neural network confused the model, likely due to competing error gradients in a low-data regime.

A standard multitask learning architecture where hidden layers are shared directly between tasks, which the authors found to be less effective for this specific problem.

Performance Gains

  • Unlabeled data boost: Adding 10 million unlabeled tweets resulted in a 12.5% relative improvement in baseline accuracy.
  • Deep learning outperforms baselines: A standalone 3-hidden-layer neural network achieved 73.1% accuracy on age prediction.
  • Hidden layer sharing works: By transferring knowledge from gender and ethnicity prediction tasks, age prediction accuracy increased to 75.9%. This represents a 34.6% relative improvement over the best performing N-gram baseline.
  • Metadata integration: When gender and ethnicity were provided as known metadata, the model achieved 90.1% accuracy on age prediction.

Conclusion and Future Work

The authors note that the gains from their knowledge transfer approach are currently bottlenecked by the accuracy of the auxiliary tasks themselves. Future work will involve applying this hidden layer sharing architecture to other domains, such as business-to-business (B2B) lead prediction, and investigating why standard shared-hidden-layer networks struggle to balance learning across multiple complex error functions in low-data regimes.

Summary updated

BibTeX
@inproceedings{riemer2015deep,
  author = {Matthew Riemer and Sophia Krasikov and Harini Srinivasan},
  title = {{A Deep Learning and Knowledge Transfer Based Architecture for Social Media User Characteristic Determination}},
  booktitle = {SocialNLP @ NAACL},
  year = {2015},
  doi = {10.3115/v1/w15-1705},
}
Figure