NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Online EM for functional data

Florian Maire, Eric Moulines, Sidonie Lefebvre · DOI

In the world of data science, we often deal with "functional data"—things like growth curves, sound waves, or images. A recurring challenge is that these data points are rarely identical; they are noisy, censored, and, most frustratingly, deformed. If you want to find the "average" shape of a handwritten '7', you have to account for the fact that every person tilts, stretches, and squiggles their '7' differently.

A recent paper titled "Online EM for Functional Data" by Maire, Moulines, and Lefebvre introduces a powerful new way to solve this problem without melting your CPU.

TL;DR

The authors propose Monte Carlo online EM (MCoEM), a sequential learning algorithm that extracts reference templates from noisy, warped functional data. By processing observations one at a time and using a clever MCMC sampling trick, it achieves results comparable to state-of-the-art batch algorithms but at a fraction of the computational cost.

What Problem Does This Paper Address?

The goal is unsupervised template extraction. Imagine you have a pile of unlabeled images of digits. You want the computer to figure out that there are ten categories and then draw the "perfect" prototype for each.

The standard approach uses the Deformable Template Model. It assumes every observation is a "template" that has been subjected to a random "nuisance" deformation (like a rotation or a stretch) plus some noise. Mathematically, this is handled via the Expectation-Maximization (EM) algorithm.

The bottleneck? In these models, the "E-step" (calculating the expected deformation) is analytically intractable. Existing solutions like the Stochastic Approximation EM (SAEM) are "batch" algorithms—they have to look at the entire dataset at every single iteration. If you have high-dimensional data or a massive dataset, these algorithms become prohibitively slow.

Methods

The authors introduce MCoEM (Monte Carlo online EM). The "online" part means the algorithm updates its parameters as soon as a single new observation arrives, rather than waiting to process the whole batch.

The Key Innovations:

  1. Sequential Learning: It adapts the online EM framework to handle missing data that is "intractable."
  2. The Carlin and Chib Sampler: To handle the E-step, the authors use a Markov Chain Monte Carlo (MCMC) method based on the Carlin and Chib algorithm. This is a sophisticated way to sample from a "union of spaces." Since the algorithm doesn't know which class (e.g., which digit) an image belongs to, it simultaneously explores the deformation parameters for all possible classes using "pseudo-priors" to keep the simulation stable.
  3. Sufficient Statistics Tracking: Instead of re-processing old data, the algorithm maintains a running average of "sufficient statistics," allowing it to learn "on the fly."

Datasets

The authors validated their approach on two classic benchmarks:

  • Berkeley Growth Study: A dataset of growth velocity curves for 39 boys and 54 girls. The challenge here is "time-warping"—kids hit puberty at different ages, so the curves are shifted in time.
  • USPS Handwritten Digits: 16x16 pixel images of digits 0-9. This involves complex geometric deformations (rotations, scaling, and local stretching).

Key Insights and Ideas

  • Linearization of Batch EM: MCoEM can be viewed as a "linearization" of batch stochastic algorithms. It moves toward the solution much faster because it doesn't waste time perfecting the estimate for the current batch before seeing new data.
  • The "Aha" Moment on Efficiency: The computational gain is most dramatic when the "missing data" (the deformation) is high-dimensional. In the digit example, the deformation parameter is 78-dimensional. MCoEM handles this effortlessly while batch methods crawl.
  • Unsupervised Clustering: The model doesn't just find templates; it clusters. It can take a messy pile of growth curves and correctly separate "boy" templates from "girl" templates without being told which is which.

Key Results

The results highlight a massive speedup:

  • Speed: In a 10-hour experiment on digit images, the batch SAEM algorithm managed only 23 iterations. In the same time, MCoEM completed nearly 2,000 iterations.
  • Accuracy: MCoEM reached a low error rate (approx. 24%) in less than 20 minutes. The batch algorithm was still at the "initial noise" level (90% error) after 5 hours of computation.
  • Quality: Qualitatively, the templates produced by MCoEM are smoother and higher resolution because the algorithm can afford to perform many more updates.

Limitations and Future Work

  • Class Degeneracy: Like many mixture models, MCoEM risks "dropping" classes if they aren't initialized well. If a template starts too far from any real data, it might end up with a weight of zero and never recover. The authors suggest using k-means to provide a sane starting point.
  • Theoretical Convergence: While the algorithm works great in practice, a formal proof of convergence for this specific "noisy" online EM (combining MCMC and online updates) is still an open mathematical challenge.
  • Hyperparameter Tuning: The "step size" (how much the algorithm trusts new data vs. old data) and the MCMC length require careful tuning to ensure stability.

This paper is a significant step forward for researchers working with "Big Functional Data," offering a way to extract clean, usable prototypes from messy, warped datasets in a fraction of the time previously required.

Summary updated

BibTeX
@article{maire2017online,
  author = {Florian Maire and Eric Moulines and Sidonie Lefebvre},
  title = {{Online EM for functional data}},
  journal = {Comput. Stat. Data Anal.},
  year = {2017},
  doi = {10.1016/j.csda.2017.01.006},
}
Figure