Delphos: A reinforcement learning framework for assisting discrete choice model specification

summary

Video file (mp4)

The gist

The gist The Delphos framework introduces a deep reinforcement learning approach to assist in specifying discrete choice models by treating model specification as a sequential decision-making problem.

In short

Delphos uses deep reinforcement learning to help human modelers specify discrete choice models by treating specification as a sequential decision-making problem. The AI agent learns which sequence of modeling actions—like adding variables or changing parameters—leads to the best final model quality, guided by a reward function based on metrics like log-likelihood.

Key concepts

Markov Decision Process (MDP)
The framework frames model specification as an MDP where the current partial specification is the 'state.' The agent chooses an action (a modeling decision), which transitions it to a new state, and receives a reward. This structure allows the AI to learn optimal sequences of decisions over time to achieve high-quality models.
Deep Q-Network (DQN)
Delphos employs a DQN architecture, which uses deep neural networks to approximate the value function Q(s, a). This network estimates the expected return of taking a specific modeling action 'a' in state 's'. It helps the agent decide which specification changes are most beneficial for improving the final model.
Reward Function
The reward function translates a modeller's goals into a learning signal. It combines various model evaluation criteria, such as log-likelihood and parsimony metrics (AIC, BIC), into an episodic reward. This guides the agent to select modeling actions that result in models satisfying both statistical fit and behavioral expectations.
State Space and Action Space
The state space represents every possible model specification that can be built from the predefined modeling rules. The action space includes all feasible operations, such as adding new variables or modifying existing ones. Actions are dynamically restricted to only those that make sense given the current model state.

Terminology used across episodes

This episode discusses

The paper

Delphos: A reinforcement learning framework for assisting discrete choice model specification · Read on arXiv

Gabriel Nova, Stephane Hess, Sander van Cranenburgh

CityAI Lab, Transport and Logistics Group, Delft University of Technology · Choice Modelling Centre - Institute for Transport Studies, University of Leeds

We introduce Delphos, a deep reinforcement learning framework for assisting discrete choice model specification process. Delphos aims to support the modeller by providing automated, data-driven suggestions for model specifications, thereby reducing the effort required to develop and refine utility functions. Delphos conceptualises model specification as a sequential decision-making problem, inspired by the way human choice modellers iteratively construct models through a series of reasoned specification decisions. In this setting, an agent learns to specify candidate model specifications by choosing a sequence of modelling actions, such as adding alternative specific constants, accommodating both generic and alternative-specific taste parameters, applying non-linear transformations to attributes, and including interactions with covariates. Each resulting candidate model is estimated and evaluated using a reward function defined by the modeller, which can reflect statistical model fit as well as behavioural expectations. Specifically, Delphos uses a Deep Q-Network to learn how individual specification decisions contribute to the eventual quality of the resulting model and, in turn, which sequences of modelling decisions tend to produce well-performing candidates. We evaluate Delphos on both simulated and empirical datasets using alternative reward functions. In simulated cases, learning curves, Q-value patterns, and performance metrics show that Delphos learns effective specification strategies while exploring only a small fraction of the feasible modelling space. We further apply the framework to two empirical datasets to benchmark and demonstrate its practical use. These experiments illustrate the ability of Delphos to generate competitive, behaviourally plausible models and highlight the potential of this adaptive, learning-based framework to assist the model specification process.

Transcript

Introduction to the show: ident: AI Radio. Generated commentary on the latest Artificial Intelligence papers.

Tom: I'm Tom.

Jane: And I'm Jane, here with Lu, Meng and our in-house large language model, Lalam.

Tom: Today's paper: "Delphos: A reinforcement learning framework for assisting discrete choice model specification".

Jane: The gist The Delphos framework introduces a deep reinforcement learning approach to assist in specifying discrete choice models by treating model specification as a sequential decision-making problem.

Tom: First, who's behind it and why it matters.

Title and authors: Tom: So we're looking at this paper called "Delphos: A reinforcement learning framework for assisting discrete choice model specification". It sounds like they are trying to help people who build these choice models—the discrete choice models—by making the process less manual.

Jane: Right, so it’s about using deep reinforcement learning to assist in picking the best model specifications for those choice models, which is pretty big because choosing the right model is a huge part of understanding how people make decisions.

