Using Machine Learning to Guide Cognitive Modeling: A Case Study in Moral Reasoning

Mayank Agrawal, Joshua C. Peterson, Thomas L. GriffithsCogSci 2019

Introduction

In the study of human behavior, a persistent tension exists between explanation and prediction. Traditional psychological models are often "interpretable"—built on simple mathematical frameworks that explain the underlying reasons for human choices. However, these models frequently struggle to predict behavior in complex, real-world scenarios where multiple principles conflict. Conversely, machine learning (ML) excels at prediction but often results in "black-box" models that offer little insight into the underlying cognitive processes.

This research proposes a "best of both worlds" approach. Instead of viewing ML as a replacement for psychological theory, the authors use the predictive power of neural networks to identify missing features in interpretable cognitive models. By iteratively analyzing where a neural network outperforms a simple model, the researchers successfully closed the performance gap in predicting human moral judgments, resulting in a model that is both highly accurate and easy to explain.

Methodology: The Iterative Loop

The core of this approach is an iterative, data-driven procedure inspired by "Box’s loop." This workflow aims to use ML as an "aspirational standard" to reveal unexplained variance in current theories.

The iterative workflow for using machine learning to improve interpretable cognitive models.

The process follows five key steps:

  1. Train a Simple Model: Establish a baseline using a standard, interpretable "Choice Model" (CM) based on rational choice theory.
  2. Train an ML Model: Train a powerful Neural Network (NN) on the same data to determine the "predictive ceiling"—the maximum achievable performance.
  3. Identify Differences: Compare the models to find "residuals"—specific scenarios where the NN predicts correctly but the simple model fails.
  4. Cluster and Featurize: Manually inspect these failure points to identify "emergent features" or "problem types" that the NN has captured but the simple model lacks.
  5. Incorporate and Repeat: Add these new features back into the simple model and evaluate if the performance gap closes.

The Moral Machine Dataset

To test this methodology, the researchers utilized the Moral Machine dataset, one of the largest public datasets on human moral judgment. It contains approximately 40 million decisions from users in over 200 countries.

An example of a moral dilemma from the Moral Machine dataset, where users must choose between different outcomes for an autonomous vehicle.

The dataset presents users with variations of the "trolley problem" involving autonomous vehicles. Participants must decide whether a car should stay its course or swerve, leading to different fatalities. The data includes 20 unique agent types (e.g., man, girl, dog) and contextual information such as crossing signals and legality.

Key Insights and Results

The study revealed that while simple cognitive models are robust on small datasets, they hit a performance ceiling that neural networks can surpass once the dataset size exceeds roughly 100,000 samples.

Closing the Performance Gap

Initially, the best "Expanded" choice model achieved an accuracy of 76.3% (AUC 0.826), while the Neural Network reached 77.4% (AUC 0.845). By identifying six "problem types" from the NN's successes—such as "Humans vs. Animals" or "Old vs. Young"—and adding them as binary features to the simple choice model, the researchers boosted the interpretable model's accuracy to 77.1%.

Discovering Problem Types

The neural network was significantly better at handling specific clusters of dilemmas. While the simple model treated every agent as an independent utility calculation, the NN (and human participants) appeared to categorize the entire scenario first. For example, humans treat "criminals" differently than other humans, sometimes even preferring to save animals over them—a nuance the initial simple model missed.

Conclusion and Future Work

The final augmented choice model performed nearly as well as the black-box neural network while remaining a simple, weighted sum of features. This allows researchers to maintain interpretability, quantifying exactly how much "weight" humans give to specific factors, such as saving a child versus a lawful pedestrian.

While the current manual "clustering" of errors requires a human-in-the-loop, future work could involve automating the discovery of these features. This method holds promise for revitalizing cognitive theories across various domains of psychology by using machine learning as a guide for scientific discovery.

Summary updated

BibTeX
@misc{agrawal2019using,
  author = {Mayank Agrawal and Joshua C. Peterson and Thomas L. Griffiths},
  title = {{Using Machine Learning to Guide Cognitive Modeling: A Case Study in Moral Reasoning}},
  year = {2019},
  eprint = {1902.06744},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1902.06744},
}
Figure