betaFeedback

WorksMathematics

A unified interpretable choice modelling framework with non-linear utility functions

Abstract

Hybrid models that combine machine learning with random utility theory can learn non-linear utility functions from data while maintaining interpretability and behavioural consistency. However, hybrid modelling approaches in the literature predominantly rely on simple model structures and, to the best of our knowledge, no general, interpretable hybrid modelling frameworks exist that can be extended to arbitrary model structures. Building on previous work investigating non-linear utility functions with gradient boosting, we present here a general choice modelling framework. We describe a choice model by four components: the coefficient function; the aggregation function; the probability function; and the loss function. We then use this framework to compare linear-in-parameter models with hybrid Machine Learning (ML)–Discrete Choice Models (DCMs) and, in doing so, show how gradient boosting can model fully interpretable non-linear coefficient functions for any model with differentiable probability and loss functions. We show how the framework lets the modeller constrain the degree of smoothness, monotonicity, and convexity of the utility as required for different applications. Within this framework, we implement nine models: multinomial, mixed, nested, cross-nested, ordinal, latent class and dynamic logit models, binary probit model, and an integrated choice and latent variable model, testing four different functional forms of the utility for each model. We evaluate these models against conventional linear-in-parameters choice models on two real-world mode-choice datasets. The results show that gradient-boosted utility models achieve a lower test cross-entropy than linear-in-parameters baselines estimated with Biogeme in 35 of 36 comparisons. Finally, we find that smoother utilities consistently overfit less than those with discontinuities.

Highlights

  • Introduces a unified choice modelling framework based on gradient-boosted utilities

  • The framework extends to any choice model with a differentiable probability and loss function

  • We implement nine choice models within the framework

  • Boosted models beat linear-in-parameters baselines in 35 of 36 comparisons

  • Maintains interpretability with different degrees of smoothness in utility functions

Introduction

Discrete Choice Models (DCM) based on the random utility theory have been the standard tool for modelling individual choice behaviour for more than fifty years. Their advantages lie in interpretable parameters, behavioural consistency and robust estimation. However, these properties depend largely on a linear-in-parameters utility function that the modeller must specify. Over the past decade, a growing body of literature has combined flexible Machine Learning (ML) methods with DCMs to relax this linearity assumption.

The flexibility of hybrid ML–DCM approaches has been consistently shown to improve out-of-sample predictive performance relative to conventional linear-in-parameter choice models (see, e.g. Wang et al. [37]; Sifringer et al. [34]; Han et al. [15]; Wong and Farooq [39]; Salvadé and Hillel [31, 32]). In addition, they retain some degree of behavioural interpretability (typically via constraints on variable interactions in the model) compared to pure black-box ML classification models. Despite these advantages, we identify two general limitations across the body of existing work that hinder their widespread application for choice modelling:

  1. non-linearity is often achieved at the cost of a closed-form utility specification, such that the utility function is not observed over the full input space; and

  1. hybrid ML-DCM research has typically focused on simple model specifications based on the MultiNomial Logit (MNL), limiting the range of choice structures and behavioural constructs that can be implemented.

The former limitation - the absence of a closed-form utility function - means that consistent marginal effects cannot be observed directly from the model. This is problematic as these effects are used to compute key behavioural indicators such as the Willingness-to-Pay (WTP) and the Value of Time (VoT). Indeed, without a closed-form expression, only point elasticities can be approximated at data points, and their variations across the input space offer no guarantee of validity. The latter limitation - the over-reliance on an MNL-like model structure - similarly limits the capabilities of hybrid choice models. More complex choice constructs are necessary to accurately model complex behavioural phenomena, such as dynamic or ordinal choices, nested or cross-nested structures, distributed parameters or latent variables, and other assumptions on the error term. However, researchers have investigated these complex choice constructs only sporadically within hybrid ML-DCMs, highlighting the lack of a unified framework for representing complex behaviours in these models.

Among these hybrid approaches, the RUMBoost model family (Salvadé and Hillel, [31, 32]) keeps the utility function fully interpretable while improving predictive performance. Using an extension of the Gradient Boosting Decision Trees (GBDT) algorithm, the models output non-linear utility functions with a fully known functional form. They can also learn distributed parameters suitable for inference. Although the models have been applied to complex choice models such as the nested logit model or static models with distributed parameters in panel data, they have not been tested systematically on a wide variety of complex choice constructs.

This paper presents a novel choice modelling framework that covers both non-linear and linear-in-parameters utility functions that we use to derive a wide variety of choice models.

Our framework defines a choice model by four components: (i) the coefficient function, mapping how a feature enters the utility function; (ii) the aggregation function, combining the coefficients into the utility function; (iii) the probability function, mapping the utilities to choice probabilities following an assumption on the distribution of the error term; and (iv) the loss function, quantifying how much choice predictions differ from the ones observed in the data.

ML can learn the coefficient functions from the data, and it interacts with the other choice model components only through the derivatives of the loss function with respect to the coefficient function. Any model with a differentiable aggregation, probability and loss function can therefore be estimated with ML. In practice, we rely on GBDT because prior work demonstrated glass-box interpretability with closed-form functional expressions [31, 32]. This motivates our choice of GBDT in the framework. In theory, any gradient-based ML model can learn the coefficient functions. For instance, we could learn coefficient functions with Neural Network (NN)s, but they would not offer closed-form functional forms of the utility function.

The main contributions of this paper are:

  1. a unified choice modelling framework to automatically learn from the data non-linear utility functions, distributed parameters suitable for inference and variable interactions;

  1. implementations of nine DCMs within this framework: the MNL, MiXed Logit (MXL), Integrated Choice and Latent Variables (ICLV), Nested Logit (NL), Cross-Nested Logit (CNL), Ordinal Logit (OL), Latent Class (LC), Dynamic Logit (DL) and Binary Probit (BP) models. Among these models, the ICLV, CNL, LC, DL and BP implementations are novel to this work;

  1. a benchmark of four model variants obtained with the framework against a linear-in-parameter utility baseline estimated with Biogeme [8]; and

  1. an open source implementation of the framework using the JAX [11] Python library1.

Section 2 reviews related work and the RUMBoost model family. Section 3 then introduces the framework, and Section 4 shows how the nine models fit within it. Section 5 reports the empirical evaluation, and Section 6 discusses the results, their limitations and future work.

Background

Specification of utility functions in discrete choice models

While non-linearities in DCMs are possible, the modeller must introduce them. This time-consuming, cumbersome task cannot guarantee optimal transformations because of the size of the search space. Several studies have attempted to alleviate this issue by providing assisted specification of a choice model to be estimated through maximum likelihood estimation. Hillel et al. [19] use the output of a GBDT ensemble and Shiftan and Bekhor [33] use a Random Forest (RF) ensemble to specify box-cox transforms and variable interactions for an MNL. Salvadé and Hillel [29] use the output of a GBDT algorithm with linear trees to inform the thresholds of a piecewise linear MNL. In contrast, Ke et al. (2023) incorporate the potential thresholds directly into the maximum likelihood estimation. Paz et al. [28] use an optimisation framework to assist the specification of an MXL model. Furthermore, Hernandez et al. [16] use association rules and an RF algorithm to help specify a portfolio model, showing improved model fit. Finally, researchers also use more general approaches to specify a wider variety of choice models, including a variant of the neighbourhood search algorithm ([27]), a grammar-based approach ([40]), and reinforcement learning ([25, 26]). All of these studies attempt to identify an improved model specification for conventional choice models by exploring the search space through optimisation or machine learning. However, they rely on either prespecified model specifications or the modeller’s observation of non-linearities and variable interactions.

Hybrid ml–dcms

In contrast to assisted specification methods, researchers have applied restricted ML models to alleviate the rigid structure of discrete choice models and improve their flexibility and predictive performance. Most research focuses on deep learning. For instance, Wang et al. [37] use a Deep Neural Network (DNN) to learn alternative-specific utilities, and Sifringer et al. [34] use the L-MNL model to separate the utility function into an interpretable linear-in-parameter part for trip attributes, while feeding socio-demographic characteristics into a fully connected, black-box NN. The outputs of the two parts are then summed to obtain the deterministic utilities. Han et al. [15] extend this idea in TasteNet-MNL to learn distributed parameters from socio-demographic characteristics using NN, while Aouad and Désir [3] and Bagheri et al. [6] define a general framework for representing random utility models with NNs. Hernandez et al. [17] derive an economically consistent DCM using NN, and Yun et al. [41] apply a neural bayesian learning structure to learn DCMs. Das et al. [13] constrain the gradients of a NN so that the utility gradients are monotonic, and Wong and Farooq [39] learn cross-alternative effects using a ResNet model, deriving the ResLogit model.