Lu: The core idea they're pushing here is treating the entire process of specifying a model as a sequential decision-making problem, much like how human choice modellers actually work, making decisions step by step to build up their final structure >

Meng: So instead of just guessing or running search operators to test every possible model combination and looking at the immediate results, this agent learns a strategy based on the partial utility specification it has right now >

Lalam: That’s right, it's about learning a specification strategy conditioned on that current partial utility specification, using repeated sequences of modelling decisions to learn which actions are promising for a given model structure >

Tom: The paper says this approach draws inspiration from deep reinforcement learning in areas like board games and protein folding where agents learn to expand promising structures instead of testing every possible combination >

Jane: So the paper is suggesting that the agent learns how to expand those promising partial structures, which should help avoid testing every single possibility in a vast combinatorial space >

Lu: Exactly, because DRL has worked well there, and this framework aims to use that learning to guide subsequent decisions rather than just applying a search operator blindly >

Meng: But what’s the actual mechanism here for how it learns these actions? I mean, how does it know which modeling action—like adding a new variable or changing a parameter transformation—is the right move at any given step >

Tom: Well, they use a deep q-network to approximate the state-action values, which estimates the expected return of taking an action at that specific state under their learned policy >

Jane: That means it’s learning how each individual decision contributes to the final quality of the model, and which sequences of decisions tend to lead to well-performing candidates >

Title and authors: Lu: They formalize this as a Markov Decision Process where the current partial specification defines the state, and feasible refinements define what actions are possible from there >

Meng: And they handle that action space by dynamically masking it; they assign extremely negative q-values to actions that don't make sense given the current model structure >

Tom: That dynamic masking is key because it ensures the agent takes meaningful actions, like changing a component of an already added attribute instead of just adding another one again >

Jane: So it’s not just exploring randomly; it’s learning to be efficient by only considering valid next steps based on what the model looks like right now >

Lu: The state space itself is encoded as a fixed-length list of modelling terms, which includes everything from selected variables to their current transformation types and covariate interactions >

Meng: That’s a lot of detail packed into the state representation; it sounds complex for something that needs to run fast enough for actual production use >

Tom: It is complex, but they mention they are using a fixed-length list of these terms, which helps in encoding the current model specification efficiently >

Jane: And that encoding allows the agent to learn a reusable decision rule for selecting modelling refinements step by step, which is important if you wanted to adapt it to a new dataset later >

Lu: The reward function is what ties it all together; they translate the modeller’s goals into a learning signal by combining things like log-likelihood and McFadden’s pseudo-R2 metrics, plus behavioral expectations >

Meng: So the goal isn't just to get a high likelihood score; they are balancing that fit with parsimony and keeping those behavioral constraints in mind, like requiring negative parameters for certain travel costs >

Tom: They also propagate the terminal reward across the sequence of L modelling actions, creating a discounted return Gl e assigned to each state-action pair >

Jane: And that propagation is how they handle credit assignment; it tells the agent which early decisions actually helped get to the final good model >

Lu: The evaluation shows that in simulated cases, Delphos learns effective specification strategies while only exploring a small fraction of the feasible modelling space >

Meng: That’s encouraging for us because it suggests it can find good models without having to brute-force every single possibility >

Title and authors: Tom: And in empirical experiments on datasets like Swissmetro using AIC as the reward function, Delphos was benchmarked against methods like variable neighbourhood search and simulated annealing >

Jane: So, the implication is that this isn't just a theoretical idea; it’s being tested on real choice datasets to see if it actually performs better than traditional search heuristics >

Lu: The paper points out that while they show effectiveness, they also acknowledge a limitation: the current design is intended to work on a single-choice dataset, which limits how easily the learning strategies can be transferred to different contexts >

Meng: That makes sense; if it only learns how to build models for one type of choice data, it might not translate well if you switch to something completely different like a multi-choice scenario >

Tom: They also note that the agent might initially produce models that aren't behaviourally plausible, especially when the reward function has conflicting objectives >

Jane: That’s a real caution; if the system tries to satisfy two competing goals simultaneously, it might just spit out something that looks mathematically good but makes no sense in reality >

