Skip to main content
QUICK REVIEW

[Paper Review] Time Series Structure Discovery via Probabilistic Program Synthesis

Ulrich Schaechtle, Feras A. Saad|arXiv (Cornell University)|Nov 21, 2016
Time Series Analysis and ForecastingComputer Science11 references6 citations
TL;DR

This paper introduces a probabilistic program synthesis framework for time series structure discovery, reformulating Automatic Bayesian Covariance Discovery (ABCD) using abstract syntax trees (ASTs) and probabilistic programs in Venture. It achieves accurate interpolation and extrapolation on real-world econometric data, with a 70-line implementation outperforming non-parametric and standard regression baselines while enabling flexible, extensible model discovery through under 10 lines of additional code for non-parametric clustering.

ABSTRACT

There is a widespread need for techniques that can discover structure from time series data. Recently introduced techniques such as Automatic Bayesian Covariance Discovery (ABCD) provide a way to find structure within a single time series by searching through a space of covariance kernels that is generated using a simple grammar. While ABCD can identify a broad class of temporal patterns, it is difficult to extend and can be brittle in practice. This paper shows how to extend ABCD by formulating it in terms of probabilistic program synthesis. The key technical ideas are to (i) represent models using abstract syntax trees for a domain-specific probabilistic language, and (ii) represent the time series model prior, likelihood, and search strategy using probabilistic programs in a sufficiently expressive language. The final probabilistic program is written in under 70 lines of probabilistic code in Venture. The paper demonstrates an application to time series clustering that involves a non-parametric extension to ABCD, experiments for interpolation and extrapolation on real-world econometric data, and improvements in accuracy over both non-parametric and standard regression baselines.

Motivation & Objective

  • To address the brittleness and limited extensibility of existing time series structure discovery methods like ABCD.
  • To enable robust, scalable, and extensible discovery of interpretable covariance structures in time series using probabilistic programming.
  • To unify model prior, likelihood, and search strategy within a single probabilistic program synthesis framework for Gaussian process models.
  • To demonstrate competitive performance in interpolation and extrapolation on real-world econometric datasets compared to non-parametric and standard regression baselines.
  • To enable non-parametric clustering of time series by extending the framework with minimal code, recovering ground-truth groupings from synthetic and real data.

Proposed method

  • Represent time series models as abstract syntax trees (ASTs) in a domain-specific probabilistic language, enabling symbolic manipulation and search over model structures.
  • Define a generative AST prior that samples candidate model structures from a grammar of covariance kernels (e.g., linear, periodic, white noise).
  • Use an AST interpreter to compile ASTs into executable probabilistic programs in the Venture probabilistic programming language.
  • Formulate the full inference problem as a joint posterior over ASTs, hyperparameters, and model structures, using a synthesis strategy that combines Metropolis-Hastings sampling and gradient-based optimization.
  • Integrate model likelihood and prior distributions into a single probabilistic program to enable Bayesian inference over model structure and hyperparameters.
  • Leverage Venture’s inference engine to perform joint inference over model structure, hyperparameters, and cluster identities in non-parametric clustering extensions.

Experimental results

Research questions

  • RQ1Can probabilistic program synthesis be used to reformulate and improve upon the ABCD framework for time series structure discovery?
  • RQ2How does combining gradient-based optimization with MCMC sampling in the synthesis strategy affect model discovery accuracy and robustness?
  • RQ3To what extent can the framework be extended to non-parametric clustering of time series with shared covariance structures using minimal code changes?
  • RQ4How does the predictive performance of the synthesized models compare to non-parametric and standard regression baselines on real-world time series data?
  • RQ5What is the impact of model averaging over posterior structures versus using the MAP structure on predictive accuracy in complex, composite kernel scenarios?

Key findings

  • The framework achieved competitive predictive performance on real-world interpolation and extrapolation tasks, with Gaussian process models accurately capturing trends and periodicities in airline passenger volume and solar radiation data.
  • On held-out data from four real-world datasets, the GP model via probabilistic program synthesis achieved lower root mean squared error (RMSE) than non-parametric and standard machine learning baselines, with performance standardized to a baseline of 1.0.
  • Joint inference over structure, hyperparameters, and cluster identities recovered the ground-truth partitioning of four synthetic time series (two linear, two periodic) using only 64 posterior samples.
  • Model averaging over the posterior distribution of structures outperformed the use of the maximum a posteriori (MAP) structure, particularly in composite kernel scenarios where the MAP estimate was incorrect.
  • Extending ABCD to a non-parametric clustering technique required modifying less than 10 lines of code, demonstrating high extensibility and composability of the framework.
  • The full implementation required only 69 lines of Venture code, significantly reducing code complexity compared to ABCD (4,166 lines) and GPML Toolbox (13,945 lines), highlighting the framework’s conciseness and maintainability.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.