Researchers have also experimented with other ML algorithms. For instance, Villarraga and Daziano [35] use a graph convolutional network to incorporate network structure within a DCM and Villarraga and Daziano [36] adapt Gaussian processes for DCM. Arkoudi et al. [4]; Baek and Khani; Wang et al. [38] all incorporate embeddings within DCMs. Using a Lattice Network, Kim and Bansal [22] learn partially monotonic non-linear utility functions, while Martín-Baos et al. [24] use generalised kernel logistic regression to learn hybrid choice models. Krueger and Daziano [23] use the Choquet integral to investigate pairwise variable interaction and Aboutaleb [1] learn non-linear utility functions using sum-of-squares polynomials. Finally, researchers also adapted GBDT for RUM with the RUMBoost model family ([30, 32]). The main difference among these methods is the level of constraints applied to the algorithm, i.e., feature interactions, monotonicity or shape constraints, and model structure (e.g., the possibility of alternative-specific features).

The RUMBoost model family

The RUMBoost model family can automatically learn a non-linear utility function and distributed parameters while providing a functional form for the utility function. The family comprises three models: (i) RUMBoost; (ii) Functional Effects Models (FEM); and (iii) Parametric Gradient Boosting (ParamBoost). The latter two models extend the first, with FEM learning distributed parameters by mapping socio-demographic characteristics to individual-specific trip parameters using an ensemble of regression trees, and ParamBoost outputting a non-linear utility function with a fully known functional form. Both models are obtained by boosting at the parameter level. The difference is that in FEM the authors split on socio-demographic characteristics to obtain individual-specific parameters, which will be multiplied by a trip attribute, while in ParamBoost, the authors split on the variable itself to obtain directly a, at most, cubic piece-wise utility function with degree of smoothness aa priori specified by the modeller.

In this paper, we present a unified choice modelling framework that automatically learns non-linear utility and distributed parameters from the data. § 4 presents the framework, and § 5 shows how the framework can generalise to a wide variety of choice models.

A framework for non-linear choice models

In this section, we define a choice model through four components (§ 4.1), describe how gradient boosting learns coefficient functions (§ 4.2), and show how to apply this approach to any differentiable choice models (§ 4.3). The MNL serves as a running example; every model in § 5 is obtained from it by changing one or more components. Figure 1 summarises the framework.

Diagram of the framework showing coefficient functions, aggregation function, probability function, and loss function for three alternatives with the MNL model structure

Figure 1. Diagram of the framework, assuming three alternatives with the MNL model structure as example.

Four components of a choice model

Coefficient function. The coefficient function ff defines how each feature enters the utility. In the MNL the function is linear:

fik(xk)=βikxk(1)f_{ik}(x_k) = \beta_{ik}x_k \tag*{(1)}

where βik\beta_{ik} is the parameter associated with feature kk in the utility of alternative ii, typically learnt through Maximum Likelihood Estimation (MLE). § 4.2 replaces the linear coefficients with non-linear functions learnt using ML methodologies.

Aggregation function. The aggregation operator H\mathcal{H} combines the contributions of individual features into the deterministic utility of each alternative ii:

Vi=H(fik(xk)).(2)V_i = \mathcal{H}\left(f_{ik}(x_k)\right). \tag*{(2)}

In random utility models, H\mathcal{H} is almost always a sum, although non-additive forms such as Cobb–Douglas utility functions exist [42]. The framework applies to any aggregation operator. However, all examples in this paper use additive aggregation, as is standard in the discrete choice literature. With additive aggregation and a linear coefficient function, this gives:

Vi=ASC⁡i+∑k=1Kβikxk,(3)V_i = \operatorname{ASC}_i + \sum_{k=1}^{K} \beta_{ik}x_k, \tag*{(3)}

where ASC⁡i\operatorname{ASC}_i is the alternative-specific constant of alternative ii and KK the number of features.

Probability function. The random utility is composed of the deterministic utility and an error term ε\varepsilon capturing measurement error and unobserved influences on choice:

Ui=Vi+εi.(4)U_i = V_i + \varepsilon_i. \tag*{(4)}

An individual chooses alternative ii if Ui≥UjU_i \ge U_j for all jj, such that

Pi=Pr⁡(εj−εi≤Vi−Vj ∀j≠i).(5)P_i = \Pr\left(\varepsilon_j - \varepsilon_i \le V_i - V_j\ \forall j \ne i\right). \tag*{(5)}

The assumed distribution of the differences of error terms defines the probability function. In the MNL, we assume that the error term is extreme value type I distributed, which gives the logistic, or softmax function:

Pi=eVi∑j=1JeVj,(6)P_i = \frac{e^{V_i}}{\sum_{j=1}^{J}e^{V_j}}, \tag*{(6)}

where JJ is the number of alternatives.

Loss function. The parameters are chosen to minimise a loss ℓ(P,y)\ell(P,y) that compares the predicted probabilities with the observed choices yy. While the framework can accommodate any differentiable loss function, for discrete choice models including the MNL we use the Cross-Entropy Loss (CEL):

L=1N∑n=1Nℓ(Pn,yn)=−1N∑n=1N∑j=1Jyjnln⁡Pjn,(7)\mathcal{L} = \frac{1}{N}\sum_{n=1}^{N}\ell(P_n,y_n) = -\frac{1}{N}\sum_{n=1}^{N}\sum_{j=1}^{J}y_{jn}\ln P_{jn}, \tag*{(7)}

where NN is the number of observations and yjn=1y_{jn}=1 if individual nn chose alternative jj and 00 otherwise. Minimising Eq. (7) is equivalent to MLE. CEL is the default metric reported for each model in § 6.

Learning coefficient functions with ML

Our generalised non-linear utility framework replaces the linear coefficients in Eq. (1) with non-linear functions learnt automatically through ML. Whilst the framework allows for any non-linear ML model estimated through gradient descent, including NNs, we focus here on models with intrinsic interpretability, where the full functional form is known over the possible range of input values. Specifically, we use gradient boosting to learn coefficients as (i) piece-wise polynomial functions (such that the coefficient is a function of the corresponding feature xkx_k), adopting the prior work of Salvadé and Hillel [32]; or (ii) individual-specific constants dependent on a respondent’s socio-demographic characteristics sn\mathbf{s}_n, adopting the prior work of Salvadé and Hillel [30].

Non-linear parametric coefficient functions

Classical black-box multinomial classification uses gradient boosting to learn an ensemble of decision trees FiF_i for each class ii as a function of all available features x\mathbf{x}. The ensemble outputs ziz_i are then used to compute class probabilities PiP_i via the softmax function. The split points and leaf values are learnt directly from the first- and second-order derivatives of the (cross-entropy) loss with respect to these outputs [14, 12] (Ke et al. 2017).

Instead, we adopt the methodology of ParamBoost [32] which learns an ensemble of regression trees for each coefficient, as a function of only the corresponding feature(s) xkx_k. By including polynomial transformations of xkx_k in the ensemble, this supports fully glass-box non-linear coefficient functions. We provide a brief overview of the core methodology, including monotonicity and shape constraints, below, and direct the reader to the full paper for further detail.

ParamBoost [32] presents a parametric ML formulation where the coefficient function of each feature is learnt as a piecewise polynomial of maximum degree DD over BB intervals using a gradient-boosted ensemble:

fik(xk)=∑b=1B∑d=0Dθikbdxkbd,(8)f_{ik}(x_k) = \sum_{b=1}^{B}\sum_{d=0}^{D}\theta_{ikbd}x_{kb}^{d}, \tag*{(8)}

with:

