Jump to main content
Diego Leyva

leyva.garcia.diego.alejandro@gmail.comBogotá, Colombia

ResearchResearch note

Strategy or state?

How much of the predictive advantage of tiny recurrent networks over classical reinforcement-learning models comes from hidden engagement states, and how much from different learning rules?

Status
Planned
Updated

Fig. 1 Inferring, trial by trial, whether a simulated agent is engaged. The line is the filtered posterior P(engaged | choices so far) of one simulated session, computed with the true parameters; the band shows where that posterior falls across replicate sessions with the same hidden states, and the shaded columns and the strip under the axis mark the true disengaged epochs. The two states differ only in inverse temperature (β = 3.0 engaged, β = 0.2 disengaged). The posterior averages 0.80 on engaged trials and 0.27 on disengaged trials, and falls below 0.5 in 2 of 2 disengaged epochs of at least 8 trials, a median of 2.5 trials after onset. The band, which holds 90% of 200 replicates, has a median width of 0.54.

Data table
Every 10th trial of the session in Fig. 1.
TrialP(engaged)90% of replicatesTrue stateChoiceReward
100.980.81–0.98engagedByes
200.980.66–0.98engagedByes
300.610.07–0.96engagedByes
400.980.41–0.98engagedByes
500.860.58–0.97engagedBno
600.970.56–0.98engagedAyes
700.940.66–0.98engagedAyes
800.960.73–0.98engagedAyes
900.820.29–0.97engagedAyes
1000.650.47–0.97engagedAno
1100.760.47–0.98engagedAno
1200.850.67–0.98engagedByes
1300.060.02–0.91disengagedAno
1400.170.06–0.81disengagedAyes
1500.580.25–0.96engagedAyes
1600.670.41–0.98engagedAyes
1700.950.58–0.98engagedAyes
1800.860.64–0.97engagedAno
1900.700.43–0.98engagedByes
2000.920.50–0.98engagedByes
2100.870.58–0.98engagedBno
2200.970.56–0.97engagedAyes
2300.470.03–0.92disengagedAyes
2400.010.01–0.81disengagedByes
2500.010.01–0.59disengagedByes
2600.070.05–0.72disengagedAno
2700.380.01–0.71disengagedByes
2800.420.14–0.96engagedBno
2900.790.26–0.98engagedByes
3000.650.51–0.97engagedByes

All trials, with the generator, seed and parameters: engagement-session.json

The question

Ji-An, Benna and Mattar (2025) showed that recurrent networks with only a handful of units predict the choices of animals and people better than classical reinforcement-learning models. A reply by Katahira argues, using simulations, that part of that advantage could come from something simpler: a participant who drifts between engaged and disengaged states. This note asks how large that part is on real data.

Why it matters

A better prediction is not an explanation. If hidden states account for the gap, then the networks are tracking engagement and the learning rule may be fine. If the gap persists, the classical models are missing structure in how learning itself changes. Either answer tells us something about what these networks have found.

Approach

The plan has three steps, none of them done yet.

  • Write down the hypotheses, models and decision criteria before looking at any held-out data.
  • Check on simulated data that the models can be told apart, so that a result is not an artefact of the fitting procedure.
  • Compare, on the same splits as the original paper, a standard model with perseveration, the same model with a hidden Markov layer over choice randomness, and a tiny recurrent network.

I would start with one mouse task, and treat the human datasets as an extension if time allows. Reference papers, code and data are listed below.

What would count as an answer

  • H1: the model with engagement states closes a substantial part of the gap. Here, "substantial" will be fixed in advance, with an interval from resampling animals.
  • H0: the gap persists, which would point to learning structure the scalar model misses.

Both outcomes are reportable. A control where the learning rate, not the randomness, changes by state is there to tell the two stories apart.

Limits

Fig. 1 is a simulation of the kind of session the model describes, with an engaged and a disengaged stretch. It is not data, and it shows nothing about animals or people. Mouse datasets contain few animals, so any interval will be wide. A hidden-state model that fits well is not proof that the state exists. The original authors may also address the same question first.

Status

This work is planned, not started. I have a written protocol and a reading plan of the papers above. I have no results, and nothing is preregistered yet. This page will change when that does.

References

  1. Ji-An, L., Benna, M. K., Mattar, M. G. (2025). Discovering cognitive strategies with tiny recurrent neural networks.

    Nature · doi.org/10.1038/s41586-025-09142-4

  2. Katahira, K. (2025). Recurrent neural network dynamics may not purely reflect cognitive strategies: A commentary on Ji-An et al. (Nature, 2025).

    bioRxiv · doi.org/10.1101/2025.10.30.685524

  3. Gillan, C. M. Characterizing a psychiatric symptom dimension related to deficits in goal-directed control.

    OSF project (two-step task data) · osf.io/usdgt

  4. Ji-An, L. (jil095). tinyRNN.

    GitHub repository · github.com/jil095/tinyRNN

Got a question about it?

leyva.garcia.diego.alejandro@gmail.com

Write to me about it