Lu: For future work, they suggest using offline learning methods where you feed the replay buffer with known sequences of actions that actually generate plausible specifications >

Meng: That would be a smart way to stabilize things; having some 'good' examples already in the training data helps it learn what is truly viable on the ground >

Tom: So, in summary, Delphos demonstrates how reinforcement learning agents can develop adaptive strategies by using feedback and experience to actively assist in discrete choice model specification >

Jane: It really moves beyond just automating predefined procedures towards an AI system that can actively help a modeller throughout the entire modeling process >

Lu: This framework paves the way for a new generation of intelligent tools specifically for discrete choice modelling, shifting the focus from search to learning how to build better models directly >

Meng: I think what matters most for deployment is figuring out how robust this policy is when it runs against real traffic at scale, which is what we haven't seen much evidence on yet >

Tom: So that’s where the next steps are—moving from simulated success to proven robustness in a production environment >

The paper's summary: Tom: So, to recap, Delphos is using deep reinforcement learning to help build discrete choice models by treating the whole specification process as a sequence of decisions instead of just running a single search algorithm >

Jane: Exactly. It’s not just picking one model structure and hoping for the best. It’s an agent learning how to incrementally add variables, change parameters, and refine interactions step-by-step based on what it thinks will lead to a good final result >

Lu: The core idea is that instead of blindly searching a massive space of all possible models, this AI learns a policy—a strategy—for refinement. It learns which actions are most useful at any given stage of building the model >

Meng: What I like about it is how it handles the action space. They use dynamic masking. The agent only tries moves that make sense for the current structure it's built so far >

Tom: Right, and they use a deep q-network to figure out the value of each decision sequence. It’s not just looking at the immediate reward; it’s learning how every single modeling action contributes to the final quality of that model >

Jane: That credit assignment part is important. They take feedback from a well-evaluated model and work backward through all those steps to see which early decisions actually helped get you there >

Lu: The state space itself is encoded as a list of terms. These terms describe the current model structure—the variables, how they are transformed, what kind of parameter they are—everything summarized into a fixed-length input for the network >

Meng: It sounds like a lot of representation learning to keep track of all those modeling terms in that state space >

Tom: Yeah. And they use a pretty complex reward function. They aren't just optimizing for one thing, like just the highest likelihood score. They combine things like log-likelihood with metrics for parsimony, like McFadden’s pseudo-R2 and AIC >

Jane: So it’s balancing getting a model that fits the data well with making sure it’s not overly complicated or too specific to just one observation >

Lu: The paper shows in simulations that Delphos learns effective strategies without needing to explore every single possible model combination. It finds good solutions much faster than brute force methods >

Meng: That’s good for production because it means we don't have to spend weeks running huge search algorithms just to find a decent starting point >

Tom: In real choice datasets, they benchmarked it against things like variable neighbourhood search and simulated annealing using AIC as the reward function. It shows it can compete with those traditional heuristics >

Jane: But there are caveats. The authors admit that the current setup is focused on single-choice datasets, so we don't know if this exact learning strategy will work for something more complex, like a multi-choice scenario >

Lu: And they also flag that because the reward function has multiple goals—like fit and parsimony—the agent might sometimes propose models that look mathematically sound but aren't actually realistic in terms of behavior >

Meng: That’s the risk. If the reward function pulls it toward a goal it can’t actually satisfy, it might generate something bizarre that doesn't make sense for the real world >

Tom: So what this means for us is that we might move away from just running fixed procedures and start using these AI systems to actively guide the construction of choice models during the modeling process itself >

Jane: It’s a shift from just automating a search operator to having an AI system that can intelligently assist in building the model structure, which could make model specification much more flexible and less reliant on expert intuition alone.

The paper's improvements: Tom: So, moving past the basic framework, Delphos suggests several specific ways to make it better >

Jane: Right. They’re not just happy with how it works right now; they have ideas on how to actually level up this agent's performance and robustness >

Lu: One improvement is addressing that credit assignment issue we talked about earlier. They want to make sure the DQN, which estimates those state-action values, properly distributes the feedback across the entire sequence of modeling actions >

Meng: That’s important for deployment. If it can't figure out which early decision caused a bad outcome, we can’t trust the policy it learns >