xk1=min⁡(xk,u1),xkb={0if xk<ub−1,xk−ub−1if ub−1≤xk<ub,ub−ub−1if xk≥ub,b=2,…,B,(9)x_{k1} = \min(x_k,u_1), \qquad x_{kb} = \begin{cases} 0 & \text{if } x_k < u_{b-1},\\ x_k-u_{b-1} & \text{if } u_{b-1} \le x_k < u_b,\\ u_b-u_{b-1} & \text{if } x_k \ge u_b, \end{cases} \qquad b=2,\ldots,B, \tag*{(9)}

where u1<⋯<uB−1u_1 < \cdots< u_{B-1} are the interval bounds (uB=∞u_B = \infty) and θikbd\theta_{ikbd} is the parameter associated with alternative ii, feature kk, interval bb and degree dd. In other words, each linear parameter βik\beta_{ik} in a linear-in-parameters DCM is replaced by up to B×DB \times D parameters, representing a piecewise polynomial function. In ParamBoost, the bounds (ubu_b) are determined automatically before model fitting, typically including the total number of intervals BB, but the modeller can also constrain them.

ParamBoost uses histogram-based GBDT: it discretises each feature into bins, whose edges serve as feasible values for the interval bounds ubu_b. At each boosting iteration, every bin edge of every feature and degree is a candidate split point. The split that most reduces the loss is selected, and all parameters θikbd\theta_{ikbd} on either side are updated with the corresponding leaf value, a constant representing the coefficient of the degree dd polynomial. This means that, at each iteration, only two leaf values need to be computed to update all parameters, unlike other gradient-based optimisation techniques, which require computing new values for each parameter.

A split on the degree-dd terms creates a difference in those terms between neighbouring intervals. Smoothness up to any required degree SS (i.e. CSC^{S}) can be enforced by disallowing splits on monomials of degree d≤Sd \le S and instead learning a single coefficient βikd\beta_{ikd} over the full input range for the corresponding feature. For example, a continuous (C0C^{0}) utility requires that the constant terms (d=0d = 0) are never split, since a split would introduce a discontinuous step at the split point. Combining the maximum degree DD with the smoothness level SS gives the family in Table 1, which contains RUMBoost (D=0D = 0, discontinuous) and the linear-in-parameters MNL (D=1D = 1 with a single parameter) as special cases. We denote a variant by ParamB-OD^{D}-CS^{S}, with C−1C^{-1} indicating a discontinuous function, and use the four variants in bold throughout the paper for conciseness. We choose these variants because they represent the full range of utility smoothness that ParamBoost can provide. Note that power or logarithmic transformations, commonly implemented in choice models through the Box–Cox transform, cannot be explicitly represented with ParamBoost, but similar functional forms can be approximated through piecewise cubic functions.

Cont.Max deg.0123
C−1C^{-1}RUMBoost (ParamB-O0^{0}-C−1^{-1})Disc. linearDisc. quadraticDisc. cubic (ParamB-O3^{3}-C−1^{-1})
C0C^{0}ConstantLinear splines (ParamB-O1^{1}-C0^{0})C0C^{0} quadraticC0C^{0} cubic
C1C^{1}–MNL/MXLQuadratic splinesC1C^{1} cubic
C2C^{2}––QuadraticCubic splines (ParamB-O3^{3}-C2^{2})

Table 1. Piecewise polynomial utility functions by maximum degree and continuity. The four variants used in this paper are in bold.

We can impose monotonicity and convexity constraints on each feature ([32]). In this paper, trip Level-of-Service (LoS) attributes, such as travel time and cost, are constrained to negative monotonicity, so an increase in the attribute always decreases utility. Where applicable (i.e., for the ParamB-O1^{1}-C0^{0}, ParamB-O3^{3}-C−1^{-1}, and ParamB-O3^{3} − C2^{2} models), we also constrain the coefficient functions for LoS attributes to be convex, so they have diminishing marginal disutility (§ 6.1).

Inter-individual heterogeneity

The non-linear coefficient functions in § 4.2.1 are shared across the whole population. To represent systematic heterogeneity as an alternative to mixture models, we instead generate individual-specific linear parameters βn\beta_n as a function of the socio-demographic characteristics sns_n, following the approach introduced by Han et al. [15], and extended to gradient-boosted utility models in Salvadé and Hillel [30]. The coefficient β\beta for alternative ii, feature kk and individual nn is given as a function of the socio-demographic characteristics sn\mathbf{s}_n,

βikn=fikβ(sn)(10)\beta_{ikn}=f_{ik}^{\beta}(\mathbf{s}_n) \tag*{(10)}

where fikβf_{ik}^{\beta} is an ensemble of regression trees. Monotonicity can be constrained through a ReLU transformation on the output, which ensures all βkn\beta_{kn} are strictly positive or negative as required:

βkn=±ReLU⁡(fkβ(sn))(11)\beta_{kn}=\pm\operatorname{ReLU}(f_k^{\beta}(\mathbf{s}_n)) \tag*{(11)}

Note that an ensemble can also output a utility term directly, fV(s)f^{V}(\mathbf{s}), as in RUMBoost, if the derivatives are computed in the utility space; § 5.4 uses this to learn a latent variable from the socio-demographic characteristics.

A unified choice modelling framework

The coefficient functions in § 4.2 are learnt to minimise a loss function. We adopt the approach introduced in Friedman [14] (see also Chen and Guestrin [12]; Ke et al. (2017) for modern implementations of the algorithm), which optimises both splits and leaf values from the first- and second-order derivatives of the loss ℓ\ell with respect to each ensemble output zz. Through application of the chain rule, this gives, for the first-order derivatives:

∂ℓ∂z=∂ℓ∂Pi∂Pi∂Vj∂Vj∂z,∀j=1,…,J.(12)\frac{\partial\ell}{\partial z}=\frac{\partial\ell}{\partial P_i}\frac{\partial P_i}{\partial V_j}\frac{\partial V_j}{\partial z},\quad\forall j=1,\ldots,J. \tag*{(12)}

And for the second-order derivatives, using the chain rule with the product rule:

∂2ℓ∂z2=∂2ℓ∂Pi2(∂Pi∂Vj)2(∂Vj∂z)2+∂ℓ∂Pi∂2Pi∂Vj2(∂Vj∂z)2+∂ℓ∂Pi∂Pi∂Vj∂2Vj∂z2,∀j=1,…,J.(13)\frac{\partial^2\ell}{\partial z^2}=\frac{\partial^2\ell}{\partial P_i^2}\left(\frac{\partial P_i}{\partial V_j}\right)^2\left(\frac{\partial V_j}{\partial z}\right)^2+\frac{\partial\ell}{\partial P_i}\frac{\partial^2P_i}{\partial V_j^2}\left(\frac{\partial V_j}{\partial z}\right)^2+\frac{\partial\ell}{\partial P_i}\frac{\partial P_i}{\partial V_j}\frac{\partial^2V_j}{\partial z^2},\quad\forall j=1,\ldots,J. \tag*{(13)}

Each term in Eq. (12) and Eq. (13) relates to one of the remaining components of our choice modelling framework: ∂Vj∂z\frac{\partial V_j}{\partial z} and ∂2Vj∂z2\frac{\partial^2V_j}{\partial z^2} are determined by the utility aggregation function; ∂Pi∂Vj\frac{\partial P_i}{\partial V_j} and ∂2Pi∂Vj2\frac{\partial^2P_i}{\partial V_j^2} are determined by the probability function; and ∂ℓ∂Pi\frac{\partial\ell}{\partial P_i} and ∂2ℓ∂Pi2\frac{\partial^2\ell}{\partial P_i^2} are determined by the loss function.2

Utility aggregation function. The restriction to additive aggregation function makes calculation of ∂Vj∂z\frac{\partial V_j}{\partial z} and ∂2Vj∂z2\frac{\partial^2V_j}{\partial z^2} straightforward, depending on how what zz represents. Table 2 summarises these derivatives by coefficient function type.

zz∂Vj∂z\frac{\partial V_j}{\partial z}∂2Vj∂z2\frac{\partial^2 V_j}{\partial z^2}
θjkbd\theta_{jkbd}(xkb)d(x_{kb})^d(xkb)2d(x_{kb})^{2d}
βjkn\beta_{jkn}xkx_kxk2x_k^2

Table 2. Aggregation function derivatives, with respect to coefficient function type.

Note that in the case that d=0d=0, both ∂Vj∂z=1\frac{\partial V_j}{\partial z}=1 and ∂2Vj∂z2=1\frac{\partial^2V_j}{\partial z^2}=1, simplifying to a utility (or functional) space GBDT algorithm.

Probability function. The use of a type 1 Extreme Value (EV) error term results in the mathematically convenient MNL probability function, where both ∂Pi∂Vj\frac{\partial P_i}{\partial V_j} and ∂2Pi∂Vj2\frac{\partial^2 P_i}{\partial V_j^2} have a simple form (Pi(1−Pi)P_i(1-P_i) and Pi(1−Pi)(1−2Pi)P_i(1-P_i)(1-2P_i) respectively if i=ji=j, PjPiP_jP_i and PjPiP_jP_i respectively if i≠ji\ne j). When an assumption on the error term does not yield closed-form expressions for the derivatives, automatic differentiation, as implemented in deep learning libraries such as PyTorch (Ansel et al., [2]) and Jax (Bradbury et al., [11]), can be used instead.

Loss function. Again, the use of the CEL function, akin MLE, leads to mathematically convenient derivatives, where ∂ℓ∂Pi=1Pi\frac{\partial\ell}{\partial P_i}=\frac{1}{P_i} and ∂2ℓ∂Pi2=−1Pi2\frac{\partial^2\ell}{\partial P_i^2}=-\frac{1}{P_i^2}. For other loss functions, we compute these derivatives analytically or using automatic differentiation.

Scalar parameters. The above analysis covers all parameters that are functions of input features. However, many choice models also rely on scalar parameters that are not functions of the features, e.g.: the nest parameters μ\mu and membership parameters α\alpha of nested and cross-nested logit models, the class shares π\pi of latent class models, the thresholds τ\tau of ordinal models, and the measurement-equation parameters of ICLV models. We achieve this by treating all observations as belonging to a single leaf node and calculating the leaf value using the first- and second-order gradients from Eq. (12) and Eq. (13). This is equivalent to a quasi-Newton method with a diagonal Hessian approximation. Note that these scalar parameters are updated sequentially at each boosting iteration; we first find the optimal split point and leaf values, add them to the coefficient functions accordingly, and then update the scalar parameters.

Variable interactions. While this paper does not directly demonstrate this, the framework can be used to automatically learn variable interactions while remaining interpretable up to two variable interactions. This is only limited to ParamB-O0^{0}-C−1^{-1}, but monotonicity interactions can still be incorporated.

Choice models within the framework

This section introduces eight additional choice model specifications within the framework, each obtained from the MNL of § 4.1 by changing one or more components. Table 3 summarises the changes. The models are ordered by how far they differ from the MNL: (i) a change to the utility structure only (§ 5.1); (ii) to the probability function only (§ 5.2); (iii) to both (§ 5.3); and (iv) two models whose linear-in-parameters versions rely on simulation and whose ParamBoost counterparts therefore differ from the baseline (§ 5.4). Unless stated otherwise, ParamBoost models use the coefficient functions of § 4.2 for every trip attribute, and the baselines use linear coefficients. These eight model formulations are not exhaustive; they are intended to show how the framework can be adapted and extended to varied model specifications. The framework and the implemented models are open source and freely available on GitHub3.

ModelFull nameComponent(s) changed relative to the MNLParamBoost-specific treatmentDataNew
DLDynamic LogitUtility: lagged-choice term–Swissmetro✓
BPBinary ProbitProbability: normal CDF of the utility difference–Swissmetro, binary✓
NLNested LogitProbability: nested GEV–Swissmetro
CNLCross-Nested LogitProbability: cross-nested GEV (μ\mu, α\alpha)–Swissmetro✓
OLOrdinal LogitUtility: single latent utility; probability: ordered logit (τ\tau)–Swissmetro, ordered
LCLatent ClassUtility: class-specific; probability: mixture over classes (π\pi)–Swissmetro✓
MXLMiXed LogitCoefficients: random; loss: simulatedCoefficients learnt as functional effects; no simulationSwissmetro
ICLVIntegrated Choice and Latent VariablesUtility: latent variable; loss: joint with measurement model, simulatedLatent variable learnt as a functional effect; no simulationOptima✓

Table 3. How each choice model departs from the MNL, and how its ParamBoost counterpart differs from the linear-in-parameters baseline.

Changing the utility structure: dynamic logit

Dynamic logit. Dynamic models describe sequential choices by capturing changes in the decision process over time [10]. We formulate here a first-order Markov model, where the choice at time tt depends additionally on the previous choice at time t−1t-1, representing myopic behaviour without agent effects:

Vint=ASCi+∑k=1Kfik(xknt)+ηiyin,t−1,(14)V_{int} = \mathrm{ASC}_i + \sum_{k=1}^{K} f_{ik}(x_{knt}) + \eta_i y_{in,t-1}, \tag*{(14)}

where yin,t−1=1y_{in,t-1}=1 if individual nn chose alternative ii in choice situation t−1t-1 and 00 otherwise. We assume the previous choice captures the correlation between repeated choices of the same individual, so the error term is independent over tt and the probability function and loss are those of the MNL, Eq. (6) and Eq. (7). Because yy is binary, any learnt function of it reduces to a constant shift, so the boosted and linear versions differ only in the coefficients of the trip attributes. In ParamBoost, η\eta is computed the same way as for binary variables, using an ensemble of regression trees of degree d=0d=0 (since any degree d>0d>0 provides the same information for a binary variable).

Changing the probability function: binary probit, nested, cross-nested and ordinal logit

Binary probit. A binary probit model models binary outcomes and assumes the error term is normally distributed. Assuming normally distributed error terms changes only the probability function. For two alternatives, let V=V1−V2V=V_1-V_2 be the utility difference and normalise the variance of the error difference to one. Then

P1=Φ(V),(15)P_1 = \Phi(V), \tag*{(15)}

where Φ\Phi is the standard normal cumulative distribution function. With the binary form of Eq. (7), the derivative needed in Eq. (12) is:

∂Pn∂Vn=ϕ(Vn)Φ(Vn)(16)\frac{\partial P_n}{\partial V_n} = \frac{\phi(V_n)}{\Phi(V_n)} \tag*{(16)}

and in Eq. (13) is:

∂2Pn∂Vn2=Vnϕ(Vn)Φ(Vn)−ϕ(Vn)2Φ(Vn)2(17)\frac{\partial^2 P_n}{\partial V_n^2} = \frac{V_n\phi(V_n)\Phi(V_n)-\phi(V_n)^2}{\Phi(V_n)^2} \tag*{(17)}

where ϕ\phi is the standard normal density function.

Nest­ed logit. Nested logit models relax the independence of the MNL error terms by grouping correlated alternatives into nests. With MM nests whose nest parameters are μm≥1\mu_m \ge1, the probability of choosing alternative ii in nest mm is:

Pi=eμmVi∑j∈meμmVjeV~m∑p=1MeV~p,V~m=1μmln⁡∑j∈meμmVj.(18)P_i = \frac{e^{\mu_m V_i}}{\sum_{j\in m} e^{\mu_m V_j}} \frac{e^{\widetilde{V}_m}}{\sum_{p=1}^{M} e^{\widetilde{V}_p}}, \qquad\widetilde{V}_m = \frac{1}{\mu_m}\ln\sum_{j\in m}e^{\mu_m V_j}. \tag*{(18)}

The nest parameters μm\mu_m are learnt as scalar constants, as described in § 4.3.

Cross-nested logit. Cross-nested logit models extend nested logit models by letting an alternative belong to several nests, with a degree of membership αim∈[0,1]\alpha_{im} \in[0,1] of alternative ii to nest mm. Defining Ym=∑j∈mαjmμmeμmVjY_m = \sum_{j\in m}\alpha_{jm}^{\mu_m}e^{\mu_m V_j}, the choice probability sums over nests:

Pi=∑m=1MαimμmeμmViYmYm1/μm∑p=1MYp1/μp.(19)P_i = \sum_{m=1}^{M}\frac{\alpha_{im}^{\mu_m}e^{\mu_m V_i}}{Y_m}\frac{Y_m^{1/\mu_m}}{\sum_{p=1}^{M}Y_p^{1/\mu_p}}. \tag*{(19)}

The nest parameters μm\mu_m and degree of membership αim\alpha_{im} are learnt as scalar constants, as described in § 4.3.

Ordinal logit. Ordinal logit models are used for ordered categorical outcomes with unknown distance between categories. They model ordered categorical responses for a single alternative, such as Likert-scale questions or star ratings. As such, they compare a single latent utility against thresholds for each ordinal category. Let y∗=V+εy^* = V + \varepsilon, where VV is now the only deterministic utility and ε\varepsilon follows a standard logistic distribution. Thresholds τ1<⋯<τJ−1\tau_1 < \cdots< \tau_{J-1} partition the latent continuous space into JJ ordered categories, and

Pr⁡(y∗>τj)=σ(V−τj)=11+e−(V−τj),j=1,…,J−1,(20)\Pr(y^* > \tau_j) = \sigma(V-\tau_j) = \frac{1}{1+e^{-(V-\tau_j)}}, \qquad j=1,\ldots,J-1, \tag*{(20)}

from which the category probabilities follow:

P1=1−σ(V−τ1),Pj=σ(V−τj−1)−σ(V−τj),j=2,…,J−1,PJ=σ(V−τJ−1).(21)\begin{aligned} P_1 &= 1-\sigma(V-\tau_1),\\ P_j &= \sigma(V-\tau_{j-1})-\sigma(V-\tau_j), \qquad j=2,\ldots,J-1,\\ P_J &= \sigma(V-\tau_{J-1}). \tag*{(21)} \end{aligned}

The aggregation operator thus produces one utility per observation; the probability function becomes Eq. (21), and the loss remains Eq. (7). Thresholds are learnt as scalar constants, as described in § 4.3

Changing aggregator and probability functions: latent class

Latent class. Latent class models describe discrete preference heterogeneity: the population consists of classes with different utility functions. With CC classes, the modeller specifies utilities VcjV_{cj} for every class cc and alternative jj, which may contain different features and parameters. The aggregation function becomes:

Vcj=∑k=1Kδckfcjk(xk)(22)V_{cj} = \sum_{k=1}^{K} \delta_{ck} f_{cjk}(x_k) \tag*{(22)}

where δcj\delta_{cj} is the Kronecker delta function, indicating whether the coefficient function of variable kk affects the utility function of alternative jj for people in class cc. The probability function becomes a combination

Pi=∑c=1CπcPci,Pci=eVci∑j=1JeVcj,∑c=1Cπc=1(23)P_i = \sum_{c=1}^{C} \pi_c P_{ci}, \qquad P_{ci} = \frac{e^{V_{ci}}}{\sum_{j=1}^{J} e^{V_{cj}}}, \qquad\sum_{c=1}^{C} \pi_c = 1 \tag*{(23)}

where πc\pi_c is the probability of belonging to class cc. The loss is given by Eq. (7). Again, πi\pi_i are learnt as scalar parameters, as described in § 4.3.

Inter-individual heterogeneity through functional effects: mixed logit and ICLV

The linear-in-parameters MXL model relaxes the i.i.d. assumption of the MNL by representing unobserved heterogeneity with random terms. ICLV models, by contrast, include unobserved random latent variables anchored using psychometric indicators in the utility function. Both models lack a closed-form probability function, so they must be integrated out for estimation, e.g., by Monte Carlo simulation. Their ParamBoost counterparts replace these random terms with deterministic functions of socio-demographic characteristics, learnt as functional effects (§ 4.2). They therefore capture systematic rather than random heterogeneity and are not mixture models in the strict sense; we keep the names MXL and ICLV to indicate the baseline models they are compared with. The ParamBoost versions of these choice models require no simulation because there are no random values to integrate.

Mixed logit. MXL models include random coefficients βil=βˉil+σilξ\beta_{il} = \bar{\beta}_{il} + \sigma_{il}\xi with ξ∼N(0,1)\xi\sim\mathcal{N}(0, 1), and

Vi=ASCi+∑k=1Kβikxk+∑l=1L(βˉil+σilξ)xl(24)V_i = \mathrm{ASC}_i + \sum_{k=1}^{K} \beta_{ik}x_k + \sum_{l=1}^{L}(\bar{\beta}_{il} + \sigma_{il}\xi)x_l \tag*{(24)}

where kk indexes features with fixed coefficients and ll features with random coefficients. Conditional on ξ\xi, the model is an MNL, and the loss integrates the logit probability over the distribution of ξ\xi. Using Monte-Carlo simulation, we have:

L=−1N∑n=1N∑j=1Jyjnln⁡∫Pjn(ξ) ϕ(ξ) dξ≈−1N∑n=1N∑j=1Jyjnln⁡(1R∑r=1RPjn(ξr))(25)\mathcal{L} = -\frac{1}{N}\sum_{n=1}^{N}\sum_{j=1}^{J} y_{jn}\ln\int P_{jn}(\xi)\,\phi(\xi)\,\mathrm{d}\xi\approx-\frac{1}{N}\sum_{n=1}^{N}\sum_{j=1}^{J} y_{jn}\ln\left(\frac{1}{R}\sum_{r=1}^{R}P_{jn}(\xi_r)\right) \tag*{(25)}

where the approximation uses RR draws ξr\xi_r from N(0,1)\mathcal{N}(0, 1).

In the ParamBoost version, the random parameters are functional effects of the socio-demographic characteristics s\mathbf{s}:

Vi=ASCi+∑k=1Kfik(xk)+∑l=1Lfilβ(s)xl,(26)V_i = \mathrm{ASC}_i + \sum_{k=1}^{K} f_{ik}(x_k) + \sum_{l=1}^{L} f_{il}^{\beta}(\mathbf{s})x_l, \tag*{(26)}

where fikf_{ik} are the piecewise polynomial coefficients of Eq. (8) and filβf_{il}^{\beta} the parameter-space ensembles of Eq. (10). Since Eq. (26) is deterministic, the probability function and loss are those of the MNL, and heterogeneity is described by the empirical distribution of fβ(s)f^{\beta}(\mathbf{s}) over individuals (§ 6.3.3).

Integrated choice and latent variable model. ICLV models include unobserved latent variables in the utility function, derived from a structural equation and anchored using psychometric indicators. Without loss of generalisability, assuming one latent variable, the structural equation links OO socio-demographic characteristics to the latent variable:

Xn∗=∑o=1Oλoson+ωn,ωn∼N(0,1),(27)X_n^* = \sum_{o=1}^{O} \lambda_o s_{on} + \omega_n,\qquad\omega_n \sim\mathcal{N}(0,1), \tag*{(27)}

and QQ measurement equations anchor it to attitudinal indicators,

Iqn∗=αq+δqXn∗+ζqn,ζqn∼N(0,σq2),q=1,…,Q.(28)I_{qn}^* = \alpha_q + \delta_q X_n^* + \zeta_{qn},\qquad\zeta_{qn} \sim\mathcal{N}(0,\sigma_q^2),\qquad q=1,\ldots,Q. \tag*{(28)}

The indicators are observed on a TT-point Likert scale, Iqn=tI_{qn}=t if τq,t−1<Iqn∗≤τq,t\tau_{q,t-1}<I_{qn}^*\leq\tau_{q,t}, with τq,0=−∞\tau_{q,0}=-\infty and τq,T=∞\tau_{q,T}=\infty, which gives the ordered probit probabilities

Pr⁡(Iqn=t∣Xn∗)=Φ(τq,t−αq−δqXn∗σq)−Φ(τq,t−1−αq−δqXn∗σq).(29)\Pr(I_{qn}=t\mid X_n^*) = \Phi\left(\frac{\tau_{q,t}-\alpha_q-\delta_qX_n^*}{\sigma_q}\right) - \Phi\left(\frac{\tau_{q,t-1}-\alpha_q-\delta_qX_n^*}{\sigma_q}\right). \tag*{(29)}

The utility jj becomes Vjn=ASCj+∑kβjkxkn+βLVXn∗V_{jn}=\mathrm{ASC}_j+\sum_k\beta_{jk}x_{kn}+\beta_{\mathrm{LV}}X_n^*, and, conditional on Xn∗X_n^*, the choice probability P(in∣Xn∗)P(i_n\mid X_n^*) is the MNL probability as in Eq. (6). The likelihood of observation nn is the joint probability of the choice and the indicators, integrated over ω\omega and approximated with RR draws:

ℓn=∫P(in∣Xn∗)∏q=1QPr⁡(Iqn∣Xn∗)ϕ(ω) dω≈1R∑r=1RP(in∣Xnr∗)∏q=1QPr⁡(Iqn∣Xnr∗),(30)\ell_n = \int P(i_n\mid X_n^*)\prod_{q=1}^{Q}\Pr(I_{qn}\mid X_n^*)\phi(\omega)\,\mathrm{d}\omega\approx\frac{1}{R}\sum_{r=1}^{R}P(i_n\mid X_{nr}^*)\prod_{q=1}^{Q}\Pr(I_{qn}\mid X_{nr}^*), \tag*{(30)}

where Xnr∗X_{nr}^* is obtained with Eq. (27) evaluated at draw ωr\omega_r. The loss is L=−1N∑nln⁡ℓn\mathcal{L}=-\frac{1}{N}\sum_n\ln\ell_n. In the ParamBoost version, the structural equation, Eq. (27), is replaced by a utility-space ensemble:

Xn∗=fV(sn),(31)X_n^* = f^V(\mathbf{s}_n), \tag*{(31)}

such that the latent variable is deterministic. The measurement equations, Eq. (28)–Eq. (29) still hold, and anchor the latent variable. Because there is no simulation, the likelihood reduces to ℓn=ln⁡(P(in∣Xn∗)∏qPr⁡(Iqn∣Xn∗))\ell_n=\ln\left(P(i_n\mid X_n^*)\prod_q\Pr(I_{qn}\mid X_n^*)\right). Therefore, the gradients used to learn the latent variable are composed of two summed parts: (i) the loss on the choices; and (ii) the loss on the QQ measurement equations. Finally, since the ensemble output is already in the utility space, we don’t estimate βLV\beta^{LV} for ParamBoost.

Empirical evaluation

Experimental setup

Data. We use the Swissmetro ([9]) and Optima ([7]) datasets and adapt the examples given on the Biogeme ([8]) website4 to the different choice models. Table 4 lists the features and dataset summary statistics. We use the Swissmetro dataset for all models except ICLV, which requires attitudinal indicators available in the Optima dataset.

SwissmetroOptima
Trip attributesTravel time<br>CostTravel time<br>Cost<br>Distance
Socio-demographic characteristicsGender<br>First class seat<br>Purpose of the trip<br>Age categoryManager<br>Car-oriented parents<br>High education degree<br>Low education degree<br>Used to go to school by car
Observations9036889
AlternativesTrain, Swissmetro, carCar, public transport, slow modes

Table 4. Datasets and features.

Two models use modified versions of Swissmetro: (i) for the OL model, the three alternatives are treated as ordered categories, purely for illustration, using only the train cost and travel time as input features; and (ii) for the BP model, we remove observations choosing the Swissmetro alternative to obtain a binary choice between train and car. Table 5 summarises the key modelling decisions for all models.

ModelFull nameKey modelling decisions
MNLMultiNomial LogitAlternative-specific parameters for travel time and cost features with ASCs (Swissmetro ASC normalised to 0)
DLDynamic LogitPrevious choice omitted when missing. Swissmetro choice normalised to 0
BPBinary ProbitBinary dataset with train and car alternatives only
NLNested LogitNest for train and car (existing alternatives)
CNLCross-Nested LogitNest for train and car (existing alternatives) and for train and Swissmetro (public transport)
OLOrdinal LogitOnly using train travel time and cost for illustration
LCLatent ClassOnly cost in class 1 utility, cost and travel time in class 2 utility
MXLMiXed LogitTravel time parameters are random
ICLVIntegrated Choice and Latent VariablesCar loving latent variable in the car utility

Table 5. Summary of key modelling decisions for each model. Unless stated otherwise, every model uses the same utility structure as the MNL.

Features and constraints. All trip LoS attributes are constrained to decrease utility and, where applicable, to be convex, so that a given increase in an attribute has a stronger effect at low values than at high values. However, we do not apply these constraints for the OL model, since the ordering of its response is artificial and domain knowledge is irrelevant in this case. We use socio-demographic characteristics only in the ICLV models and in the ParamBoost MXL models.

Models and estimation. For every choice model, we compare the four ParamBoost variants in bold in Table 1 (ParamB-O0\mathrm{O}^{0}-C−1\mathrm{C}^{-1}, ParamB-O1\mathrm{O}^{1}-C0\mathrm{C}^{0}, ParamB-O3\mathrm{O}^{3}-C−1\mathrm{C}^{-1}, and ParamB-O3\mathrm{O}^{3}-C2\mathrm{C}^{2}) with a linear-in-parameters baseline estimated with Biogeme ([8])5. Baselines that require simulation (MXL and ICLV) use 500 draws generated with modified Latin hypercube sampling ([18]). For the ParamBoost models, we select the number of boosting iterations by 5-fold cross-validation, with at most 3000 iterations and early stopping after 100 iterations without improvement. All other hyperparameters are set to their default values (Section Appendix A).

Evaluation. We split each dataset into a training set with 70% of the observations and a test set with the remaining 30%. We split at the individual level, so repeated choices of the same individual never appear in both sets. We report the mean CEL (Eq. (7)) on the test set. This means we do not report the contribution of the measurement equations for the ICLV.

Predictive performance

Table 6 reports the test CEL of all models; training and test values are given in Section Appendix B. We observe four main findings.

ModelParamB-O0O^{0}-C−1C^{-1}ParamB-O1O^{1}-C0C^{0}ParamB-O3O^{3}-C−1C^{-1}ParamB-O3O^{3}-C2C^{2}LinearΔ\Delta
Multi-class classification on the Swissmetro dataset
MNL0.79110.79240.79090.79240.81190.0210
DL0.72270.72670.72210.72830.74480.0227
NL0.79500.79610.79460.79620.81200.0174
CNL0.79250.79360.79230.79380.81280.0205
LC0.78750.79420.83540.79560.81070.0232
MXL0.80070.81320.80490.81100.82060.0199
Binary classification on the Swissmetro dataset
BP0.36270.36520.36070.37870.46760.1069
Ordinal classification on the Swissmetro dataset
OL0.85360.84770.85400.84320.86270.0195
Multi-class classification on the Optima dataset
ICLV0.50050.48220.49020.50470.55880.0766

Table 6. Test CEL (lower is better). The best value for each model is in bold; Δ\Delta is the improvement of the best ParamBoost variant over the linear-in-parameters baseline.

First, across comparable model structures (i.e., a multi-class classification task on the Swissmetro dataset), the best model structures are DL and LC. While the DL model structure incorporates more information from previous choices, the LC model structure uses the same amount of information as the MNL. This is a solid motivation for alternative model structures not yet implemented in most ML libraries. The LC model is also the only one that improves on the MNL for the linear-in-parameters baseline, so the performance is consistent with linear-in-parameter variations. This means that where linear-in-parameter model structures improve predictive performance, the ParamBoost counterpart also improves performance compared to a classical MNL. See, e.g. [31 b] for examples where the NL and MXL model structures improve on the MNL model structure using the framework.

Second, boosted utilities consistently improve prediction. In 35 of the 36 comparisons between a framework variant and its linear-in-parameters baseline, the ParamBoost model has the lower test CEL. For the ICLV, the best variant improves on the baseline by 0.077; for the BP, the improvement is 0.107; and for the seven other Swissmetro models, the improvement ranges from 0.017 to 0.023. ParamB-O3O^{3}-C−1C^{-1} in the LC model is the only exception, as it does not improve over the baseline. Since this variant is the least restricted ParamBoost variant, it suffers from numerical instability during training. It converges to a class share far from those of the other models (Section Appendix D). In contrast, the ParamB-O0O^{0}-C−1C^{-1} LC model is numerically stable and outperforms the MNL model.

Third, the degree and continuity of the utility matter for some models but not as much for others. For the MNL, NL and CNL, the four variants lie within 0.002 of each other, and within 0.006 for the DL; on a single train–test split, these differences are too small to pick a variant as the best one confidently. For the OL, MXL, BP, ICLV and LC models the spread is larger, from 0.011 to 0.048, but no variant dominates: the smoothest, ParamB-O3O^{3}-C2C^{2}, is best for the OL but worst for the BP; ParamB-O1O^{1}-C0C^{0} is best for the ICLV; and ParamB-O0O^{0}-C−1C^{-1} is best for the MXL and LC. Smooth utilities help most where: (i) there are no shape or monotonicity constraints, as in the OL model; and (ii) the dataset is smaller, as in the Optima dataset for the ICLV model.

Finally, smoother utilities overfit less. As seen in Table B.2 in Section Appendix B, among the ParamBoost variants, ParamB-O3O^{3}-C2C^{2} has the smallest gap between training and test CEL in seven of the nine models (all except the LC and BP), and in seven of the nine, the two discontinuous variants have the largest gaps. In the MNL, for instance, the gap is 0.040 for ParamB-O3O^{3}-C2C^{2} against 0.066 for both discontinuous variants. On Optima, the test CEL is lower than the training CEL for ParamB-O1O^{1}-C0C^{0}, ParamB-O3O^{3}-C2C^{2} and the linear ICLV, which more likely reflects the small test set (about 270 observations) than a systematic effect.

Behavioural interpretation

We provide an in-depth analysis of the parameters for MNL, DL, MXL, OL, and ICLV in the main body of this paper. Other parameters appear in Section Appendix C, while structural parameters appear in Section Appendix D for conciseness.

Learnt attribute effects

Figure 2 shows the learnt utility contributions of travel time and cost in the MNL. In regions with many observations, the four ParamBoost variants behave similarly. They differ at extreme values, where data are sparse, and the continuity constraints force smoother extrapolation. Combined with the shape and monotonicity constraints, the non-linear utilities exhibit diminishing marginal disutility. In contrast, the linear-in-parameters MNL must extrapolate linearly and assigns very large disutilities to long or expensive trips. The NL, CNL, DL, LC and BP models show the same pattern and are shown in Section Appendix C. All utility functions respect the monotonicity and shape constraints.

Utility contributions of the trip attributes in the MNL, by alternative and model

Figure 2. Utility contributions of the trip attributes in the MNL, by alternative and model. Travel time is in hours and cost in CHF. Figures are cropped at the 95th percentile of the feature, while its distribution is shown above the x-axis.

On Optima (Figure 3), travel times for car and public transport exhibit relatively low non-linearity for all ParamBoost variants, except for ParamB-O1O^{1}-C0C^{0}. Costs, in contrast, show a sharp initial decrease followed by a plateau for most variants, unlike the linear ICLV. The distance effect for slow modes is almost linear for ParamB-O3O^{3}-C2C^{2}, close to the linear ICLV, whereas the other variants flatten or increase more slowly beyond 100km. This difference may contribute to ParamB-O3O^{3}-C2C^{2}’s weaker test performance in ICLV.

Utility contributions of the trip attributes in the ICLV (Optima), by model, and distribution of the latent variable

Figure 3. Utility contributions of the trip attributes in the ICLV (Optima), by model, and distribution of the latent variable (panel f). Travel time is in hours, cost in CHF and distance in km. Figures are cropped at the 95th percentile of the feature, while its distribution is shown above the x-axis.

Utilities without shape constraints

The OL model is estimated without monotonicity or convexity constraints, i.e. without regularisation. Figure 4 shows that, without them, the discontinuous variants can fit the training data too closely, while the smooth variants recover more regular effects. This is consistent with the second and third findings of § 6.2: smoothness matters most when no shape constraints are imposed, and in that setting ParamB-O3O^{3}-C2C^{2} generalises best. The figure also shows the flexibility that the non-linear models gain over the linear-in-parameters OL.

Utility contributions in the OL for train travel time and cost

Figure 4. Utility contributions in the OL, estimated without shape constraints. Travel time is in hours and cost in CHF. Figures are cropped at the 95th percentile of the feature, while its distribution is shown above the x-axis.

Preference heterogeneity

Figure 5 shows, for the MXL, the population distributions of the travel-time parameters and the utility contributions of cost. The cost effects are very similar to those of the MNL. The baseline MXL has a more negative mean travel-time parameter than all ParamBoost variants. The ParamBoost distributions are roughly bell-shaped, and the variants with a higher maximum degree have slightly less negative means. All travel-time parameters are negative, as required by the monotonicity constraint (§ 4.2).

MXL population distributions of travel-time parameters and utility contributions of cost for Train, Swissmetro, and Car

Figure 5. MXL: population distributions of the travel-time parameters (1/hour; a, c, e) and utility contributions of cost (CHF; b, d, f), by model. Figures are cropped at the 95th percentile of the feature, while its distribution is shown above the x-axis.

The latent variable of the ICLV (Figure 3f) is similar across ParamBoost variants and bimodal: one group of individuals has a car-loving attitude that increases the utility of car, and a second, neutral or car-averse group has an attitude that reduces it slightly. The baseline latent variable is more dispersed, with roughly three modes that can be read as dislike of, neutrality towards and liking of cars.

State dependence

Figure C.1 shows the effect of the previous choice in the DL, with Swissmetro as the reference. Choosing the car or train alternative in the previous choice situation substantially increases car and train utility, respectively, compared with choosing the Swissmetro alternative in previous choice situations. Since Swissmetro is a stated-preference survey, this reflects

inertia across the choice tasks of the same respondent rather than habit formation in real travel. It nevertheless shows that repeated choices are correlated and should be modelled accordingly.

Conclusion

In this paper, we have introduced a unified interpretable non-linear choice modelling framework based on gradient boosting coefficient functions. We showed how to implement nine different models within this framework and demonstrated how easily it can be adapted and extended to other model formulations. We have also demonstrated the value added by the non-linearities by benchmarking against a linear-in-parameters baseline. We also demonstrated the value of complex model structures by showing that the LC model achieves best-in-class performance on the Swissmetro case study. In addition, we show a trade-off between constraints, interpretability, and predictive performance, and that continuity/smoothness constraints act as a regulariser.

Whilst the experiments are intended to demonstrate the ability to implement arbitrary model specifications and their benefit compared to linear-in-parameters models, we have restricted them to simple datasets, sometimes with hypothetical semi-synthetic model structures. Demonstrating the framework’s true value in systematically improving performance will require evaluation on larger, more complex datasets, particularly those where alternative model specifications clearly outperform MNL in traditional linear-in-parameters models. That said, we have shown in prior work [31 b] that alternative model structures such as the NL, OL, and MXL clearly improve model performance on large-scale datasets.

CRediT authorship contribution statement

Nicolas Salvadé: Writing – original draft, Visualization, Software, Methodology, Conceptualization, Formal analysis, Investigation. Tim Hillel: Writing – review & editing,

Train chosen in previous choice situation

(a) (a) Train chosen in previous choice situation

Car chosen in previous choice situation

(b) (b) Car chosen in previous choice situation

Figure 6. Utility contribution of the previous choice in the DL, by model.

Supervision, Methodology, Conceptualization, Project administration.

Declaration of competing interest

The authors declare that they have no known competing financial interests or personal relationships that could have appeared to influence the work reported in this paper.

Acknowledgments

This research is supported by a Chadwick PhD Scholarship awarded to Nicolas Salvadé by the UCL Department of Civil, Environmental, and Geomatic Engineering.

Hyperparameters

HyperparameterValue
Learning rate0.1
Minimum gain to split0
Minimum sum of second derivatives in a leaf0
Maximum number of histogram bins, degree-0 terms64
Maximum number of histogram bins, degree-1 to degree-3 terms16
Minimum number of observations in a bin3
Minimum number of observations in a leaf20
L1 regularisation10−410^{-4}
L2 regularisation10−410^{-4}
Maximum number of leaves5
Maximum tree depthNone
Subsampling fraction1
Subsampling frequency0

Table A.1. Default ParamBoost hyperparameters used for all models. The number of boosting iterations is selected by 5-fold cross-validation (maximum 3000, early stopping after 100 iterations).

Training and test cross-entropy loss

ModelSetParamB\mathrm{ParamB}-O0\mathrm{O}^{0}-C−1\mathrm{C}^{-1}ParamB\mathrm{ParamB}-O1\mathrm{O}^{1}-C0\mathrm{C}^{0}ParamB\mathrm{ParamB}-O3\mathrm{O}^{3}-C−1\mathrm{C}^{-1}ParamB\mathrm{ParamB}-O3\mathrm{O}^{3}-C2\mathrm{C}^{2}Linear
Multi-class classification on the Swissmetro dataset
MNLTrain0.72500.74300.72470.75290.7917
MNLTest0.79110.79240.79090.79240.8119
DLTrain0.65910.67400.65860.68400.7121
DLTest0.72270.72670.72210.72830.7448
NLTrain0.72350.74350.72140.75670.7910
NLTest0.79500.79610.79460.79620.8120
CNLTrain0.72330.74370.72390.75580.7895
CNLTest0.79250.79360.79230.79380.8128
LCTrain0.70930.74040.81320.76580.7721
LCTest0.78750.79420.83540.79560.8107
MXLTrain0.71570.72300.73920.76140.7760
MXLTest0.80070.81320.80490.81100.8206
Binary classification on the Swissmetro dataset
BPTrain0.31760.33120.31640.33780.3914
BPTest0.36270.36520.36070.37870.4676
Ordinal classification on the Swissmetro dataset
OLTrain0.82360.83340.82390.83690.8662
OLTest0.85360.84770.85400.84320.8627
Multi-class classification on the Optima dataset
ICLVTrain0.45820.48520.45260.53830.6028
ICLVTest0.50050.48220.49020.50470.5588

Table B.2. Training and test CEL for all models (lower is better).

Additional figures

Utility contributions of the trip attributes in the DL, by alternative and model

Figure C.1. Utility contributions of the trip attributes in the DL, by alternative and model. Travel time is in hours and cost in CHF. Figures are cropped at the 95th percentile of the feature, while its distribution is shown above the x-axis.

Utility contributions of the trip attributes in the BP, by model

Figure C.2. Utility contributions of the trip attributes in the BP, by model. Travel time is in hours and cost in CHF. Figures are cropped at the 95th percentile of the feature, while its distribution is shown above the x-axis.

Utility contributions of the trip attributes in the NL, by alternative and model, showing train, Swissmetro, and car travel time and cost

Figure C.3. Utility contributions of the trip attributes in the NL, by alternative and model. Travel time is in hours and cost in CHF. Figures are cropped at the 95th percentile of the feature, while its distribution is shown above the x-axis.

Train: travel time (hours)

(a) Train: travel time (hours)

Train: cost (CHF)

(b) Train: cost (CHF)

Swissmetro: travel time (hours)

(c) Swissmetro: travel time (hours)

Swissmetro: cost (CHF)

(d) Swissmetro: cost (CHF)

Car: travel time (hours)

(e) Car: travel time (hours)

Car: cost (CHF)

(f) Car: cost (CHF)

Figure C.4. Utility contributions of the trip attributes in the CNL, by alternative and model. Travel time is in hours and cost in CHF. Figures are cropped at the 95th percentile of the feature, while its distribution is shown above the x-axis.

Train: cost (class 1) (CHF)

(a) Train: cost (class 1) (CHF)

Swissmetro: cost (class 1) (CHF)

(b) Swissmetro: cost (class 1) (CHF)

Car: cost (class 1) (CHF)

(c) Car: cost (class 1) (CHF)

Train: travel time (class 2) (hours)

(d) Train: travel time (class 2) (hours)

Swissmetro: travel time (class 2) (hours)

(e) Swissmetro: travel time (class 2) (hours)

Car: travel time (class 2) (hours)

(f) Car: travel time (class 2) (hours)

Train: cost (class 2) (CHF)

(g) Train: cost (class 2) (CHF)

Swissmetro: cost (class 2) (CHF)

(h) Swissmetro: cost (class 2) (CHF)

Car: cost (class 2) (CHF)

(i) Car: cost (class 2) (CHF)

Figure C.5. Utility contributions of the trip attributes in the LC, by alternative and model. Travel time is in hours and cost in CHF. Figures are cropped at the 95th percentile of the feature, while its distribution is shown above the x-axis.

Structural parameters

Table D.3 compares the structural parameters of the NL, CNL and LC models. For the NL, all models estimate similar nest parameters for the existing alternatives, between 1.23 and 1.38, which imply a correlation of 0.34 to 0.47 between the utilities of train and car (1−1/μ2)(1 - 1/\mu^2).

For the CNL, the ParamBoost variants estimate a public transport nest parameter between 1.17 and 1.26. Three of the four estimate a membership of train in the existing nest of about 0.42, matching the baseline, while ParamB-O3^{3}-C2^{2} gives 0.28. The nest parameter of the existing alternatives is fixed to one in the ParamBoost models but estimated at 1.43 in the baseline, which also estimates μPublic\mu_{\mathrm{Public}} at 3.00 (upper bound); this difference in normalisation limits direct comparison of the nest parameters.

For the LC model, the baseline assigns a probability of 0.12 to class 1, and the ParamBoost variants range from 0.29 to 0.36, except ParamB-O3^{3}-C−1^{-1} (0.76), the unstable variant identified in § 6.2. This means the ParamBoost variants’ probabilities are more spread across the two classes than the linear-in-parameters baseline.

NLCNLLC
μExisting\mu_{\mathrm{Existing}}μExisting\mu_{\mathrm{Existing}}μPublic\mu_{\mathrm{Public}}α\alphaπ\pi
ParamB-O0^{0}-C−1^{-1}1.2641.0001.1840.4250.294
ParamB-O1^{1}-C0^{0}1.2301.0001.1740.4160.361
ParamB-O3^{3}-C−1^{-1}1.2571.0001.1850.4250.759
ParamB-O3^{3}-C2^{2}1.3801.0001.2570.2760.287
Linear1.2741.4263.0000.4200.123

Table D.3. Estimated structural parameters. For the CNL, α\alpha is the membership of train in the nest of existing alternatives; for the LC, π\pi is the probability of belonging to class 1.

References

  1. [1]Aboutaleb, Y.M., 2022. Theory-constrained Data-driven Model Selection, Specification, and Estimation: Applications in Discrete Choice Models. Ph.D. thesis. Massachusetts Institute of Technology.
  2. [2]Ansel, J., Yang, E., He, H., Gimelsh ein, N., Jain, A., Voznesensky, M., Bao, B., Bell, P., Berard, D., Burovski, E., Chauhan, G., Chourdia, A., Constable, W., Desmaison, A., DeVito, Z., Ellison, E., Feng, W., Gong, J., Gschwind, M., Hirsh, B., Huang, S., Kalambarkar, K., Kirsch, L., Lazos, M., Lezcano, M., Liang, Y., Liang, J., Lu, Y., Luk, C.K., Maher, B., Pan, Y., Puhrsch, C., Reso, M., Saroufim, M., Siraichi, M.Y., Suk, H., Zhang, S., Suo, M., Tillet, P., Zhao, X., Wang, E., Zhou, K., Zou, R., Wang, X., Mathews, A., Wen, W., Chanan, G., Wu, P., Chintala, S., 2024. Pytorch 2: Faster machine learning through dynamic python bytecode transformation and graph compilation, in: Proceedings of the 29th ACM International Conference on Architectural Support for Programming Languages and Operating Systems, Volume 2, Association for Computing Machinery, New York, NY, USA. p. 929–947. URL: https://doi.org/10.1145/3620665.3640366, doi:10.1145/3620665.3640366.
  3. [3]Aouad, A., Désir, A., 2022. Representing random utility choice models with neural networks. arXiv preprint arXiv:2207.12877 .arxiv.org/abs/2207.12877
  4. [4]Arkoudi, I., Krueger, R., Azevedo, C.L., Pereira, F.C., 2023. Combining discrete choice models and neural networks through embeddings: Formulation, interpretability and performance. Transportation research part B: methodological 175, 102783.arxiv.org/abs/2109.12042
  5. [6]Bagheri, N., Ghasri, M., Barlow, M., 2025. Rum-nn: A neural network model compatible with random utility maximisation for discrete choice setups. arXiv preprint arXiv:2501.05221 .arxiv.org/abs/2501.05221
  6. [7]Bierlaire, M., 2018. Mode choice in switzerland (optima). URL: https://transp-or. epfl. ch/documents/technicalReports/CS_OptimaDescription. pdf .
  7. [8]Bierlaire, M., 2023. A short introduction to biogeme. Transport and Mobility Laboratory, ENAC, EPFL .
  8. [9]Bierlaire, M., Axhausen, K., Abay, G., 2001. The acceptance of modal innovation: The case of swissmetro, in: Swiss transport research conference.
  9. [10]Bierlaire, M., Frejinger, E., Hillel, T., 2024. Dynamic choice models, in: Handbook of Choice Modelling. Edward Elgar Publishing, pp. 568–592.DOI
  10. [11]Bradbury, J., Frostig, R., Hawkins, P., Johnson, M.J., Katariya, Y., Leary, C., Maclaurin, D., Necula, G., Paszke, A., VanderPlas, J., Wanderman-Milne, S., Zhang, Q., 2018. JAX: composable transformations of Python+NumPy programs. URL: http://github.com/jax-ml/jax.
  11. [12]Chen, T., Guestrin, C., 2016. Xgboost: A scalable tree boosting system, in: Proceedings of the 22nd acm sigkdd international conference on knowledge discovery and data mining, pp. 785–794.DOI
  12. [13]Das, T., Hrido y, D.N., Hasnine, S., 2026. Utility-informed neural networks for mode choice prediction: behaviorally constrained learning via utility gradients. Expert Systems with Applications , 131536.DOI
  13. [14]Friedman, J.H., 2001. Greedy function approximation: a gradient boosting machine. Annals of statistics , 1189–1232.DOI
  14. [15]Han, Y., Pereira, F.C., Ben-Akiva, M., Zegras, C., 2022. A neural-embedded discrete choice model: Learning taste representation with strengthened interpretability. Transportation Research Part B: Methodological 163, 166–186.DOI
  15. [16]Hernandez, J.I., van Cranenburgh, S., Chorus, C., Mouter, N., 2023. Data-driven assisted model specification for complex choice experiments data: Association rules learning and random forests for participatory value evaluation experiments. Journal of choice modelling 46, 100397.DOI
  16. [17]Hernandez, J.I., Mouter, N., van Cranenburgh, S., 2024. An economically-consistent discrete choice model with flexible utility specification based on artificial neural networks. arXiv preprint arXiv:2404.13198 .arxiv.org/abs/2404.13198
  17. [18]Hess, S., Train, K.E., Polak, J.W., 2006. On the use of a modified latin hypercube sampling (mlhs) method in the estimation of a mixed logit model for vehicle choice. Transportation Research Part B: Methodological 40, 147–163.DOI
  18. [19]Hillel, T., Bierlaire, M., Elshafie, M., Jin, Y., 2019. Weak teachers: Assisted specification of discrete choice models using ensemble learning, hEART.
  19. [22]Kim, E.J., Bansal, P., 2024. A new flexible and partially monotonic discrete choice model. Transportation research part B: methodological 183, 102947.DOI
  20. [23]Krueger, R., Daziano, R.A., 2022. Stated choice analysis of preferences for covid-19 vaccines using the choquet integral. Journal of choice modelling 45, 100385.DOI
  21. [24]Martín-Baos, J.Á., García-Ródenas, R., Rodriguez-Benitez, L., 2021. Revisiting kernel logistic regression under the random utility models perspective. an interpretable machine-learning approach. Transportation Letters 13, 151–162.
  22. [25]Nova, G., van Cranenburgh, S., Hess, S., 2025. Improving choice model specification using reinforcement learning. arXiv preprint arXiv:2506.06410 .
  23. [26]Nova, G., Hess, S., Van Cranenburgh, S., 2026. Multitask reinforcement learning for assisting choice model specification. arXiv preprint arXiv:2609.18441 .arxiv.org/abs/2609.18441
  24. [27]Ortelli, N., Hillel, T., Pereira, F.C., de Lapparent, M., Bierlaire, M., 2021. Assisted specification of discrete choice models. Journal of choice modelling 39, 100285.DOI
  25. [28]Paz, A., Arteaga, C., Cobos, C., 2019. Specification of mixed logit models assisted by an optimization framework. Journal of choice modelling 30, 50–60.DOI
  26. [29]Salvadé, N., Hillel, T., 2025a. Assisted specification of discrete choice models with piece-wise linear utility functions, European Association for Research in Transportation (hEART).
  27. [30]Salvadé, N., Hillel, T., 2025b. Functional effects models: Accounting for preference heterogeneity in panel data with machine learning. arXiv preprint arXiv:2509.18047 .arxiv.org/abs/2509.18047
  28. [31]Salvadé, N., Hillel, T., 2025c. Rumboost: Gradient boosted random utility models. Transportation Research Part C: Emerging Technologies 170, 104897.DOI
  29. [32]Salvadé, N., Hillel, T., 2026. Paramboost: Gradient boosted piecewise cubic polynomials. arXiv preprint arXiv:2604.18864 .arxiv.org/abs/2604.18864
  30. [33]Shiftan, Y., Bekhor, S., 2020. Utilizing a random forest classifier for a methodological-iterative discrete choice model specification and estimation. HEART 2020, 9th.
  31. [34]Sifringer, B., Lurkin, V., Alahi, A., 2020. Enhancing discrete choice models with representation learning. Transportation Research Part B: Methodological 140, 236–261.DOI
  32. [35]Villarraga, D.F., Daziano, R.A., 2025a. Designing graph convolutional neural networks for discrete choice with network effects. arXiv preprint arXiv:2503.09786 .arxiv.org/abs/2503.09786
  33. [36]Villarraga, D.F., Daziano, R.A., 2025b. Hierarchical nearest neighbor gaussian process models for discrete choice: Mode choice in new york city. Transportation Research Part B: Methodological 191, 103132. URL: https://www.sciencedirect.com/science/article/pii/S019126152400256X, doi:https://doi.org/10.1016/j.trb.2024.103132.
  34. [37]Wang, S., Wang, Q., Zhao, J., 2020. Deep neural networks for choice analysis: Extracting complete economic information for interpretation. Transportation Research Part C: Emerging Technologies 118, 102701. URL: https://www.sciencedirect.com/science/article/pii/S0968090X20306161, doi:https://doi.org/10.1016/j.trc.2020.102701.
  35. [38]Wang, Y., Sun, X., Li, Y., Fan, Z., Zhuang, Z., 2026. Embedding foundation model predictions in discrete-choice models with structural guarantees. arXiv preprint arXiv:2606.26432 .arxiv.org/abs/2606.26432
  36. [39]Wong, M., Farooq, B., 2021. Reslogit: A residual neural network logit model for data-driven choice modelling. Transportation Research Part C: Emerging Technologies 126, 103050.arxiv.org/abs/1912.10058
  37. [40]Yahia, S.H., Mansour, O., Toledo, T., 2025. A grammar-based framework for utility function specification: Validation with synthetic data .
  38. [41]Yun, H., Lee, E.H., Zhang, J., Wang, Z., Kim, E.J., 2026. Neural-bayesian structure learning for discrete choice modeling. arXiv preprint arXiv:2608.25258 .arxiv.org/abs/2608.25258
  39. [42]Zellner, A., Kmenta, J., Dreze, J., 1966. Specification and estimation of cobb-douglas production function models. Econometrica: Journal of the Econometric Society , 784–795.

Paper details

vlnc:W_ave4eh46
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 0

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Mathematics

Not recorded for this paper

View statement
Looking for related papers…
Contents