arXiv Science⌕ Search

arXiv · 2611.29833

Computational Strategies for Mixed Logit Estimation Automatic Differentiation, GPU Computing, and Floating-Point Precision

Abstract

Mixed logit estimation can become computationally demanding as sample size and the dimension of preference heterogeneity increase. This study examines how derivative computation, processor choice and floating-point precision affect estimation time and parameter recovery across problem sizes. This paper provides a controlled benchmark, comparing finite differences (FD) with automatic differentiation (AD), central processing unit (CPU) execution with graphics processing unit (GPU) execution, and double-precision (FP64) with single-precision (FP32) arithmetic using Monte Carlo experiments that hold the data-generating process, simulation draws, optimiser, starting values, and objective function fixed across strategies. The results show that AD is the dominant source of acceleration. Combining AD with FP32 arithmetic provides further gains, while combining AD, GPU execution, and FP32 arithmetic delivers the largest speed improvements, particularly as sample size and model complexity increase. Our findings indicate substantial computational gains with broadly comparable parameter-recovery performance in the simulated settings considered.An empirical application in health preferences illustrates what extra empirical evidence and statistical benefit on model fit could be achieved, when researchers are made possible to estimate a richer, correlated preference specification. We provide an open sourced prototype to for model estimation with AD-FP32 strategy workflow that automatically detect hardware and provide the fastest estimation. Faster estimation can make richer random-coefficient specifications, larger simulation draw counts, bootstrap inference, multi-start optimisation, and robustness checks more feasible in applied choice modelling research.

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Hengzhe Zhao Jinhui Zhang Yuanyuan Gu. 2026-11-22. Computational Strategies for Mixed Logit Estimation Automatic Differentiation, GPU Computing, and Floating-Point Precision. https://arxiv.science/abs/2611.29833

Citations retain the original authors and DOI and include this site’s record URL. If this discovery service contributed to your research, you can also cite arXiv Science by Indiciae: BibTeX · RIS.

KEEP EXPLORING

Related papers

SULA: Robust Langevin Sampling via Drift-Diffusion Saturation

The unadjusted Langevin algorithm (ULA) and its stochastic-gradient variant, SGLD, are workhorses of modern Bayesian machine learning, but can be fragile when faced with a target distribution possessing a non-Lipschitz drift. In such settings, the conditional expected squared jump distance can grow rapidly, leading to numerical instability or the need for prohibitively small step-sizes. We propose the saturated unadjusted Langevin algorithm (SULA) that pairs a saturated gradient drift with a gradient-informed state-dependent diffusion, while preserving first-order consistency with the Langevin diffusion. The two coefficients are chosen so that the conditional expected squared jump distance is independent of the gradient. Under suitable conditions, we establish first-order weak convergence to the Langevin diffusion, geometric ergodicity of the discretized Markov chain for a fixed step-size, and an $O(h)$ bound on the invariant-measure bias for smooth test functions with polynomial growth. We also develop a stochastic-gradient variant, SG-SULA, using a gradient rescaling motivated by a Gaussian cumulative distribution function identity under Gaussian gradient noise. Numerical experiments demonstrate that SULA is less sensitive to the choice of step-size than existing Langevin discretizations on the targets considered, and that SG-SULA provides competitive predictive performance in Bayesian inference problems.

stat.CO↗

A generalized ensemble-marginalized Kalman filter for semilinear time-dependent PDEs with noisy boundary conditions

Uncertainty in boundary data is a major source of bias in PDE-constrained inverse problems, yet it is often neglected by treating measured boundary records as exact inputs. The ensemble-marginalized Kalman filter (EnMKF) removes this bias for linear parabolic problems with noisy boundaries by modeling boundary values as a linear Gaussian control, estimating them with a Kalman filter, and marginalizing their uncertainty from the prediction step. We extend this construction to semilinear time-dependent PDEs by exploiting time discretizations in which the boundary enters the discrete dynamics affinely, such as IMEX schemes that treat the linear part implicitly and the nonlinear reaction explicitly. For such discretizations the boundary uncertainty can still be marginalized one step at a time, yielding a deterministic covariance inflation term without any additional sampling. For second-order-in-time problems, the same per-step marginalization fails because the sensitivity of the discrete velocity to boundary errors scales like the inverse time step; we introduce an error-state EnMKF that propagates temporally correlated boundary-error realizations according to the innovations-form dynamics of the control Kalman filter. Parameter-dependent observation operators are treated by augmenting the ensemble with predicted observations and projecting the marginalization term into observation space. Numerical experiments on contaminant transport with nonlinear decay and on nonlinear cable vibration demonstrate reduced boundary-induced parameter bias, avoidance of ensemble collapse at small ensemble sizes, and improved state and flux estimates relative to standard ensemble Kalman filters.

stat.CO↗

Sub-Cauchy Sampling: Escaping the Dark Side of the Moon

We introduce a Markov chain Monte Carlo algorithm based on Sub-Cauchy Projection, a geometric transformation that generalizes stereographic projection by mapping Euclidean space into a spherical cap of a hyper-sphere, referred to as the complement of the dark side of the moon. We prove that our proposed method is uniformly ergodic for sub-Cauchy targets, namely targets whose tails are at most as heavy as a multidimensional Cauchy distribution, and show empirically its performance for challenging high-dimensional problems. The simplicity and broad applicability of our approach open new opportunities for Bayesian modeling and computation with heavy-tailed distributions in settings where most existing methods are unreliable.

stat.CO↗