# Invisible Walls in Cities: Designing LLM Agent to Predict Urban Segregation Experience with Social Media Content

arXiv: https://arxiv.org/abs/2503.04773 · HTML: https://mlsanity.com/paper/2503.04773/

## Key facts

- Cited by 1 papers in the map (data through 14 Oct 2026).
- Placed in Social simulation and multi-agent debate, one of 16 directions in LLM agents and tool use.
- Builds on 10 of its 38 references that are in the map.
- First posted on arXiv 17 Feb 2025.

## Placed in

- LLM agents and tool use / [Social simulation and multi-agent debate](https://mlsanity.com/agents/social-simulation-and-multi-agent-debate/)

## Builds on (most cited first, 10 of 10)

- [BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding](https://mlsanity.com/paper/1810.04805/) (2018)
- [Graph Attention Networks](https://mlsanity.com/paper/1710.10903/) (2017)
- [Towards General Text Embeddings with Multi-stage Contrastive Learning](https://mlsanity.com/paper/2308.03281/) (2023)
- [LLM-in-the-loop: Leveraging Large Language Model for Thematic Analysis](https://mlsanity.com/paper/2310.15100/) (2023)
- [Understanding Mobile Traffic Patterns of Large Scale Cellular Towers in Urban Environment](https://mlsanity.com/paper/1510.04026/) (2015)
- [The Geography of Happiness: Connecting Twitter sentiment and expression, demographics, and objective characteristics of place](https://mlsanity.com/paper/1302.3299/) (2013)
- [Facebook Ads as a Demographic Tool to Measure the Urban-Rural Divide](https://mlsanity.com/paper/2002.11645/) (2020)
- [Lady and the Tramp Nextdoor: Online Manifestations of Economic Inequalities in the Nextdoor Social Network](https://mlsanity.com/paper/2304.05232/) (2023)
- [Toward satisfactory public accessibility: A crowdsourcing approach through online reviews to inclusive urban design](https://mlsanity.com/paper/2409.08459/) (2024)
- [Shorter Is Different: Characterizing the Dynamics of Short-Form Video Platforms](https://mlsanity.com/paper/2410.16058/) (2024)

## Built on by (most cited first, 1 of 1)

- [Reason-to-Recommend: Using Interaction-of-Thought Reasoning to Enhance LLM Recommendation](https://mlsanity.com/paper/2506.05069/) (2025)

## Abstract (arXiv)

Understanding experienced segregation in urban daily life is crucial for addressing societal inequalities and fostering inclusivity. The abundance of user-generated reviews on social media encapsulates nuanced perceptions and feelings associated with different places, offering rich insights into segregation. However, leveraging this data poses significant challenges due to its vast volume, ambiguity, and confluence of diverse perspectives. To tackle these challenges, we propose a novel Large Language Model (LLM) agent to automate online review mining for segregation prediction. Specifically, we propose a reflective LLM coder to digest social media content into insights consistent with real-world feedback, and eventually produce a codebook capturing key dimensions that signal segregation experience, such as cultural resonance and appeal, accessibility and convenience, and community engagement and local involvement. Guided by the codebook, LLMs can generate both informative review summaries and ratings for segregation prediction. Moreover, we design a REasoning-and-EMbedding (RE'EM) framework, which combines the reasoning and embedding capabilities of language models to integrate multi-channel features for segregation prediction. Experiments on real-world data demonstrate that our agent substantially improves prediction accuracy, with a 22.79% elevation in R2 and a 9.33% reduction in MSE. The derived codebook is generalizable across three different cities, consistently improving prediction accuracy. Moreover, our user study confirms that the codebook-guided summaries provide cognitive gains for human participants in perceiving places of interest (POIs)' social inclusiveness. Our study marks an important step toward understanding implicit social barriers and inequalities, demonstrating the great potential of promoting social inclusiveness with Web technology.
