UrbanDS: A Graph-Guided LLM Multi-Agent System for Data-Intensive Urban Tasks

Zhilun Zhou, Jianghao Yu, Yuming Lin, yongjun yang, Sun Yongquan, Depeng Jin, Yong LiarXiv 2026

TL;DR

UrbanDS is a new graph-guided multi-agent framework designed to automate data science workflows in data-intensive environments like urban computing. By organizing massive, messy data repositories into a structured "dataset graph" based on spatiotemporal and semantic relationships, it allows LLM agents to autonomously discover, plan, and execute complex data analysis tasks. It consistently outperforms existing data science agents and delivers a 5.6x speedup in real-world deployments.

What Problem Does This Paper Address?

Most current LLM-based data science assistants (like Data Interpreter or Advanced Data Analysis tools) operate under a comfortable assumption: the user has already handed them the exact dataset they need. In reality, data science is rarely that clean. In fields like urban planning and smart city management, data is scattered across massive repositories containing hundreds of heterogeneous files—ranging from traffic trajectories and POI coordinates to socioeconomic tables.

An autonomous agent in this setting faces a needle-in-a-haystack problem. It must not only write correct code but first discover which datasets are relevant and figure out how to join them across complex spatial, temporal, and semantic boundaries (e.g., matching region_id in a population table to id in a geographic boundary file). Existing agents fail here because they lack a global understanding of the data ecosystem and easily blow past their context windows trying to read raw files.

Methods

UrbanDS tackles this challenge by splitting the workflow into two distinct phases: offline graph construction and online task execution.

  1. Dataset Graph Construction (Offline): Instead of forcing the LLM to read every file for every query, UrbanDS profiles the repository once. A Data Profiling Agent runs Python scripts to extract schemas, statistical distributions, and spatiotemporal bounds, creating a reusable "dataset skill" for each file. Then, a Relation Agent builds an incremental semantic codebook to identify how fields connect across datasets (e.g., validating if two different ID columns refer to the same urban regions). This knowledge is compiled into a unified Dataset Graph, where nodes are datasets and edges represent spatial, temporal, or semantic relationships.
  2. Task Execution (Online): When a user submits a query, a Planner Agent uses the graph to progressively retrieve relevant datasets and chart a step-by-step analysis plan. Specialized Execution Agents then tackle individual sub-tasks by writing and running code, communicating intermediate results through a shared progress memory. Finally, a Report Agent synthesizes the findings into a clean data analysis report, which a Revision Agent can refine based on user feedback.
Figure 1: The overall framework of UrbanDS, including (a) dataset graph construction, and (b) task execution.

Datasets

To rigorously evaluate LLM agents in data-intensive environments, the authors introduced UrbanDS-Bench, a new benchmark specifically tailored for urban data science. It compiles 94 datasets from 10 major Chinese cities, spanning geospatial data (OpenStreetMap), human mobility (trajectories, origin-destination flows), and socioeconomic indicators. Crucially, the filenames are anonymized to prevent agents from cheating via simple keyword matching; they must inspect the data schema and profile. The benchmark includes 450 data analysis instances and 8 Kaggle-style data modeling tasks.

The authors also evaluated their system on the hard subset of CoDA-Bench, a general-domain file-system data discovery benchmark containing over 1,400 files per repository.

Key Insights and Ideas

  • Pre-computation of Data Relationships is Essential: Trying to do zero-shot data discovery over large file systems leads to severe hallucinations and context window overflow. Creating an explicit, lightweight graph representation of data skills and edges bridges the gap between raw files and high-level planning.
  • Semantic Codebooks Solve the Schema Matching Nightmare: Urban data rarely adheres to a unified ontology. By incrementally building a semantic codebook during profiling, UrbanDS can dynamically discover that two differently named columns are joinable without requiring a human to pre-define the schema mappings.
  • Multi-Dataset Integration is the True Bottleneck: Performance drops sharply for all evaluated agents as the number of required datasets increases beyond three. This highlights that data synthesis—not just code generation—is the true frontier of autonomous data science.

Key Results

  • State-of-the-Art Performance: UrbanDS achieved 70.0% accuracy on UrbanDS-Bench and 46.2% on CoDA-Bench, outperforming the strongest baseline (Claude Code) by 11.2% and 10.0% relatively.
  • Ablation Validation: Ablation studies showed that removing dataset skills caused performance to plummet (dropping spatiotemporal task accuracy from 73.9% to 39.1%), proving that structural data descriptions are critical for correct execution.
  • Real-World Impact: Deployed on the urban operations platform of Dongxihu District, Wuhan (managing 103 real-world datasets), a user study with 12 urban professionals revealed an estimated 5.6x speedup, slashing average task completion times from 4.08 hours to just 0.73 hours.
Figure 4: Ablation study results.

Limitations and Future Work

While UrbanDS excels at executing user-specified queries, it remains a passive assistant. It cannot yet autonomously explore a data repository to surface unexpected patterns or propose its own research questions without human prompting. The authors note that transitioning UrbanDS from a reactive query-solver to an active, self-directed "AI Urban Scientist" is their primary direction for future work.

Summary updated

BibTeX
@misc{zhou2026urbands,
  author = {Zhilun Zhou and Jianghao Yu and Yuming Lin and yongjun yang and Sun Yongquan and Depeng Jin and Yong Li},
  title = {{UrbanDS: A Graph-Guided LLM Multi-Agent System for Data-Intensive Urban Tasks}},
  year = {2026},
  eprint = {2607.26724},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2607.26724},
}
Figure