Behavioral Homophily in Social Media via Inverse Reinforcement Learning: A Reddit Case Study

Lanqin Yuan, Philipp J. Schneider, Marian-Andrei Rizoiu · DOI

TL;DR

This paper introduces a novel framework that uses Deep Inverse Reinforcement Learning (IRL) to quantify behavioral homophily—how similarly users interact on social media, regardless of what they are discussing. By analyzing 5.9 million interactions on Reddit, the authors reveal hidden user personas (like chronic "Disagreers") and show that communities with completely different topics (like soccer and video games) can exhibit nearly identical behavioral patterns.

What Problem Does This Paper Address?

Homophily—the tendency for individuals to associate with similar others—is a foundational concept in social network analysis, often explaining the rise of online echo chambers and polarization. Traditionally, researchers measure homophily using two lenses:

  1. Network-based (Adjacency): Analyzing explicit follower/friend graphs (common on X/Twitter or Facebook).
  2. Content-based (Topical): Analyzing shared hashtags or linguistic similarity.

However, these methods fail on pseudonymous, forum-style platforms like Reddit. Reddit lacks explicit follower networks and is already organized into topic-specific communities (subreddits). Knowing that two users post in a political subreddit tells us they share a topical interest, but it tells us nothing about how they engage. Are they constructive debaters, passive observers, or combative trolls?

To capture these nuances, this paper addresses the challenge of modeling and quantifying homophily based purely on interactive behavior within complex, hierarchical conversation trees.

Figure 1: Hierarchical structure of Reddit. Reddit is divided into numerous subreddits, with each subreddit consisting of posts. Each post contains its own comment section with each comment having its own comment tree.

Methods

The authors model a user's online journey as a Markov Decision Process (MDP) and use Maximum Entropy Deep Inverse Reinforcement Learning (Deep IRL) to infer the underlying "reward function" driving a user's actions.

The framework consists of several key components:

  • State Space (12 States): Captures the context of an interaction, such as creating an initial thread, posting a root comment, or receiving a reply. Crucially, replies are split by stance: Agreement (+), Neutral (~), or Disagreement (-).
  • Action Space (6 Actions): The choices available to a user, including waiting for a reply, creating a thread, or posting a reply (again, split by stance).
  • Stance Classification: To label comments as agree/neutral/disagree, the authors fine-tuned a DeBERTaV3 model on the DEBAGREEMENT dataset.
  • Behavioral Homophily Metric: Once individual user policies ($\pi_u$) are inferred via IRL, the behavioral similarity between two users is calculated using a novel metric called Symmetric Weighted Kullback-Leibler Divergence (SWKL). SWKL weights the divergence by state visitation frequency, ensuring that rare, noisy actions don't distort the overall behavioral profile.
Figure 2: Behavioral homophily inference framework for hierarchical social network data via Inverse Reinforcement Learning.

Datasets

The study leverages two primary data sources:

  1. Reddit Dataset: A massive 1.3 TB slice of raw Reddit data spanning January 2015 to January 2022, collected via the Pushshift API. From this, the authors tracked 662 highly active users across 15 distinct "home" subreddits (ranging from r/politics and r/Conservative to r/Minecraft and r/NoFap), capturing 5.9 million total interactions.
  2. DEBAGREEMENT Dataset: A specialized dataset containing labeled comment-reply pairs from five politically charged subreddits, used to train the stance classifier.

Key Insights and Ideas

  • The Sports/E-Sports Behavioral Mirror: The authors discovered a fascinating anomaly: users from r/soccer and r/leagueoflegends share almost zero topical overlap (low topical homophily), yet they display remarkably high behavioral homophily. Deeper engagement in these distinct subreddits causes users' interaction patterns to converge, reflecting shared behavioral traits between traditional sports fans and e-sports enthusiasts.
  • Discovery of the "Disagreer" Persona: Through $k$-means clustering of the inferred policies, the authors identified 5 distinct behavioral personas: Thread Creators, Root Only, Root Favored, Balanced Users, and Disagreers. "Disagreers" are users whose primary behavioral drive is to post opposing views and then move on without waiting around to sustain a conversation.
  • Echo Chambers of Agreement vs. Outward Hate: Intuitively, one might expect highly controversial subreddits to be filled with "Disagreers." However, r/The_Donald showed an incredibly low proportion of them. Qualitative analysis revealed that users within this community rarely debated each other; instead, they used high internal agreement to unify and direct hostile rhetoric outward toward external targets.
  • Political vs. Non-Political Behavior: "Disagreers" were heavily concentrated in news and political subreddits (r/politics, r/news, r/worldnews). Conversely, non-political subreddits like r/memes and r/Minecraft contained exactly zero users classified as "Disagreers," leaning heavily toward validation-seeking behaviors (Root Only or Root Favored).

Key Results

  • Stance Classifier Performance: The fine-tuned DeBERTaV3 model achieved an accuracy of 0.683 and an F1-score of 0.680, outperforming standard BERT and RoBERTa baselines on stance detection.
  • Policy Validation: To prove the IRL model actually captured unique user traits, the authors ranked the log-likelihood of a user's real trajectory against 1,000 randomly generated policies. The inferred user policy ranked first for 660 out of 662 users, confirming its high descriptive accuracy.
  • Topic vs. Policy Stability: Tracking users over 6 years revealed that while "Thread Creators" maintain highly stable interaction behaviors over time, their topical interests fluctuate wildly. "Disagreers," on the other hand, show highly volatile, reactive behavioral patterns.

Limitations and Future Work

While powerful, the authors note a few critical limitations:

  • Data Access Dependencies: This framework requires access to complete, uncensored hierarchical conversation structures to map direct and indirect user actions. Recent API restrictions across major platforms make gathering this data increasingly difficult.
  • Data Hunger: IRL is notoriously data-intensive. For users with sparse posting histories, the state-action space may not saturate, leading to potential estimation biases or failure to converge.
  • Exclusion of Passive Signals: The current model only looks at text-based actions. It completely omits silent interactions like upvoting, downvoting, or lurking, which represent a massive portion of social media consumption. Incorporating these latent signals remains an open challenge for future work.

Summary updated

BibTeX
@inproceedings{yuan2025behavioral,
  author = {Lanqin Yuan and Philipp J. Schneider and Marian-Andrei Rizoiu},
  title = {{Behavioral Homophily in Social Media via Inverse Reinforcement Learning: A Reddit Case Study}},
  booktitle = {The Web Conference},
  year = {2025},
  url = {https://openreview.net/forum?id=b0TEaurFma},
}
Figure