[Paper Review] Identifying Latent Intentions via Inverse Reinforcement Learning in Repeated Linear Public Good Games
The paper introduces DTW-based clustering of public goods gameplay trajectories and a Hierarchical Inverse Q-Learning model to identify latent intentions, revealing a new Switchers type that frequently toggles between cooperation and defection.
Behavior in repeated public goods games continues to challenge standard theory: heterogeneous social preferences can explain first-round contributions, but not the substantial volatility observed across repeated interactions. Using 50,390 decisions from 2,938 participants, we introduce two methodological advances to address this gap. First, we cluster behavioral trajectories by their temporal shape using Dynamic Time Warping, yielding distinct and theoretically interpretable behavioral types. Second, we apply a hierarchical inverse Q-learning framework that models decisions as discrete switches between latent cooperative and defective intentions. This approach reveals a large (21.4%) and previously unmodeled behavioral type -- Switchers -- who frequently reverse intentions rather than commit to stable strategies. At the same time, the framework recovers canonical strategic behaviors such as persistent cooperation and free-riding. Substantively, recognizing intentional volatility helps sustain cooperation: brief defections by Switchers often reverse, so strategic patience can prevent unnecessary breakdowns.
Motivation & Objective
- Motivate the study of cooperation in repeated public goods games beyond static social-preference explanations.
- Develop a time-series clustering method that accommodates temporal misalignment in gameplay trajectories.
- Introduce a latent-variable HIQL framework to infer discrete latent intentions driving observed actions and states.
- Characterize the latent types and transition dynamics to reconcile stable strategies with intentional volatility.
- Assess how recognizing and modeling intention switching informs persistence or breakdown of cooperation.
Proposed method
- Cluster multivariate time-series of players’ contributions and others’ average contributions using Dynamic Time Warping to handle temporal misalignment.
- Evaluate DTW-based clustering against Bayesian, finite-mixture, C-Lasso, and hierarchical clustering; select the number of clusters via internal validation indices.
- Fit a hierarchical inverse Q-learning model to each cluster to infer latent intentions as discrete reward functions.
- Use a two-intention HIQL model (two latent intentions) and estimate intention-adoption probabilities and transition dynamics between intentions.
- Interpret clusters through posterior intention adoptions, Q-learning-inspired policies, and transition matrices to distinguish stable and switching behavioral patterns.
- Report robustness checks including bootstrap stability and within-cluster heterogeneity analysis.

Experimental results
Research questions
- RQ1Can dynamic time warping effectively cluster temporally misaligned behavioral trajectories in repeated public good games?
- RQ2What latent intention structure best explains observed actions and state dynamics in the data?
- RQ3Do discrete latent intentions (instead of continuous reward functions) improve model fit for public good game behavior?
- RQ4What are the characteristics and prevalence of switching versus stable behavioral types in repeated PGGs?
- RQ5How does recognizing intention switching influence interpretations of cooperation durability?
Key findings
- DTW clustering reveals six distinct behavioral clusters in the 10-round subset, with DTW global alignment outperforming Euclidean/local alignment in grouping phase-shifted patterns.
- Two latent intentions substantially improve model fit, enabling interpretation of both stable strategies and switching dynamics across clusters.
- A new Switchers cluster emerges, characterized by frequent round-to-round alternations between cooperative and defective intentions, with roughly 50% switching probability each round.
- Clusters 5 and 6 correspond to unconditional/ persistent cooperation, Cluster 1 to persistent free-riding, and Cluster 2 to frequent intention switching.
- The Switchers type accounts for about 21.4% of participants, highlighting substantial intentional volatility as a meaningful behavioral pattern.
- Intention-adoption probabilities coherently integrate actions and state dynamics, linking observed behavior to underlying discrete intentions.

Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.