arXiv:2610.17109cs.LGOct 2026

Manuscript Offprint

arXiv:2610.17109

Masked Diffusion for Travel Diaries Synthesis

Pascal Jutras-Dubé, Raziq Zaman, Fabian Bastin, Cinzia Cirillo, Ruqi Zhang

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Because household travel surveys combine household characteristics, variable-length person rosters, vehicle rosters, and trip chains, existing synthesis pipelines split them across separate models or flatten them into cropped fixed-length vectors. Representation, rather than modeling, becomes the bottleneck: splitting severs cross-segment dependence, and cropping truncates the household-structure distribution. We instead tokenize the diary and keep the object whole: each household-day becomes one token sequence with count tokens for vehicles, persons, and trips, and distinct symbols for padded, hidden, unobserved, and inapplicable positions. We introduce DiaryBridge, a masked diffusion model that bridges the fully hidden sequence to the distribution of complete diaries by unmasking positions in any order. One trained model, conditioned on any observed subset, performs synthesis and partial-diary completion alike. Experiments on real data extracted from the 2017/2018 Regional Travel Survey of the Baltimore region show that DiaryBridge generates travel reflecting vehicle availability and employment status, recovers shared trips using other household members' observed diaries, and better reproduces aggregate demand across modes, purposes, and departure periods than the learned baselines. The code is available at this repository.

1. Introduction

Household travel diaries are a primary input to activity- and agent-based travel demand models (Hörl and Balac, 2021; Felbermair et al., 2020), but they are costly to collect and increasingly affected by declining response rates. Synthetic diaries can complement them: to enlarge or rebalance a sample, to fill in items that respondents left unanswered, or to attach travel to a synthetic population. Downstream uses include demand modeling, equity analysis, and policy testing.

Population synthesis in transportation is usually framed as constructing households and persons that are consistent with aggregate controls at one or more geographic levels. Travel diary synthesis is harder: we must also generate the within-household and within-day organization of travel, including who travels, in what order, for what purposes, by which modes, at what times, with which household resources, and with whom. In raw household travel surveys, this object is neither a flat table nor a standard time series. It is a linked relational diary composed of household attributes, person rosters, vehicle ownership, and ordered person-day trip chains.

Most current pipelines still decompose the problem. Classical fitting, reweighting, and microsimulation methods can match household and person marginals, but they do not natively generate full daily diaries. Sequence models for activities and tours capture temporal order, but often leave household coupling and vehicle information outside the core model. Even when recent deep

∗^{*}Corresponding author.

Email address: pjutrasd@purdue.edu (Pascal Jutras-Dubé) generative methods are used, they often flatten the diary into one fixed vector with aggressive caps, making representation, rather than modeling, the main bottleneck.

Our starting point is therefore to separate the raw diary object from the model representation. We introduce a canonical encoding that writes each household-day as a single fixed-length sequence of tokens, where a token is one discrete value at one position of the record, for example the household's income category or the mode of a person's third trip. Explicit count tokens are introduced to record how many vehicles, persons, and per-person trips the household realizes. Because households differ in size, the sequence reserves room for a maximum number of vehicles, persons, and trips per person, and padding fills the slots that a household does not use, much as unused rows of a paper survey roster are left blank. Slots are padded rather than cropped away, so every household within these caps is represented exactly. Padding is not conflated with other kinds of absence: in survey terms, four distinct symbols separate unused roster capacity, values hidden for the model to generate, item nonresponse, and questions that do not apply.

This choice makes the modeling problem concrete. We learn DiaryBridge, a masked discrete diffusion model over the fixed-length structured encoding. During training, tokens are hidden (masked) at random and the model learns to restore them from the visible ones; at generation time, every token to be generated starts hidden and is revealed progressively. Formally, let XobsX_{obs} denote any observed subset of tokens and XmisX_{mis} denote the complement. The target is a single conditional sampler

pθ(Xmis∣Xobs),p_{\theta}(X_{\mathrm{m i s}}\mid X_{\mathrm{o b s}}),

which reduces to unconditional generation when Xobs=∅X_{\mathrm{obs}} = \emptyset or to diary completion when arbitrary fields are empty.

Two design decisions distinguish this formulation from applying an off-the-shelf generative model to a flattened table. First, the encoding mixes vocabularies: a token at a household-income position and a token at a departure-time position live in different value spaces. The encoding therefore factorizes the vocabulary by position, and legality constraints are enforced in both the training objective and the sampler. Second, the count tokens and the padding pattern are logically coupled: a sample that declares two household members must pad every person slot from the third onward. We resolve this coupling with a two-phase count-first sampling procedure that exploits the fact that masked diffusion can reveal positions in any order: the counts are generated first, the padding pattern implied by the counts is then written deterministically, and only the realized slots are generated afterwards. Generated diaries are therefore structurally consistent by construction, without a separate structure model and without post-hoc repair.

The contributions of the paper are:

  1. A canonical diary encoding that preserves household, vehicle, person, and ordered-trip structure, with explicit count tokens and a four-way distinction between padded, hidden, unobserved, and inapplicable positions, while remaining compatible with standard masked generative models.

  2. A masked discrete diffusion model over this encoding with position-factorized vocabularies enforced during training and sampling, and a count-first sampling procedure that guarantees the structural consistency of every generated diary.

  3. A travel-focused evaluation of household-day synthesis and completion, examining whether modes and purposes reflect vehicle availability and employment status, whether other members' diaries improve shared-trip recovery, and whether generated travel reproduces trip volumes and patterns for a given population. Comparisons with survey-reuse methods and learned generators also assess distributional fit, predictive utility, and record validity.

The remainder of the paper is organized as follows. Section 2 reviews related work. Section 3 introduces the canonical diary encoding, and Section 4 presents the diffusion model, legality masking, and the count-first sampler over it. Section 5 describes the 2017/2018 Regional Travel Survey data, the training protocol, and the comparison methods, and Section 6 reports the experiments and their results. Section 7 discusses limitations and concludes.

References (36)