Topo Goes Political: TDA-Based Controversy Detection in Imbalanced Reddit Political Data

Arvindh Arun, Karuna K Chandra, Akshit Sinha, Balakumar Velayutham, Jashn Arora, Manish Jain, Ponnurangam Kumaraguru · DOI

TL;DR

Most controversy detection models fail in the real world because they are trained and tested on artificially balanced datasets. This paper introduces a realistic, highly imbalanced Reddit dataset on Indian politics and demonstrates that incorporating Topological Data Analysis (TDA)—specifically persistent homology—significantly improves a model's robustness to real-world class imbalances.

What Problem Does This Paper Address?

Detecting controversial content online is vital for content moderation and understanding public polarization. However, existing machine learning models for controversy detection suffer from a major evaluation flaw: they are almost exclusively benchmarked on synthetically balanced datasets (50% controversial, 50% non-controversial).

In reality, true online controversy is rare. In natural political discussions, non-controversial posts vastly outnumber controversial ones. When models trained on balanced data are deployed in these real-world, highly imbalanced environments, their performance plummets. This paper addresses this gap by evaluating existing models under realistic class imbalances and proposing a more robust feature-extraction framework to handle it.

Methods

The authors approach controversy detection by extracting a diverse taxonomy of textual and structural features, blending traditional NLP with advanced graph theory.

Figure 1: Taxonomy of the diverse features extracted and the methods used.

The core novelty lies in their use of Topological Data Analysis (TDA), specifically Persistent Homology. When users engage in heated online debates, they often form cyclic interaction patterns (e.g., user A replies to B, B replies to C, C replies to A). Persistent homology mathematically captures these multi-scale loops and "holes" in the user-interaction graph over time, creating a robust, noise-resistant temporal fingerprint of the discussion. These topological features ($f_4$) are transformed into fixed-size "persistence images" to be fed into downstream models.

Additionally, the authors introduce the Imbalance Impact Score ($I$), a new metric designed to quantify how well a model maintains its performance when moving from a balanced testing environment to an imbalanced one:

$$I = 100 \cdot (F_c(a) \times F_c(c)) \cdot (1 - |F_c(a) - F_c(c)|)$$

where $F_c(a)$ is the $F_1$ score on balanced data and $F_c(c)$ is the $F_1$ score on the natural, imbalanced distribution.

Datasets

The authors curated a new dataset from 7 popular subreddits focused on Indian politics (including r/india, r/IndiaSpeaks, and r/unitedstatesofindia), spanning 10 months.

To label the data without human bias, they used the post's Upvote Ratio (UR) as a proxy for polarization, validating the thresholds via a pilot study of Reddit's native "controversial" feed:

  • Controversial: $0.30 \le UR \le 0.70$
  • Non-Controversial: $0.80 \le UR \le 1.00$
Figure 2: This density plot illustrates the distribution of UR for both controversial and non-controversial posts in our pi- lot study (A) and in our dataset (B). The plots reveal a region of separability between the two classes indicated by the verti- cal lines, which is used to derive a threshold for categorizing posts as controversial or non-controversial.

After filtering out posts with fewer than 5 comments, the final dataset consists of 18,462 posts and 946,775 comments. Crucially, it preserves the natural class imbalance: only 11.4% of the posts are controversial (a 1:7.74 ratio).

Key Insights and Ideas

  • The Illusion of Accuracy: Benchmarking on balanced datasets creates a false sense of security. Models that look highly accurate in the lab fail to detect rare controversial events when deployed in real-world settings.
  • Shape Over Substance: While text embeddings capture what is being said, graph topology captures how people are interacting. The presence of structural "loops" in conversation threads is a strong, language-agnostic indicator of a heated, back-and-forth debate.
  • Simplicity Wins: Surprisingly, a feature-based baseline (combining text and structural features) augmented with TDA features outperformed complex, computationally heavy Graph Neural Networks (GNNs) like TPC-GCN in imbalanced scenarios.

Key Results

  • The Performance Drop: Across all traditional ML models (AdaBoost, MLP, Random Forest) and GNNs (GCN, GAT, GraphSAGE), there was a massive drop in the controversial class $F_1$ score ($F_c$) when moving from balanced to imbalanced testing. For example, AdaBoost's $F_c$ dropped from ~0.72 to ~0.38.
  • TDA Boosts Robustness: Incorporating dynamic TDA features ($f_4$) consistently improved the Imbalance Impact Score ($I$) across almost all models and training configurations.
  • Top Performer: The feature-based baseline "SB" (from Lee and Hessel) combined with the new TDA features ($SB + f_4$) achieved the highest overall robustness, yielding the highest Imbalance Impact Scores ($I = 23.393$ under oversampled training conditions).

Limitations and Future Work

The authors note that their dataset is confined entirely to English-language Reddit discussions within the context of Indian politics, which may limit its generalizability to other platforms, languages, or cultural contexts. Furthermore, while persistent homology captures macro-level interaction shapes, it might overlook finer semantic nuances within the text.

Future work will focus on testing the transferability of this TDA-based approach to other social media platforms and exploring whether these topological features can be leveraged for the early detection of controversy before a thread blows up.

Summary updated

BibTeX
@inproceedings{arun2025topo,
  author = {Arvindh Arun and Karuna K Chandra and Akshit Sinha and Balakumar Velayutham and Jashn Arora and Manish Jain and Ponnurangam Kumaraguru},
  title = {{Topo Goes Political: TDA-Based Controversy Detection in Imbalanced Reddit Political Data}},
  booktitle = {The Web Conference},
  year = {2025},
}
Figure