Introduction
Understanding public opinion on complex social issues like homelessness is critical for policy reform, yet researchers have long faced a "scale vs. depth" trade-off. Traditional qualitative methods, such as ethnography or manual content analysis, provide deep insight but cannot process the millions of data points generated on social media. Conversely, standard Natural Language Processing (NLP) tools, such as sentiment analysis or toxicity classifiers, often lack the nuance required to identify subtle stigmatization or specific policy critiques.
To bridge this gap, researchers at USC developed OATH-Frames, a framework that integrates social work expertise with Large Language Models (LLMs). This approach allows for the large-scale analysis of millions of social media posts while maintaining the thematic depth of expert human judgment.
The OATH-Frames Typology
The foundation of this work is a specialized "framing typology" designed to capture the specific ways homelessness is discussed online. Using Grounded Theory, social work experts analyzed a sample of posts to identify nine hierarchical frames, organized into three primary themes:
- Critiques: Focused on systemic issues, such as government failure or societal shortcomings.
- Perceptions: Capturing how the public views individuals experiencing homelessness, including harmful generalizations and "Not In My Backyard" (NIMBY) sentiments.
- Responses: Identifying proposed solutions, interventions, or calls to action.
Methodology: A Human-AI Collaborative Pipeline
The researchers implemented a three-stage pipeline to scale their analysis across a dataset of 5 million Twitter (now X) posts from 2021–2023:
1. Frame Discovery
Experts established the OATH-Frames typology through iterative qualitative analysis, ensuring the categories were grounded in real-world discourse.
2. Human-AI Collaborative Annotation
To label the training data, the team utilized an Expert+LLM pipeline. GPT-4 was prompted to provide labels along with Chain-of-Thought (CoT) explanations. Human experts then reviewed and edited these predictions. This collaborative loop allowed the team to refine LLM prompts based on expert feedback, resulting in a 6.5x speedup in annotation time compared to manual labeling, with only a minimal (3-point) reduction in F1 score.
3. Scaling via Distillation
To process the full 2.4 million relevant posts, the team fine-tuned a Flan-T5-Large model (770M parameters) on the expert-validated labels. This distilled model performed on par with the GPT-4 assisted setup and significantly outperformed zero-shot models like Llama-2-7b, demonstrating the value of task-specific fine-tuning for nuanced social science tasks.
Key Findings: The Inadequacy of Standard Filters
A primary insight from the OATH-Frames analysis is that standard toxicity filters are often "blind" to stigma. The study found that a majority of posts categorized under Harmful Generalizations (e.g., stereotyping unhoused individuals as dangerous or drug-addicted) were rated as low toxicity by tools like the Perspective API. Because stigmatizing language often avoids profanity or overt hate speech, specialized frames like OATH are essential for capturing the true nature of harmful public discourse.
Furthermore, the research identified a "hierarchy of deservingness" in public conversation. When homelessness was discussed in the context of Ukrainian refugees, the discourse centered on Government Critique (questioning resource allocation). However, when discussed alongside immigrants, the tone shifted toward NIMBYism and Harmful Generalizations.
Socio-Economic Drivers of Discourse
By performing linear regressions on state-level data, the authors linked online attitudes to real-world economic conditions. They found that a high Cost of Living Index strongly correlates with increased Government Critique, suggesting that economic pressure on the general population drives frustration with systemic management. Conversely, states with a higher percentage of unsheltered individuals saw a rise in Harmful Generalizations, indicating that increased visibility of homelessness may trigger more stigmatizing reactions.
Conclusion and Future Work
OATH-Frames demonstrates that LLMs can significantly augment social science research by providing a scalable yet nuanced lens for analyzing public attitudes. While the current study is limited by its US-centric focus and keyword-based data collection, it provides a robust foundation for future work. The researchers plan to expand the framework to include more granular contexts, such as specific target groups (e.g., veterans or youth) and the intersection of homelessness with mental health and substance use discourse.
Summary updated