OpFlow Improves Robustness in OD Flow Prediction

Changjian Liu, Yong Gao, Yuqing Wang, Leyi Su, Honglei Guo, Zhiyang Wang, Xiaoyu Wang, Fan Zhang· July 7, 2026 View original

▶ The 2-minute explainer

Summary

This paper introduces OpFlow, a mechanism-constrained framework for robust origin-destination (OD) flow prediction that addresses vulnerability to distribution shifts. OpFlow learns transferable "exposure-to-choice" laws by separating demand generation from destination allocation, improving prediction accuracy under changing environmental conditions.

Origin-destination (OD) flow prediction is a cornerstone of urban analytics, but current deep learning models often struggle with distribution shifts because they are trained on raw counts. This approach conflates transferable choice mechanisms with environment-specific factors, making models brittle when conditions change. The core issue is that raw OD counts mix two distinct elements: the total demand generated by an origin and how that demand is distributed among various destinations. This research proposes OpFlow, a novel framework designed to overcome these limitations by focusing on the transferable aspect: the "exposure-to-choice law" that maps spatial conditions to relative destination preferences. OpFlow employs a mechanism-constrained approach, learning row-centered choice potentials and then reconstructing flows by combining these induced allocations with a separately calibrated origin scale. This design allows spatial exposures and allocations to vary under distribution shifts, while the conditional mapping from exposure states to relative choice potentials remains robust. Theoretical analysis characterizes the identifiable row-centered potential, showing that classical spatial interaction laws are specific cases of restricted log-potentials. Both synthetic experiments and a real-world application demonstrate that OpFlow significantly enhances robustness when faced with environmental shifts.

Why it matters

Urban planners, transportation agencies, and logistics companies can leverage OpFlow to achieve more accurate and robust predictions of movement patterns, even when urban environments or conditions change significantly.

How to implement this in your domain

  1. 1Evaluate OpFlow or similar mechanism-constrained models for origin-destination flow prediction tasks.
  2. 2Separate demand generation modeling from destination choice modeling in predictive analytics.
  3. 3Focus on learning transferable "exposure-to-choice" laws rather than raw count correlations.
  4. 4Test predictive models rigorously under various simulated distribution shift scenarios.

Who benefits

Urban PlanningTransportationLogisticsRide-sharing/Delivery ServicesRetail

Key takeaways

  • Raw OD count models are vulnerable to distribution shifts due to conflating demand and allocation.
  • OpFlow separates demand generation from destination allocation to learn transferable choice mechanisms.
  • The framework improves robustness in OD flow prediction under environmental changes.
  • Classical spatial interaction laws are specific cases of OpFlow's log-potentials.

Original post by Changjian Liu, Yong Gao, Yuqing Wang, Leyi Su, Honglei Guo, Zhiyang Wang, Xiaoyu Wang, Fan Zhang

"arXiv:2607.03200v1 Announce Type: new Abstract: Origin-destination (OD) flow prediction is central to urban analytics, yet deep models trained on raw counts remain vulnerable to distribution shift. The core problem is that raw count supervision cannot distinguish transferable cho…"

View on X

Originally posted by Changjian Liu, Yong Gao, Yuqing Wang, Leyi Su, Honglei Guo, Zhiyang Wang, Xiaoyu Wang, Fan Zhang on X · view source

Want to go deeper?

Turn these trends into skills with Learnijoy's hands-on AI & tech courses.

Explore courses