Jane Street intern finds flow matching beats DDPM for generative market data

Can you use autoregressive diffusion to generate market data?

A Jane Street summer intern built an autoregressive diffusion model to generate market data. The key challenge: market data is neither fully continuous nor discrete. DDPM diverged, so he switched to flow matching. He also introduced atom smoothing to handle spikes in distributions. The model produces realistic single events but degrades over longer rollouts. The project clarified the trade-offs between categorical and continuous modeling.

The headline result was that fully continuous diffusion did not lend itself to the jaggedness of real market data.
  1. armcat

    The real story here is this wonderful exposition in applying diffusion models to a time series data that is neither discrete nor continuous. It’s always fascinating to see diffusion models applied in different scenarios, same with diffusion language models.

  2. stult

    There is no model of the market that can remain stably accurate because the market will inevitably incorporate the insights of any model that is accurate until those insights are no longer accurate

  3. alexpotato

    There is a great line in the Man Who Solved The Market [0] about RenTech:

    Paraphrasing:

    "They went out of their way to try and fill in gaps in the historical market data. Over time, they got so good at predicting prices movements that they built algorithms to fill in the gaps."

    Highly recommend the book if you are interested in the history of algorithmic trading.

    0 - https://amzn.to/4jNFpOS

    0 -

  4. stratos123

    For more info on why flow-matching is more stable than DDIM, see Heitz 2023, which nicely explains how they're almost equivalent but DDIM corresponds to a differential equation with a 1/α term that diverges at the start of the denoising process, while flow-matching/IADB doesn't diverge: https://arxiv.org/abs/2305.03486

  5. arjie

    Remarkable internship. Fairly dense write-up too. Everything is informative.

    Amusing degree of detail, though it makes sense it’s targeted at future interns. Why would you expect order inter-arrival to be normal? Surely an order arriving sort of boosts the probability of others, Hawkes-like. A nice little trick to get students talking I suppose.

    Jane Street interns impressive as always.

More from this day

2026-10-10