Tom: They call this "Amortization of Credit Assignment via DQN," meaning you get feedback over the whole sequence, not just at the very end when the model is finally done >

Jane: That sounds like a way to stabilize learning so that even if one step is bad, the agent doesn't completely lose track of what it needs to fix later >

Lu: They also focus on making sure those actions are actually meaningful. They introduce dynamic action space masking again, where the agent gets penalized heavily for trying things that don't fit the current model state >

Tom: So, instead of just picking any operation from a list, it learns to choose between adding a new variable or changing an existing one based on what’s already in there >

Jane: That makes sense. It prevents the agent from just adding stuff blindly and keeps it focused on meaningful refinements to the structure >

Lu: They also talk about the state representation itself. They suggest encoding the model specification as a fixed-length list of terms, which is quite detailed—variables, transformations, parameter types—to give the agent a rich picture of what it's building >

Meng: A detailed state space means more memory and more computation to run the network inference at every single step >

Tom: But they argue that this detailed encoding allows the AI to learn a reusable decision rule for selecting modeling refinements, which could potentially be used on different datasets later >

Jane: That’s interesting. It suggests that the way we represent our partial model structure is key to how well the AI can generalize its decision-making capabilities >

Lu: And finally, they mention that future work should look at offline learning. They want to feed the replay buffer with known sequences of actions that already generate plausible specifications >

Meng: That would be a huge help for stability. Training an agent only on what *looks* good can be very fragile if it doesn't have examples of actually working solutions >

Tom: So, they’re proposing a way to use existing knowledge to bootstrap the learning process, rather than starting completely from scratch >

Jane: It really shows they are thinking about how to bridge the gap between theoretical learning and real-world application where we don't have infinite data points for every possible model structure >

Lu: The implication is that this moves the field toward AI tools that can actively assist modellers throughout the modeling process, rather than just being a black box that spits out one final answer after all the work is done >

Meng: That’s what we need. A tool that helps us build better models incrementally, not just one we run once and forget about >

Conclusion: Tom: So we’re wrapping up "Delphos: A reinforcement learning framework for assisting discrete choice model specification" by saying that this AI approach can actively help modellers build better models by learning how to make the right sequence of specification decisions >

Jane: Right. The big picture here is shifting from just using computational methods to execute predefined modeling procedures, to having an AI system that can actually assist a human throughout the entire process >

Lu: This moves beyond just automating a search over model specifications; it’s about learning how to guide the specification process itself, which should lead to more adaptive models >

Meng: For us on the ground, it means we could potentially spend less time manually tuning parameters and more time focusing on designing better reward functions for the AI >

Tom: The core idea is that reinforcement learning agents can develop adaptive strategies by leveraging feedback and accumulated experience to assist in discrete choice model specification >

Jane: It really shows how this technology can create a new generation of intelligent tools for discrete choice modeling, moving beyond simple search heuristics >

Lu: The framework lays the groundwork for a system that learns to propose well-performing models by interacting with an estimation environment, rather than just executing fixed search operators >

Meng: I’m still thinking about how it runs at scale. If this agent has to evaluate every intermediate model step against complex reward functions, what does the computational cost look like during a full specification run >

Tom: That’s a fair concern for deployment. But in the simulations, they showed that Delphos explores only a small fraction of the feasible modeling space, which suggests it's efficient enough to be viable >

Jane: It’s definitely an interesting direction for science communicators because it shows us how we can use reinforcement learning not just to find an answer, but to learn *how* to construct the answer >

Lu: The paper’s limitation is that it’s currently designed for a single-choice dataset, which means transferring those specific learning strategies directly to different contexts might be tricky >

Meng: Exactly. If you want this strategy to work on a totally different kind of data structure, you probably need a lot more retraining or adaptation >

Lalam: I'm confident in the answer. Delphos is sure that this RL approach to specification is a solid direction for discrete choice modeling because it learns the trade-offs between fit and parsimony >

Tom: It’s been quite an interesting look at how we can use AI not just for prediction, but for active construction of complex mathematical structures >

Jane: Before we move on, I want to give a quick nod to the paper "Delphos: A reinforcement learning framework for assisting discrete choice model specification." It’s a really solid piece of work that shows where the next generation of modeling assistants is headed >

More episodes

← Home