Recursive Logit as the Proposal for Sampling Correlated Route Choice Sets

Models of how drivers pick routes face two problems at once. Routes that share roads are not independent alternatives, and the most behaviorally credible way to capture that sharing is to give routes on the same corridor a common random term. That makes the model path-based, so the analyst needs a set of candidate paths to compare. The full set of paths between two points is far too large to list, so researchers sample a few, and they must then correct the estimates for how the sampler favored some paths over others. The correction is known and works for plain logit models. The sampler it is usually paired with, a random walk tilted toward the shortest path, has two weaknesses. Its tuning is ad hoc, and it can give near-zero probability to the detour-laden path a GPS trace actually recorded.

This note proposes using a cheap, already-solvable model as the sampler: the recursive logit, which treats a route as a chain of link-by-link choices and can be computed by solving one linear system. Its sampling probability for any path is an exact product of link probabilities, including the observed one. It already roughly matches observed behavior, so it should waste few draws. We then estimate a richer path-level model, with shared corridor random terms and features that cannot be split across links, on small sampled choice sets corrected by these exact probabilities. The question is whether this makes shared-error models statistically sound and tractable on real networks, and whether they fit real data better than the best link-based model.

Core Claim

The proposal is a two-stage estimator. In stage one, fit a recursive logit by dynamic programming on the full network. In stage two, draw choice sets from that fitted model and estimate a subnetwork error-component logit with the importance sampling correction placed inside the integral over the shared random terms. We claim three things. First, the recursive proposal gives an exact, nonzero $q(i)$ for every path, which removes the observed-path inclusion problem and the Kumaraswamy tuning problem. Second, because the proposal is close to the target choice probabilities, the residual bias that comes from placing a logit sampling correction inside a mixture shrinks with far fewer sampled paths than under a shortest-path-biased walk. Third, the resulting correlated model fits held-out Borlänge trips better than the nested recursive logit with link size. This third claim is an empirical bet that we may lose.

Concretely, let $V_{in}$ be the systematic utility of path $i$ for traveler $n$ and $\delta_{is}$ indicate whether path $i$ uses subnetwork $s$. Let $\zeta_s \sim \mathcal{N}(0,\sigma_s^2)$ be the shared corridor term, $k_{in}$ the number of times path $i$ was drawn, and $q(i)$ its probability under the fitted recursive model. The estimated probability of the chosen path is

$$\hat P(i\mid \mathcal{C}_n)=\int \frac{\exp\big(V_{in}+\sum_s\delta_{is}\zeta_s+\ln(k_{in}/q(i))\big)}{\sum_{j\in\mathcal{C}_n}\exp\big(V_{jn}+\sum_s\delta_{js}\zeta_s+\ln(k_{jn}/q(j))\big)}\,f(\boldsymbol\zeta)\,d\boldsymbol\zeta ,$$

where the sampling probability is

$$q(i)=\prod_{(a\to b)\in i} p^{\text{RL}}(b\mid a).$$

Here $p^{\text{RL}}(b\mid a)$ is the fitted recursive-logit probability of moving from link $a$ to link $b$.

The correction is exact conditional on $\boldsymbol\zeta$. It is only approximate after integrating, because the true probability of drawing a given choice set depends on which path was chosen, and that choice depends on $\boldsymbol\zeta$. This gap is the technical heart of the project. The research file lists sampling correction for error-component models as untested (Gap 1), and we treat "does the naive in-integral correction suffice?" as an open question to measure, not something to assume.

Relation to Prior Work

The method is supplied by Sampling of alternatives for route choice modeling and Stochastic Path Generation Algorithm for Route Choice Models. Together they derive the $\ln(k/q)$ correction, propose the Kumaraswamy-biased random walk, and approximate path overlap by computing Path Size over a pooled "extended" sample. They test only plain and Path Size logit, and only on a 38-node, 170-path synthetic network and 40-link toy networks. We keep their correction and replace their sampler. We also replace the deterministic Path Size penalty with shared random terms.

The correlated target model comes from Capturing Correlation in Route Choice Models using Subnetworks. That paper attaches normal random terms to segments of Borlänge's R.50 and R.70 highways and finds that Path Size becomes insignificant once those terms are present. Its choice sets came from link elimination and shortest-path heuristics without any correction, so its estimates may carry sampling bias. We re-estimate the same specification with corrected sets.

The proposal distribution comes from the recursive logit described in A tutorial on recursive models for analyzing and predicting path choice behavior, which computes value functions from a linear system without listing any path. That tutorial also states the constraint that motivates us: recursive models must keep utility additive over links.

Two papers set the bar we must clear. A nested recursive logit model for route choice analysis captures correlation through link-specific scale parameters and reports that NRL with link size has the best in-sample fit and cross-validated test error on Borlänge. A misspecification test for logit based route choice models shows that the information matrix equality holds under sampled sets only with the correction applied, and that every tested model is strongly rejected on real Borlänge data. Those models are plain logit, Path Size logit, recursive logit, and recursive logit with link size. None of them included shared random terms with corrected sampling, which is the configuration we test.

The weight-pushing result in Fast Routing under Uncertainty and the dynamic-programming versus sampling contrast in Tackling Stackelberg Network Interdiction against a Boundedly Rational Adversary share our underlying observation. Link-level dynamic programming handles path explosion cheaply but restricts what the model can express. In the interdiction paper, sampling explicit paths gave better solutions: 45% versus 15% best-solution rate on 100-node graphs. We use dynamic programming to sample well, not to replace sampling.

