Identifying Model-Based and Model-Free Patterns in Behavior on Multi-Step Tasks

Kevin J Miller, Carlos D. Brody, Matthew BotvinickbioRxiv 2016

TL;DR

This paper investigates how we analyze behavior in a popular "two-step task" designed to distinguish planning (model-based) from habitual (model-free) decision-making. The authors demonstrate that the standard analysis method, the "one-trial-back" analysis, can be misleading, especially with simpler agents or when agents' learning rates vary. They introduce a more robust "many-trials-back" analysis that offers a richer, theory-neutral view of behavior and can help validate assumptions made by more complex computational models.

What Problem Does This Paper Address?

The field of neuroscience is increasingly interested in understanding the mechanisms of planning and decision-making. A key challenge is distinguishing between "model-based" (planning-driven) and "model-free" (habitual) strategies. To address this, Daw et al. (2011) introduced a "two-step sequential decision task." This task allows researchers to collect a large number of decisions from subjects, enabling them to infer whether behavior is driven by a model of the task's contingencies or by simpler reinforcement learning.

However, the methods used to analyze data from this task are crucial for its success. The authors of this paper identify a potential problem: the commonly used analysis techniques might be confounded, leading to misinterpretations of behavior. Specifically, they question whether the standard "one-trial-back" analysis and agent-based model-fitting approaches accurately capture the underlying decision-making strategies, especially when the assumptions of these models are violated. They aim to provide a more reliable way to characterize model-based and model-free behavior.

Methods

The paper introduces and evaluates several analysis techniques for the two-step task:

  • One-Trial-Back Stay/Switch Analysis: This is the standard method. It examines whether an agent repeats its previous choice (stays) or switches, based on the outcome (reward/omission) and transition type (common/uncommon) of the immediately preceding trial. The authors derive "model-free" and "model-based" indices from these stay probabilities.
  • Many-Trials-Back Regression Analysis: This is the novel method proposed by the authors. It uses logistic regression to quantify the influence of outcomes from multiple past trials (up to a specified lag) on the current choice. This approach provides a richer, theory-neutral description of behavioral patterns. They also derive "model-free" and "model-based" indices from the regression weights.
  • Model-Fitting Analysis: This involves fitting a computational model (specifically, the one introduced by Daw et al., 2011) to the behavioral data. This model has parameters that represent the balance between model-based and model-free strategies. The authors use maximum a posteriori fits with Stan. They then derive model-based and model-free indices from the fitted parameters.

The authors generated synthetic datasets from agents with known underlying strategies (model-free, model-based, and hybrid) to test these analysis methods. They also explored variations of the task, including a simplified version for animal subjects and agents with different learning rates or more complex learning rules.

Datasets

The paper does not use real-world datasets for primary analysis. Instead, it relies on synthetic datasets generated from agents with known generative mechanisms. These synthetic datasets are crucial for evaluating the accuracy and robustness of the different analysis techniques. The authors generated data from:

  • Model-free agents: Implementing SARSA(1) and TD(λ) algorithms.
  • Model-based agents: Aware of task transitions and using this knowledge.
  • Hybrid agents: Combining model-based and model-free strategies with a weighting parameter.
  • Agents with varying learning rates: To test the sensitivity of analyses to this parameter.
  • Agents with expanded state spaces: To simulate more complex model-free strategies.
  • Agents with learning rules for transition probabilities: To explore model-based systems that update their internal models.

These synthetic datasets allow for a direct comparison of how well each analysis method can recover the "ground truth" generative process.

Key Insights and Ideas

  • The "one-trial-back" analysis is surprisingly fragile: Even for simple agents, especially those with low learning rates, the one-trial-back analysis can produce misleading results. It can incorrectly classify model-free agents as hybrid systems or vice-versa, particularly when behavior is influenced by events beyond the immediately preceding trial.
  • Model-fitting is powerful but relies on assumptions: Agent-based model fitting can accurately characterize behavior when its underlying assumptions (e.g., about learning rates, model structure) are met. However, when these assumptions are violated, model fits can become misleading, failing to reveal the true generative process.
  • The "many-trials-back" analysis offers a robust, theory-neutral perspective: This new method provides a richer description of behavioral patterns by considering multiple past trials. It is less sensitive to variations in learning rates and can help identify when the assumptions of more complex models might be violated, serving as a valuable "model-checking" tool.
  • Hybrid strategies are complex and require careful analysis: The paper highlights that real behavior might not neatly fit into pure model-based or model-free categories. Analyzing these hybrid systems requires methods that can disentangle the contributions of both, and the many-trials-back analysis shows promise in this regard.

Key Results

  • One-trial-back analysis confounds: In modified task versions and for agents with low learning rates, the one-trial-back analysis frequently misclassified agent types. For instance, a purely model-free agent could be misidentified as a hybrid system. The indices derived from this method were highly sensitive to learning rate across all agent types.
  • Model-fitting accuracy depends on assumptions: When the assumptions of the standard model were met (e.g., equal learning rates for model-based and model-free components), model fitting accurately recovered the underlying strategy. However, when assumptions were violated (e.g., different learning rates, agents that update their models), the fits could be misleading, sometimes even suggesting a model-based component when none existed.
  • Many-trials-back analysis robustness: The many-trials-back analysis demonstrated greater robustness to changes in learning rate and other parameter variations compared to the one-trial-back analysis. It provided a more stable and accurate characterization of agent behavior across different conditions.
  • Discrimination of complex strategies: The many-trials-back analysis was able to reveal qualitative differences between datasets generated by various complex algorithms (e.g., SARSA(λ), expanded state-space models) that were not apparent with the one-trial-back analysis or even standard model fitting.

Limitations and Future Work

  • Limitations of One-Trial-Back: The paper clearly demonstrates the limitations of the one-trial-back analysis, particularly its susceptibility to confounds from past trials and varying learning rates.
  • Limitations of Model Fitting: While powerful, model fitting is limited by its reliance on specific theoretical assumptions. When these assumptions are not met, the results can be misleading. The paper shows that even fitting a generalized model doesn't always solve the problem if the underlying generative process is fundamentally different.
  • Future Work Recommendations: The authors strongly recommend caution in interpreting one-trial-back analysis results. They advocate for the use of the many-trials-back analysis as a theory-neutral tool for characterizing behavior and, crucially, for checking the assumptions of agent-based models before drawing conclusions from model-fitting. They suggest that future research should integrate these approaches to ensure more reliable characterization of planning and decision-making strategies.

Summary updated

Abstract

Recent years have seen a surge of research into the neuroscience of planning. Much of this work has taken advantage of a two-step sequential decision task developed by Daw et al. (2011), which gives the ability to diagnose whether or not subjects’ behavior is the result of planning. Here, we present simulations which suggest that the techniques most commonly used to analyze data from this task may be confounded in important ways. We introduce a new analysis technique, which suffers from fewer of these issues. This technique also presents a richer view of behavior, making it useful for characterizing patterns in behavior in a theory-neutral manner. This allows it to provide an important check on the assumptions of more theory-driven analysis such as agent-based model-fitting.
BibTeX
@misc{miller2016identifying,
  author = {Kevin J Miller and Carlos D. Brody and Matthew Botvinick},
  title = {{Identifying Model-Based and Model-Free Patterns in Behavior on Multi-Step Tasks}},
  year = {2016},
  doi = {10.1101/096339},
  howpublished = {bioRxiv},
}
Figure