Exact and Efficient Inference for Collective Flow Diffusion Model via Minimum Convex Cost Flow Algorithm

Yasunori Akagi, Takuya Nishimura, Yusuke Tanaka, Takeshi Kurashima, Hiroyuki Toda

Abstract

Collective Flow Diffusion Models (CFDM) provide a probabilistic framework for inferring hidden population movements from aggregated count data. Traditionally, Maximum A Posteriori (MAP) inference for these models has relied on continuous relaxations and approximations that yield non-integer results and dense flow matrices. We present a novel approach that reformulates MAP inference as a Minimum Convex Cost Flow Problem (C-MCFP). By exploiting the discrete convexity of the objective function and employing the Capacity Scaling algorithm, our method achieves exact integer solutions with 10x to 400x speedups over traditional solvers while maintaining high memory efficiency through natural sparsity.

Introduction

In urban planning and public health, researchers often work with aggregated count data—such as the number of people in a city grid at specific intervals—rather than individual trajectories, which are difficult to obtain due to privacy and technical constraints. The challenge lies in inferring the "flow" (who moved from where to where) from these counts. The Collective Flow Diffusion Model (CFDM) addresses this, but its standard MAP inference is computationally expensive and provides only approximate, non-integer solutions. This paper introduces a combinatorial optimization approach that treats inference as a graph-based problem, ensuring both accuracy and efficiency.

Methodology: Inference as a Graph Problem

The core innovation of this work is the reformulation of MAP inference as a Minimum Convex Cost Flow Problem (C-MCFP). Instead of continuous optimization, the problem is mapped onto a graph where nodes represent geographic areas at specific timesteps and edges represent potential movement paths.

MCFP formulation mapping geographic areas and timesteps to a graph with convex costs.

As shown in the formulation above, costs on the edges are derived from the log-likelihood of the multinomial distribution. The authors prove that these cost functions satisfy "discrete convexity," allowing the use of the Capacity Scaling (CS) algorithm. This algorithm iteratively sends flow along shortest paths in a residual graph. Its complexity is logarithmic relative to the total population, making it highly scalable for metropolitan-scale datasets.

To handle real-world noise where conservation laws might be violated (e.g., people entering or leaving the study area), the model incorporates "super-source" and "super-sink" nodes. This mechanism gracefully accounts for inflows and outflows from outside the target geographic cells.

Experimental Results

The proposed method was evaluated using both synthetic grid simulations and real-world mobile spatial statistics from Tokyo and Kanagawa, Japan, covering over 3,700 geographic cells.

Speed and Scalability

On real-world datasets, the C-MCFP approach was at least 10 times faster for single MAP inference. When integrated into an Expectation-Maximization (EM) framework for parameter estimation, it achieved speedups of up to 400x compared to the state-of-the-art L-BFGS-B solver. This efficiency allowed the processing of large-scale data that previously caused approximate methods to time out.

Sparsity and Memory Efficiency

A significant advantage of the discrete formulation is the natural sparsity of the resulting flow matrices. Traditional continuous methods produce dense matrices filled with negligible non-zero values (e.g., $10^{-7}$), whereas the proposed method returns exact zeros where movement is unlikely.

Comparison of flow matrix sparsity between the proposed MCFP-based method and the traditional L-BFGS-B baseline.

As illustrated in the heatmaps, the proposed method achieves 67% to 90% sparsity, while the baseline remains at 0% sparsity. This drastic reduction in non-zero entries allows for significant memory savings when using sparse matrix storage formats.

Conclusion

By bridging the gap between probabilistic graphical models and combinatorial graph algorithms, this research provides a robust framework for exact and efficient population flow inference. The transition from continuous relaxation to discrete optimization not only improves accuracy by providing integer-accurate results but also offers the scalability required for modern big-data applications in urban mobility. Future work may explore extending this flow-based approach to models with higher-order Markovian dependencies or time-varying transition parameters.

Summary updated

BibTeX
@inproceedings{akagi2020exact,
  author = {Yasunori Akagi and Takuya Nishimura and Yusuke Tanaka and Takeshi Kurashima and Hiroyuki Toda},
  title = {{Exact and Efficient Inference for Collective Flow Diffusion Model via Minimum Convex Cost Flow Algorithm}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2020},
  doi = {10.1609/aaai.v34i04.5713},
}
Figure