Research Program

The first component is the sampler. We fit a link-additive recursive logit on the full graph. We then make it a defensive proposal: a mixture, with weight $\epsilon$, of the fitted transition probabilities and a flatter random walk, so that $q(i)$ is bounded away from zero for plausible detours. We draw paths by forward simulation. We handle cycles in one of two ways and compare them. One keeps them in the universal set and lets a loop penalty in the target model discount them. The other truncates and renormalizes $q$ exactly using the absorbing-chain structure.

The second component is estimation. We use simulated maximum likelihood over $\boldsymbol\zeta$ with the corrected kernel. The main study varies the number of sampled paths, from roughly 5 to 100, to trace how fast the integration-induced bias decays under each sampler. On the enumerable synthetic network we can also compute the exact likelihood with the true set-formation probability, which gives a ground truth for that bias. We also test a one-step refresh, in which the proposal is re-solved using the stage-two estimate of the link-additive part of utility, to see whether matching the proposal to the target reduces bias further.

The third component is diagnosis. We port the information matrix test to the corrected error-component model and ask whether shared random terms reduce the rejection that link size and Path Size could not remove.

Baselines

The naive reference point is the uncorrected error-component model on heuristic choice sets, which is the original subnetwork specification as published. On synthetic data its benchmark is the known size of uncorrected bias. Frejinger and colleagues report the scale parameter falling to 0.14 against a true value of 1.0 (Sampling of alternatives for route choice modeling). They also report the path-length coefficient estimated at −0.203 against a true −0.600 (Stochastic Path Generation Algorithm for Route Choice Models). Beating it means recovering parameters whose deviation from truth is statistically indistinguishable from zero.

The key ablation is the same corrected error-component model with the Kumaraswamy random walk as sampler, run with the same number of draws per observation and with its shape parameter $a$ given the same tuning budget we give $\epsilon$. Holding both the target model and the correction fixed isolates whether the recursive proposal itself matters. Beating it means lower root-mean-squared error in the parameters and lower bias at equal choice-set size, or equal accuracy with substantially fewer sampled paths.

The strongest existing method on real data is NRL with link size (A nested recursive logit model for route choice analysis), estimated on the same Borlänge trips and the same holdout splits, with the same link attributes. The file gives qualitative claims of best fit and lowest test error but no reported numeric log-likelihood for NRL-LS on Lacuna, so we will re-estimate it ourselves. Beating it means a lower average held-out log-likelihood loss on the same folds that is stable across folds, as the NRL paper reports for its own comparisons. We will also add a corrected Path Size logit on the recursive proposal, which tells us whether any gain comes from the sampler or from the random terms.

Why not just…?

Why not just use NRL-LS and skip sampling entirely? This is the real threat. NRL needs no choice set, captures some overlap, and is the best performer on Borlänge in the file. Its limits are structural. Utility must stay link-additive (A tutorial on recursive models). Correlation enters only through link scales, which the authors note are hard to identify alongside link size. And the closely related RL-LS is rejected by the information matrix test. Our Borlänge comparison settles this directly. If NRL-LS matches or beats the corrected error-component model on held-out likelihood, we will report that path-level shared errors do not pay their cost on this network, and that is a useful negative result.

Why not just put the $\ln(k/q)$ term inside the existing error-component model with the existing random walk? That is exactly our ablation baseline. It may work well enough if choice sets are large. The cases we expect it to fail are small sets, where the in-mixture correction is only approximate, and observed paths with detours that the shortest-path-biased walk almost never draws, which inflates the correction term. The synthetic sweep over set size and the per-observation spread of the correction terms measure both.

Why not just draw very large choice sets so the approximation stops mattering? Simulated likelihood for error components costs on the order of the number of paths times the number of $\boldsymbol\zeta$ draws per observation. The original subnetwork paper already flags Monte Carlo integration over large path sets as the bottleneck. We will report wall-clock time to reach a fixed parameter accuracy, which shows whether brute force is competitive.

Proposed Experiments

The first experiment uses the 38-node, 64-link synthetic network with 170 enumerable paths (Sampling of alternatives for route choice modeling). We impose two synthetic overlapping corridors with known $\sigma_s$, simulate 3,000 observations as in that paper, and estimate under the three samplers across choice-set sizes. Because the set is enumerable, we can compute the exact likelihood as ground truth. Metrics are bias, root-mean-squared error, 95% coverage of the corridor variances and the scale parameter, and the gap between the corrected-mixture and exact likelihoods. The decisive check is whether, under the recursive proposal, bias in $\sigma_s$ falls within sampling error at a set size where the Kumaraswamy sampler still shows significant bias. If the two curves coincide, the core claim fails.

The second experiment scales to synthetic grids of several thousand links, where enumeration is impossible. There we test whether recovery holds and how runtime grows.

The third experiment uses Borlänge, with 1,832 trips, more than 7,000 links, and the five R.50/R.70 subnetwork components. Access is by request to the original authors, and the file lists no public download. We compare held-out log-likelihood on common folds against NRL-LS, corrected Path Size logit, and the uncorrected error-component model, and we run the information matrix test on each. Success means a held-out gain over NRL-LS together with a weaker rejection. If neither appears, we conclude that the recursive proposal is a sound sampling tool but that the corridor error structure is not what the misspecification test is detecting.