Bayesian Automatic Relevance Determination for Utility Function Specification in Discrete Choice Models

Filipe Rodrigues, Nicola Ortelli, Michel Bierlaire, Francisco C. Pereira

TL;DR

The paper introduces DCM-ARD, a Bayesian framework that automates the tedious process of specifying utility functions in discrete choice models. By leveraging doubly stochastic variational inference, the method efficiently searches through exponentially large sets of variable transformations and interactions to discover high-performing, sparse model specifications that outperform manually crafted ones.

What Problem Does This Paper Address?

Discrete Choice Models (DCMs) are the standard tool for understanding how people make decisions—whether choosing a travel mode, a consumer product, or a career path. A critical but painful step in building these models is utility function specification: deciding which explanatory variables (like price or travel time) to include and in what form (e.g., linear, log-transformed, or interacted with demographic attributes).

Traditionally, researchers rely on a time-consuming cycle of trial-and-error, guided by domain expertise and statistical tests. However, as the number of potential variables and transformations grows, the search space becomes exponential, making it impossible to explore manually. This often leads to misspecified models, biased estimates, and missed insights into behavioral drivers.

Methods

The authors propose a purely data-driven approach called Bayesian Automatic Relevance Determination (ARD) tailored for DCMs.

  1. Hierarchical Priors: They place a Gaussian prior on each preference parameter. Crucially, each variable (or group of variables) is assigned its own variance hyper-parameter ($\lambda$). During training, the model pushes the variances of irrelevant variables toward zero, effectively "pruning" them from the utility function.
  2. Tied Parameters: To handle categorical variables or multi-dimensional representations (like one-hot encodings), the authors "tie" the variance parameters. This ensures the model selects or rejects an entire attribute group as a single unit, maintaining structural consistency.
  3. Doubly Stochastic Variational Inference (DSVI): Because exact Bayesian inference is mathematically intractable for these models, the authors developed a scalable DSVI algorithm. It combines variational inference (approximating the complex posterior with a simpler distribution) with stochastic optimization (using mini-batches of data and Monte Carlo sampling). This allows the model to scale to massive datasets and search spaces with thousands of dimensions.
Graphical model representation of the proposed DCM-ARD model. Nodes represent variables, and plates denote repetition across individuals (N), alternatives (C), and variables (Di).

Datasets

The framework was evaluated using the Swissmetro (SM) dataset, a well-known benchmark in the choice modeling community. It contains survey data from 1,188 individuals regarding their choice between three transportation modes: train, Swissmetro, and car.

The authors used two versions of this data:

  • Semi-artificial data: They generated synthetic choices based on manually defined "ground truth" utility functions to test if the model could accurately recover the known relevant variables.
  • Real choice data: They applied the model to the original survey responses to discover novel, high-performing specifications.

Key Insights and Ideas

  • Automated Sparsity: The ARD approach acts as a "soft" feature selector. Instead of a hard binary choice, it uses the data to determine the probability that a variable is relevant.
  • Scalability is Key: By using DSVI, the authors moved beyond the computational bottlenecks of previous Bayesian selection methods, making it feasible to test thousands of potential variable transformations (like Box-Cox or piecewise linear) simultaneously.
  • Group Selection: Tying variances is a clever adaptation for DCMs, ensuring that if a model decides "Age" is important, it includes all age-related parameters rather than just a random subset.
  • Generalization vs. Overfitting: The Bayesian framework naturally penalizes complexity. The results showed that DCM-ARD generalizes better to unseen data than standard maximum likelihood models, which tend to overfit when given too many input features.

Key Results

  • Perfect Recovery: In semi-artificial experiments, DCM-ARD recovered the "true" utility specifications almost perfectly, even when the search space was expanded to include 3,000 variables (including 2,000+ dimensions of pure Gaussian noise).
  • Outperforming the Experts: On real Swissmetro data, the automatically discovered specifications achieved higher log-likelihoods and better out-of-sample prediction accuracy than established models from the literature.
  • Efficiency: The DSVI algorithm proved highly efficient, converging in roughly 10 minutes for medium search spaces and about an hour for very large ones on standard consumer hardware.

Limitations and Future Work

  • Behavioral Realism: The authors acknowledge that a purely data-driven approach can sometimes produce "behaviorally unrealistic" results (e.g., a model suggesting that increasing travel cost makes a trip more attractive for a specific subgroup). The tool is intended to assist modellers, not replace the need for expert sanity checks.
  • Model Scope: The current implementation focuses on Multinomial Logit (MNL) models. The authors suggest that extending this to more complex structures, like Mixed Logit or Latent Class models, is a promising next step to better capture population heterogeneity.
  • Search Space Definition: The model can only select from the variables it is given. The initial "feature engineering" (deciding which transformations to test) still requires human input.

Summary updated

BibTeX
@article{rodrigues2019bayesian,
  author = {Filipe Rodrigues and Nicola Ortelli and Michel Bierlaire and Francisco C. Pereira},
  title = {{Bayesian Automatic Relevance Determination for Utility Function Specification in Discrete Choice Models}},
  journal = {IEEE Trans. Intell. Transp. Syst.},
  year = {2019},
  doi = {10.1109/tits.2020.3031965},
}
Figure