Residualized Factor Adaptation for Community Social Media Prediction Tasks

Mohammadzaman Zamani, H. Andrew Schwartz, Veronica E. Lynn, Salvatore Giorgi, Niranjan Balasubramanian

TL;DR

Residualized Factor Adaptation (RFA) is a new framework that significantly improves how we predict community-level outcomes—like heart disease rates or housing prices—from social media language. By combining "residualized control" (which prevents noisy language data from drowning out strong demographic signals) with "factor adaptation" (which adjusts the meaning of words based on a community's profile), RFA achieves state-of-the-art results across health, psychology, and economic tasks.

What Problem Does This Paper Address?

Predicting community outcomes from social media is tricky because language is highly contextual. A word like "bike" might signal a culture of outdoor exercise in a young, affluent city like San Francisco, but it might refer to motorbikes in a different demographic setting like Mobile, Alabama.

Existing models often struggle with two main challenges:

  1. Context Neglect: They treat language as universal, ignoring how socio-demographic factors (age, income, education) change word usage.
  2. The "Needle in a Haystack" Problem: Socio-demographic data (like Census stats) are strong, low-dimensional predictors, while linguistic features (n-grams) are noisy and high-dimensional. If you simply concatenate them, the strong demographic signals often get lost in the "sea" of noisy language data.

Methods

The authors propose Residualized Factor Adaptation (RFA), which unifies two distinct approaches:

  • Residualized Control (RC): A model-level integration. First, a model is trained using only socio-demographic "controls" (e.g., median income). Then, a second model is trained to predict the residuals (the errors) of the first model using language features. This ensures the demographics aren't ignored.
  • Factor Adaptation (FA): A data-level integration. Linguistic features are multiplied by demographic factors (using a Hadamard product) to create "adapted" features. This allows the model to learn that a specific word means something different depending on the community's age or education level.

RFA combines these in four steps: 1. Control Model: Build a regression model on demographics alone and calculate the residual error. 2. Factor Selection: Use techniques like PCA or Recursive Feature Elimination to pick the most relevant demographic factors to avoid "feature explosion." 3. Factor Adaptation: Create adapted language features by combining n-grams/topics with the selected factors. 4. Residual Prediction: Train a final model on both original and adapted language features to predict the residual error from Step 1.

Datasets

The study utilizes three primary data sources:

  • Language Data: Two massive Twitter datasets: a 10% random stream (1.64 billion tweets) for health/psychology tasks and a 1% stream (131 million tweets) for economic tasks.
  • Extra-linguistic Data: 11 socioeconomic and demographic variables from the 2010 US Census (e.g., median age, % female, % with bachelor's degrees).
  • Outcome Data:
    • Health: Heart disease mortality and fair/poor health rates (CDC).
  • Psychology: Life satisfaction scores.
  • Economics: Housing price increases and foreclosure rates (Zillow).

Key Insights and Ideas

  • Complementary Strengths: The authors found that RC and FA solve different problems. RC handles the statistical imbalance between feature types, while FA handles the semantic shifts in language. Combining them (RFA) provides a "best of both worlds" scenario.
  • Feature Selection is Vital: Because adaptation multiplies the number of features (n-grams × factors), the model is prone to overfitting. The authors found that SeparatedFS—applying feature selection separately to original language features and adapted features—produced the most stable and accurate results.
  • Diminishing Returns on Factors: Adding more demographic factors generally helps, but only up to a point. Using PCA to compress 11 factors into 5 or 6 captured most of the predictive power, while creating "interaction factors" (multiplying factors by each other) actually hurt performance.

Key Results

RFA outperformed prior state-of-the-art methods in 4 out of 5 community-level tasks.

  • Accuracy Boost: In terms of variance explained ($R^2$), RFA reached an average of 0.482 across all tasks, compared to 0.360 for language-only models and 0.440 for standard residualized control.
  • Economic Prediction: The gains were particularly notable in economic tasks like predicting foreclosure rates, where RFA significantly reduced error compared to using language or demographics alone.
  • Statistical Significance: RFA's improvement over Factor Adaptation (FA) was statistically significant for 4 out of 5 outcomes, proving that the residualized structure is better suited for this type of multi-modal data.

Limitations and Future Work

  • Computational Complexity: The multiplicative nature of factor adaptation leads to a massive feature space, which requires aggressive dimensionality reduction (like RPCA) to remain tractable.
  • Factor Engineering: While the 11 Census variables were effective, the attempt to create "new" factors through pairing was unsuccessful. The authors suggest that more sophisticated automated factor selection is needed.
  • Scope: The current work focuses on community-level predictions. The authors note that investigating whether these same-level adaptation techniques translate effectively to individual-level message tasks is a promising next step.

Summary updated

Abstract

Predictive models over social media language have shown promise in capturing community outcomes, but approaches thus far largely neglect the socio-demographic context (e.g. age, education rates, race) of the community from which the language originates. For example, it may be inaccurate to assume people in Mobile, Alabama, where the population is relatively older, will use words the same way as those from San Francisco, where the median age is younger with a higher rate of college education. In this paper, we present residualized factor adaptation, a novel approach to community prediction tasks which both (a) effectively integrates community attributes, as well as (b) adapts linguistic features to community attributes (factors). We use eleven demographic and socioeconomic attributes, and evaluate our approach over five different community-level predictive tasks, spanning health (heart disease mortality, percent fair/poor health), psychology (life satisfaction), and economics (percent housing price increase, foreclosure rate). Our evaluation shows that residualized factor adaptation significantly improves 4 out of 5 community-level outcome predictions over prior state-of-the-art for incorporating socio-demographic contexts.
BibTeX
@inproceedings{zamani2018residualized,
  author = {Mohammadzaman Zamani and H. Andrew Schwartz and Veronica E. Lynn and Salvatore Giorgi and Niranjan Balasubramanian},
  title = {{Residualized Factor Adaptation for Community Social Media Prediction Tasks}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2018},
  url = {https://openreview.net/forum?id=rJ495zM_bH},
}
Figure