Latent Distribution Modeling for Source Localization under Training-Inference Observation Mismatch
Authors: Dongpeng Hou, Junqing Zhao, Chao Gao, Xianghua Li, Zhen Han, Andrey Leonidov, A. M. Raigorodskii
Organizations: School of Artificial Intelligence, Optics and Electronics, Northwestern Polytechnical University, Xi’an, 710072, China · School of Mechanical Engineering, Northwestern Polytechnical University, Xi’an, 710072, China · Hangzhou International Innovation Institute, Beihang University, Hangzhou, 311115, China · Lebedev Physical Institute of the Russian Academy of Sciences, Moscow, 119991, Russian Federation · Moscow Institute of Physics and Technology, Dolgoprudny, Moscow Region, 141701, Russian Federation
Source localization seeks to infer the origins of network propagation processes, with applications to tracing misinformation in social networks. Recent discriminative methods exploit temporal propagation sequences to directly predict source probabilities, but models trained on such sequential observations typically require temporal propagation sequences to remain available during inference. However, in practice, although complete sequences can be used for offline training, collection delays often restrict timely inference to the use of a single observed snapshot. The resulting observation mismatch induces a distributional shift between dynamics-enriched training representations and snapshot-based inference representations, degrading source localization performance. To address this challenge, we propose Temporally Guided Latent Refinement (TGLR). During training, node features are encoded into latent distributions, and temporal dynamics guide residual refinement of the resulting distributions. A latent diffusion model is then trained to broaden the resulting latent distribution and capture its structure. During inference, test-time adaptation uses the trained diffusion model as a distributional prior to adapt snapshot-based latent representations toward the dynamics-enriched distribution. We also construct Twitter25, a real-world dataset incorporating quoting interactions, to evaluate source localization on richer propagation structures. Extensive experiments across thirteen simulated and real-world propagation settings demonstrate the effectiveness of TGLR under the training-inference observation mismatch, with an average relative F1 improvement of 3.1% over baseline methods. The code and datasets are available at https://github.com/DancinPuppet/TGLR.
Figures & tables
Figure 1: Illustration of the training-inference observation mismatch in source localization. During training, models learn from complete temporal propagation sequences with rich dynamics. During inference, only a single observed snapshot is available.
Figure 2: Overview of the TGLR architecture. (a) Feature Construction extracts features from graph observations. (b) Temporally Guided Residual Refinement encodes static features into latent distributions and uses GRU-derived temporal dynamics to guide residual refinement of the resulting distributions. (c) Latent Diffusion Regularization broadens and learns distributional structure via denoising networks. (d) Test-Time Adaptation adapts representations for source prediction during inference.
Figure 3: Structural comparison of four propagation datasets across five dimensions: Interaction Density, Average Degree, Graph Density, Clustering Coefficient, and Gini Coefficient. Axes marked with † are normalized on a logarithmic scale; remaining axes use linear normalization. Each axis is normalized to the displayed range. Numerical values before normalization are provided in Table 9 in Appendix D .
Figure 4: Performance comparison of temporal integration strategies under (a) SI and (b) SIR models.
Figure 5: Performance comparison of distribution gap handling strategies under (a) SI and (b) SIR models.
Figure 7: Visualization of the latent distribution shift induced by training-inference observation mismatch. A baseline encoder without distributional bridging is used to isolate the effect of the mismatch: training representations μ′ are derived from complete temporal sequences via residual refinement, while inference representations μ are encoded from static snapshots alone. Left to right: (a) Training distribution of μ′ learned from complete temporal sequences; (b) Inference distribution of μ encoded from static snapshots, overlaid on the training distribution; (c) Coverage analysis with gap quantifying the distributional shift.
Figure 8: Distribution evolution visualization showing how test-time adaptation adapts static snapshot representations toward the dynamics-enriched training distribution. Left to right: (a) Training distribution learned from complete temporal sequences; (b) Initial inference representations ( μ ) encoded from static features; (c) Distributional coverage of initial inference representations against the training distribution; (d) Refined representations ( μopt ) after TTA optimization; (e) Distributional coverage after TTA optimization, with improvement in inside-distribution ratio annotated.
Figure 9: Computational efficiency comparison: (a) training time and (b) inference time.
Diffusion models are often trained in low-dimensional latent spaces, which are then reused for related but shifted datasets. In this work, we study when such latent reuse remains reliable under distribution shift. We consider a source-target setting in which both datasets are approximately low-dimensional but may lie near different subspaces. We show that freezing and reusing a source latent space induces a target-domain score error governed by two quantities: the principal-angle misalignment between the source and target subspaces, and the target ambient noise amplified by the diffusion time scale. Motivated by these limits, we further study mixed source-target training and characterize how the required shared latent dimension depends on the relative geometry of the two distributions. Our results provide theoretical guidance on when latent reuse is reliable and when learning a shared representation may be necessary.
Yifeng Yu, Lu Yu
Department of Mathematical Sciences, Tsinghua University · Department of Data Science, City University of Hong Kong
Diffusion models are state-of-the-art tools for various generative tasks. Yet training these models involves estimating high-dimensional score functions, a task that in principle suffers from the curse of dimensionality. It is therefore important to understand how low-dimensional structure in the target distribution can be exploited in these models. Here we consider locality structure, which describes certain sparse conditional dependencies among the target random variables. Given some locality structure, the score function is effectively low-dimensional, so that it can be estimated by a localized neural network with significantly reduced sample complexity. This observation motivates the localized diffusion model, where a localized score matching loss is used to train the score function within a localized hypothesis space. We prove that such localization enables diffusion models to circumvent the curse of dimensionality with dimension-independent error bounds, at the price of additional localization error. Under realistic sample size scaling, we then show both theoretically and numerically that a moderate localization radius can balance the statistical and localization errors, yielding better overall performance. Locality structure also facilitates parallel training, making localized diffusion models potentially more efficient for large-scale applications.
Georg A. Gottwald, Shuigen Liu, Youssef Marzouk +2
School of Mathematics and Statistics, The University of Sydney · Department of Mathematics, National University of Singapore · Laboratory for Information and Decision Systems, Massachusetts Institute of Technology +1
Many modern prediction tasks involve data from multiple heterogeneous sources, while the test distribution may differ substantially from any individual source. Although heterogeneity poses challenges, it also offers an opportunity: different sources may provide complementary information, with some regions of the feature space better represented in one source than another. We propose Multi-Source Randomly Localized Conformal Prediction (MS-RLCP), which builds on the local coverage properties of randomly localized conformal prediction (RLCP) (Hore and Barber, 2025) and extends it to multiple sources through data-adaptive source selection. Under the widely adopted assumption of a shared response distribution conditional on the features across sources and the test population, we establish finite-sample coverage bounds using an interpretable notion of envelope distribution that captures their aggregate feature-space representation. Our analysis allows the test feature distribution to be absolutely continuous with respect to the envelope, extending beyond mixtures of source distributions. Under additional regularity conditions, we also establish asymptotic test-conditional coverage. Simulations and real-world experiments demonstrate the effectiveness of MS-RLCP across varying levels of data heterogeneity.
Department of Statistics, Stanford University · Department of Mathematics and Statistics, Boston University · Department of Computing and Mathematical Sciences, MBZUAI