Projecting infinite time series graphs to finite marginal graphs using number theory

Andreas Gerhardus, Jonas Wahl, Sofia Faltenbacher, Urmi Ninad, Jakob RungearXiv 2023 · DOI

TL;DR

This paper bridges the gap between theoretical infinite-time series causal models and practical finite-graph algorithms. By mapping the search for common ancestors in infinite graphs to the solvability of linear Diophantine equations, the authors provide the first provably correct, finite-time algorithm to project infinite stationary time series graphs onto finite marginal graphs while preserving $m$-separation properties.

The Challenge of Infinite Time Series

In causal inference, time series are often modeled using "time-resolved" graphs. To represent stationary processes—where causal relationships remain constant over time—these graphs must theoretically extend infinitely into the past. While mathematically sound, this creates a significant practical hurdle: most existing causal discovery and effect estimation algorithms, such as the PC algorithm or the backdoor criterion, are designed exclusively for finite graphs.

Figure 1: The projection of an infinite time-resolved graph (a) onto a finite marginal graph (b), illustrating how infinite past influences are captured within a finite window.

Previously, researchers relied on "summary graphs" (which collapse all time steps into a single node) or ad-hoc finite windows. However, summary graphs lose specific lag information, and simple finite windows often miss "long-range" confounding paths originating deep in the infinite past. The central challenge addressed here is how to algorithmically project an infinite graph onto a finite window without losing the underlying causal truth.

Methodology: From Graphs to Number Theory

The authors employ the ADMG (Acyclic Directed Mixed Graph) latent projection. This technique treats vertices outside a specific time window as "latent" (unobserved) and represents their influence using directed and bidirected edges among the remaining observed nodes.

Figure 4: Visualizing the reduction from a complex time-series Acyclic Directed Mixed Graph (ts-ADMG) to a simpler time-series Directed Acyclic Graph (ts-DAG).

The core technical difficulty lies in the fact that an infinite graph with repetitive edges can contain an infinite number of paths between any two nodes. To determine if a bidirected edge should exist in the finite projection, one must check if the nodes share a common ancestor anywhere in the infinite graph. The paper solves this through a three-step reduction:

  1. Graph Reduction: Converting complex mixed graphs (ts-ADMGs) into simpler directed acyclic graphs (ts-DAGs).
  2. Path-to-Algebra Mapping: Demonstrating that searching for a path in a repeating time-series graph is equivalent to checking if a specific weight can be reached by summing the "lags" of edges.
  3. Number Theory Solution: Mapping this search to finding non-negative integer solutions to linear Diophantine equations. By applying the Frobenius coin problem, they determine if such a solution exists in finite time.

Key Insights and Results

  • The Frobenius Connection: The realization that the repetitive nature of stationary time series edges creates a structure identical to "affine cones" over non-negative integers. This allows graph theory problems to be solved using tools from 19th-century number theory, specifically using the Frobenius number to avoid exhaustive searches.
  • Failure of Heuristics: The authors prove that simple heuristics—such as looking back a few extra time steps based on the maximum lag—can fail to detect confounding.
  • The Cutoff Point: They derive a formula (Theorem 3) for a "cutoff point" $p'(D)$, defining exactly how far back into the past one must look to be certain no more common ancestors exist.
  • Preservation of $m$-separation: The resulting finite marginal graphs are guaranteed to yield the same answers to $m$-separation queries as the original infinite graph, ensuring valid causal inference.

Limitations and Future Work

The approach relies heavily on "causal stationarity." If the causal structure changes over time (non-stationary), the number-theoretic mapping breaks down. Additionally, while the algorithm is "finite-time," the derived cutoff point $p'(D)$ can be quite large, potentially leading to expensive computations for complex graphs. Future work may involve optimizing these searches using advanced "subset sum" solvers to handle high-dimensional time series more efficiently.

Summary updated

Abstract

In recent years, a growing number of method and application works have adapted and applied the causal-graphical-model framework to time series data. Many of these works employ time-resolved causal graphs that extend infinitely into the past and future and whose edges are repetitive in time, thereby reflecting the assumption of stationary causal relationships. However, most results and algorithms from the causal-graphical-model framework are not designed for infinite graphs. In this work, we develop a method for projecting infinite time series graphs with repetitive edges to marginal graphical models on a finite time window. These finite marginal graphs provide the answers to $m$-separation queries with respect to the infinite graph, a task that was previously unresolved. Moreover, we argue that these marginal graphs are useful for causal discovery and causal effect estimation in time series, effectively enabling to apply results developed for finite graphs to the infinite graphs. The projection procedure relies on finding common ancestors in the to-be-projected graph and is, by itself, not new. However, the projection procedure has not yet been algorithmically implemented for time series graphs since in these infinite graphs there can be infinite sets of paths that might give rise to common ancestors. We solve the search over these possibly infinite sets of paths by an intriguing combination of path-finding techniques for finite directed graphs and solution theory for linear Diophantine equations. By providing an algorithm that carries out the projection, our paper makes an important step towards a theoretically-grounded and method-agnostic generalization of a range of causal inference methods and results to time series.
BibTeX
@misc{gerhardus2023projecting,
  author = {Andreas Gerhardus and Jonas Wahl and Sofia Faltenbacher and Urmi Ninad and Jakob Runge},
  title = {{Projecting infinite time series graphs to finite marginal graphs using number theory}},
  year = {2023},
  eprint = {2310.05526},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2310.05526},
}
Figure