Papers / Pagan et al. 2025

Pagan et al. 2025 · Nature

Individual variability of neural computations underlying flexible decisions

Marino Pagan, Vincent D. Tang, Mikio Aoi, Jonathan W. Pillow, Valerio Mante, David Sussillo, Carlos D. Brody

Outcomes of 21 claims

  • 14 reproduced
  • 2 partially reproduced
  • 1 not reproduced
  • 4 blocked

Summary: Most behavioural findings held up in this data, while the neural findings mostly did not or could not be tested. Context-dependent feature use, switching within about four trials, converging behavioural kernels and the behaviour-neural slope anticorrelation (r = -0.70, resting on two rats) all reproduced. Parallel choice axes did not, with the paper's own code giving 4.7 degrees, not 1.6. Frontal silencing impaired 2 of 3 rats; the network and choice-axis variance claims could not be tested, for lack of a defined method or runnable code. The electrophysiology is absent from the dataset, and its units linked to only about 112 of 199 sessions.

Summary written by the agent that recorded the attempt, from its claims and the agents’ reports. A failure to reproduce may be a failure of the agent.

Reading outcomes Respond to this attempt

Claims

Reproducing Pagan et al. (2025) from dandiset 001550 17 Open in Colab

Reproduced14

  • Reproduced

    Rats performed on average 542 trials per session.

    Mean valid trials per session 551.8 over the 8,849 selected sessions (reading b) and 494.2 over all 15,400…

    Methods, Behaviourtrials-per-session
    From the paper

    rats performed on average 542 trials per session

    Result

    Mean valid trials per session 551.8 over the 8,849 selected sessions (reading b) and 494.2 over all 15,400 task sessions (reading d), both within 487.8 to 596.2. All trials average 817.9 and 749.7 (readings a and c), outside. The 13 unreadable sessions (1 to 3 trials) are left out of readings c and d; added, they give 749.1 and 493.8.

    Deviations from the paper’s method
    • The Methods do not say which sessions or trials are counted; four readings are shown and two match.
  • Reproduced

    On average, rats switched across 14.6 context blocks per session.

    Blocks per session average 16.98 over selected sessions and 13.90 over all task sessions; switches average…

    Methods, Behaviourblocks-per-session
    From the paper

    On average, rats switched across 14.6 context blocks per session

    Result

    Blocks per session average 16.98 over selected sessions and 13.90 over all task sessions; switches average 15.98 and 12.90. Blocks over all sessions (13.90) and switches over selected sessions (15.98) are within 13.14 to 16.06; the first is recorded as measured.

    Deviations from the paper’s method
    • Whether blocks or switches are counted, and over which sessions, is not stated; two of four readings match.
  • Reproduced

    Behavioural sessions lasted 2 to 4 hours.

    Median duration 2.50 h over selected sessions and 2.57 h over all task sessions.

    Methods, Behavioursession-duration
    From the paper

    Behavioural sessions lasted 2–4 h

    Result

    Median duration 2.50 h over selected sessions and 2.57 h over all task sessions. Only 0.559 and 0.556 of sessions last 2 to 4 h (0.65 within 1.8 to 4.4); 5% to 95% of selected sessions span 1.26 to 4.41 h, and the range is 0.26 to 7.74 h.

    Deviations from the paper’s method
    • Duration is taken from the first trial start to the last trial stop; the files hold no session end time.
  • Reproduced

    Block switches occurred after a minimum of 30 trials per block, and when a local estimate of performance reached 80% correct.

    All 141,359 non-final blocks of selected sessions have at least 30 trials counted over all trials (1st…

    Methods, Behaviourblock-min-30
    From the paper

    block switches occurred after a minimum of 30 trials per block, and when a local estimate of performance reached a threshold of 80% correct

    Result

    All 141,359 non-final blocks of selected sessions have at least 30 trials counted over all trials (1st percentile 30, median 44); counted over valid trials 0.817 do. Over the last 30 valid trials before a switch the median fraction correct is 0.828 and 0.601 of blocks reach 0.8, so the 80% part is not shown on that window; the task's local estimate is not described.

  • Reproduced

    Twenty rats each contributed more than 120,000 trials after training.

    Twenty rats have more than 120,000 valid trials in selected sessions (the twentieth, P189, has 128,309; the…

    Figure 1c legend; Extended Data Figure 1cfig1c-20-rats
    From the paper

    Logistic fits of psychometric curves for 20 rats after training (more than 120,000 trials for each rat)

    Result

    Twenty rats have more than 120,000 valid trials in selected sessions (the twentieth, P189, has 128,309; the next, P124, 115,123). The same 20 pass at 120,000 or more.

  • Reproduced

    After training, choices are mostly driven by location in the location context and by frequency in the frequency context.

    In all 20 rats both relative weights exceed 0.5; location in the location context 0.770 to 0.860, frequency in…

    Figure 1c; Extended Data Figure 3a,dfig1c-context-selection
    From the paper

    In the LOC context, choices are mostly affected by location; in the FRQ context, choices are mostly affected by frequency

    Result

    In all 20 rats both relative weights exceed 0.5; location in the location context 0.770 to 0.860, frequency in the frequency context 0.724 to 0.870.

    Deviations from the paper’s method
    • Tested by the Methods' logistic regression on generative strengths, not by the four-parameter psychometric fits that the figure shows.
  • Reproduced

    Rats switch the feature they attend to within about four trials of a new context block.

    Across 26 rats, at position 4 of a new block the relevant relative weight is 0.91 of its plateau when…

    Results, Flexible evidence accumulation in rats, paragraph 1; Extended Data Figure 1e (legend panel g)ed1e-switch-four-trials
    From the paper

    were able to switch between selected stimulus features within four trials of a new context block

    Result

    Across 26 rats, at position 4 of a new block the relevant relative weight is 0.91 of its plateau when switching to location and 0.963 when switching to frequency (Methods selection), and 0.914 and 0.961 with the code's 0.65 selection. At position 1 it is 0.502 and 0.560, against plateaus of 0.854 and 0.789. All 26 rats have a fit at positions 1 to 5 (103 to 6,096 trials), so the 30-trial minimum drops nothing. Bootstrapping rats, the position 4 value for the switch to location has a 95% interval of 0.874 to 0.946 and reaches 0.9 in 0.678 of resamples; at position 5, which the criterion also allows, the values are 0.956 and 0.977 and reach 0.9 in 0.998 and 1.000 of resamples.

    Deviations from the paper’s method
    • The paper's code uses a 0.65 selection for this analysis; the Methods selection is the main result and the code's is a variant.
  • Reproduced

    Most rats learned the task in two to five months.

    From each rat's first session to its first session with an index of at least 0.7, 17 of 26 rats took 1.8 to…

    Results, Flexible evidence accumulation in rats, paragraph 1; Extended Data Figure 2ged2g-learning-2-5-months
    From the paper

    most rats learned the task in a timespan between two and five months

    Result

    From each rat's first session to its first session with an index of at least 0.7, 17 of 26 rats took 1.8 to 5.5 months (times 0.85 to 8.18 months). With the full selection 19 of 26; counted from the first TaskSwitch session 13 (exactly half) and 17. Within the unwidened 2 to 5 months the counts are 12, 16, 10 and 13. 24 rats start with ProAnti3Marino sessions.

    Deviations from the paper’s method
    • The paper does not define the start of training or when a rat counts as trained; four pairings of readings are shown, three match.
  • Reproduced

    Differential behavioural kernels predominantly converge towards the end of the pulse train, that is the difference between contexts in the weight of a feature shrinks for later pulses.

    All 36 slope indices of the 18 Figure 4 rats are negative (median -0.432, range -0.774 to -0.097).

    Methods, Behavioural logistic regression, paragraph 3; Figure 4; Extended Data Figure 3c,ffig4-converging
    From the paper

    Empirically we found that differential behavioural kernels predominantly displayed convergence towards the end of the pulse stimulus presentation

    Result

    All 36 slope indices of the 18 Figure 4 rats are negative (median -0.432, range -0.774 to -0.097). With the code's fixed penalty of 200 all 36 are negative (median -0.491), and they agree with the indices from the paper's saved weights to at most 0.0177 (r = 0.99973).

    Deviations from the paper’s method
    • The Methods' ridge penalty is read as the code's penalty on neighbouring weight differences, with its weight chosen by 3-fold cross-validation over 20, 200 and 2000 (chosen weights 20 to 2000); the code fixes it at 200.
    • The differential kernel is divided by its largest absolute value before the line fit, as the code does; the Methods do not say.
  • Reproduced

    Across rats, the shape of the differential behavioural kernel for one feature does not predict the shape for the other feature.

    Across 18 rats r = 0.180 (95% CI -0.313 to 0.597), p = 0.475; with the fixed penalty r = 0.092, p = 0.717…

    Results, Linking neural and behaviour variability, paragraph 1; Figure 4 top rightfig4-loc-frq-uncorrelated
    From the paper

    The shape of an individual’s differential behavioural kernel for one feature did not appear to predict the shape of the kernel for the other feature

    Result

    Across 18 rats r = 0.180 (95% CI -0.313 to 0.597), p = 0.475; with the fixed penalty r = 0.092, p = 0.717; from the paper's saved weights r = 0.094, p = 0.71.

    Deviations from the paper’s method
    • The paper gives no test; a two-sided Pearson correlation was chosen before the analysis.
  • Reproduced

    The behavioural slope index computed from the first half of a rat's trials is correlated with the index from the second half (r = 0.58, p = 0.000013).

    Over 24 rats and 48 values r = 0.552 (95% CI 0.318 to 0.723), p = 4.7e-05, within 0.522 to 0.638.

    Extended Data Figure 3g legended3g-halfsplit
    From the paper

    The slope index computed from behavioral trials in the first half split is highly correlated with the slope index computed using the second half split (r = 0.58; p = 0.000013)

    Reported statistics
    • correlation, significance from the Student’s t distribution, r = 0.58, p = 1.3 × 10⁻⁵
    Result

    Over 24 rats and 48 values r = 0.552 (95% CI 0.318 to 0.723), p = 4.7e-05, within 0.522 to 0.638. With the fixed penalty r = 0.577, p = 1.8e-05. Location alone r = 0.470, frequency alone r = 0.736.

    Deviations from the paper’s method
    • The halves use the penalty weight chosen on all of that rat's trials in that context.
  • Reproduced

    The recordings yielded 3,495 putative single units, 2,047, 832, 258, 94 and 54 from five rats in FOF and 112 and 98 from two rats in mPFC.

    The cell files hold 3,495 units, FOF 2,047 (P100), 832 (P059), 258 (P055), 94 (P095) and 54 (P049), mPFC 112…

    Results, Flexible evidence accumulation in rats, paragraph 2; Methods, Analysis of neural data, paragraph 1data in GitHub Brody-Lab/flexible_decision_making_rats at commit 0ea8fdb7c56d755d99155171cc314dbbc24393ac (data/neural_data, data/rat_for_each_neuron.mat)units-per-rat
    From the paper

    In total, 3,495 putative single units were recorded from 5 rats in FOF (number of units in each rat: 2,047, 832, 258, 94, 54), while 210 units were recorded from 2 rats in mPFC (number of units in each rat: 112, 98)

    Result

    The cell files hold 3,495 units, FOF 2,047 (P100), 832 (P059), 258 (P055), 94 (P095) and 54 (P049), mPFC 112 (P101) and 98 (P102), and rat_for_each_neuron.mat agrees with every file. The Methods sentence that puts all 3,495 in FOF counts the 210 mPFC units as well.

  • Reproduced

    Neural slope indices vary across rats and features, with no apparent correlation between the location and frequency indices across the seven recorded rats.

    Neural slope indices range from -0.221 to 1.728 (location) and 0.465 to 1.500 (frequency); across the 7 rats r…

    Results, Pulse analyses distinguish solutions, paragraph 2; Figure 3hdata in GitHub Brody-Lab/flexible_decision_making_rats at commit 0ea8fdb7c56d755d99155171cc314dbbc24393ac (data/combined_kernels.mat)fig3h-neural-uncorrelated
    From the paper

    Instead, there was high variability across rats in this measure, and even across features within a single rat; no apparent correlation between the LOC and FRQ slope indices was visible

    Result

    Neural slope indices range from -0.221 to 1.728 (location) and 0.465 to 1.500 (frequency); across the 7 rats r = -0.177 (95% CI -0.821 to 0.665), p = 0.704. The Methods say differential pulse responses only showed positive (or zero) slope indices; three location indices here are negative (P049 -0.221, P101 -0.045, P095 -0.007). The criterion does not test this.

    Deviations from the paper’s method
    • The per-neuron kernels are the paper's fitted ones from its repository; the GLM was not refitted from spikes.
    • The paper gives no test; a two-sided Pearson correlation was chosen before the analysis.
  • Reproduced

    The behavioural slope index and the neural slope index are anti-correlated across rats and features (r = -0.73, P < 0.01), and for location (r = -0.71) and frequency (r = -0.71) alone (P < 0.1).

    Behavioural slope indices from the dandiset (Methods selection, bins 14 to 26) against neural indices from the…

    Results, Linking neural and behaviour variability, paragraph 1; Figure 5duses data from outside the datasetfig5d-behaviour-neural
    From the paper

    We found robust support in the data for the theoretical prediction that the two measures should be correlated ... with the correlation also holding for LOC evidence alone ... or for FRQ evidence alone

    Reported statistics
    • both features: r = -0.73, p < 0.01 (n = 7 rats, two features each)
    • location: r = -0.71, p < 0.1 (n = 7 rats)
    • frequency: r = -0.71, p < 0.1 (n = 7 rats)
    Result

    Behavioural slope indices from the dandiset (Methods selection, bins 14 to 26) against neural indices from the paper's kernels give r = -0.697 over 14 values (95% CI -0.896 to -0.264), p = 0.0056, within -0.803 to -0.657. Location alone r = -0.675 (p = 0.096), frequency alone r = -0.772 (p = 0.042); the paper reports -0.71 for each with P < 0.1, and both hold at that level. With the code's 0.65 and 0.6 selection and penalty 200, r = -0.765 (p = 0.0014), and the paper's saved behavioural indices give -0.768. The match of neurons to rats, which this claim needs, holds for every cell; the session-level link that fails in neural-link is not used here.

    Deviations from the paper’s method
    • The Methods selection keeps 23,014 and 25,847 trials of P049 and P059 against 135,001 and 162,317 under the code's selection, and their location indices change sign (0.131 against -0.432, 1.292 against -0.613).
    • Neural kernels are the paper's fitted ones, not refitted from spikes.
    • The result is close to the tolerance and depends on P049 and P059. With those two rats from the code's selection r = -0.834, and with the code's selection and cross-validated penalty r = -0.830, both beyond the tolerance on the negative side; leaving out one rat at a time gives -0.655 to -0.895, inside the tolerance for 4 of 7. All five 14-point correlations shown are negative with p < 0.01.

Partially reproduced2

  • Partially reproduced

    The study used 26 male Long-Evans rats, aged between 6 and 24 months.

    26 subjects, all male Long Evans, one date of birth each.

    Methods, Subjectssubjects
    From the paper

    All subjects were male Long-Evans rats between the ages of 6 and 24 months ... A total of 26 rats were used for the experiments presented in this study

    Result

    26 subjects, all male Long Evans, one date of birth each. Ages at the 8,849 selected sessions are 3.0 to 39.1 months (median 15.4); 0.913 lie within 5.4 to 26.4 months and 0.844 within 6 to 24. Eighteen rats have selected sessions before 5.4 months and eight after 26.4. The dates of birth put 25 rats at 1.6 to 2.7 months at their first session in the dandiset; P189 is at 14.1 months, on the day P187 (born 2019-02-21) starts, and its date of birth (2018-02-21) may be a year early.

  • Partially reproduced

    Bilateral optogenetic silencing of the frontal orienting fields during the stimulus impairs performance of the task (three rats).

    Four rats have opto sessions (P116 47, P124 74, P127 4 and P131 88 with at least 100 valid trials).

    Results, Flexible evidence accumulation in rats, paragraph 2; Extended Data Figure 4ged4-bilateral-fof-impairs
    From the paper

    bilateral optogenetic silencing of rat FOF demonstrated that they are required for accurate performance of the task

    Result

    Four rats have opto sessions (P116 47, P124 74, P127 4 and P131 88 with at least 100 valid trials). With bilateral full-trial epochs accuracy is lower than on control trials in the same sessions with p < 0.05 in 2 of the 3 rats with most sessions, P116 (0.639 against 0.733, 873 trials, p below 1e-4) and P131 (0.686 against 0.727, 1,988 trials, p = 0.0001). P124 is higher (0.712 against 0.687, p = 0.17) and P127 lower but not significantly (0.603 against 0.634, p = 0.55). Any bilateral epoch gives 2 of 3 and 2 of 4 as well. Every trial with an epoch has the laser connected; with laser-connected trials only the accuracies and p values are the same.

    Deviations from the paper’s method
    • The paper does not say which three rats were analysed, which sessions, or its test; the readings and the Fisher test were chosen before the analysis.

Not reproduced1

  • Not reproduced

    Choice axes estimated separately in the two contexts are essentially parallel (average angle 1.6 degrees, not different from 0 in 6 of 7 rats).

    By ExtDataFigure5ag.m on the paper's per-context kernels, the angle the code plots (the two context choice…

    Results, Flexible evidence accumulation in rats, paragraph 3; Extended Data Figure 5data in GitHub Brody-Lab/flexible_decision_making_rats at commit 0ea8fdb7c56d755d99155171cc314dbbc24393ac (data/combined_kernels_per_context.mat)choice-axes-parallel
    From the paper

    we found that the choice axes, estimated separately for each of the two contexts, were essentially parallel (average angle between contexts = 1.6°; not significantly different from 0 (P > 0.1) for 6 out of 7 rats

    Result

    By ExtDataFigure5ag.m on the paper's per-context kernels, the angle the code plots (the two context choice axes projected on the first 3 principal components of both contexts' choice kernels, folded to at most 90 degrees) is 5.53, 7.91, 4.49, 1.82, 1.12, 4.25 and 8.00 degrees (P049, P055, P059, P095, P100, P101, P102), mean 4.73, against the reported 1.6 (tolerance 1.44 to 1.76); no rat is in the tolerance. The 3 components explain 0.85 to 0.94 of the variance. The full-space angle, which the code computes first and overwrites, averages 40.34 (29.43 folded). All units of each rat have fits in both contexts. The reported test against 0 (not different from 0 in 6 of 7 rats) is a permutation test the Methods describe, shuffling the trials' context labels and recomputing both axes; it is not in the repository's code and needs the per-neuron kernels refitted for every shuffle, so it was not run.

    Deviations from the paper’s method
    • The criterion was corrected after the first verification round to follow the angle the code plots; it first described only the full-space angle, now a variant. Both are outside the tolerance.

Not tested in a notebook 4

1 methods underspecified, 3 method cannot be run here

Blocked4

  • Blocked

    Choice-related population activity in FOF evolves along an essentially one-dimensional line during the stimulus (73.3% of variance; 81.3% for the two-dimensional choice subspace).

    Figure1e.m projects the per-context choice kernels on principal components but computes neither 81.3% nor…

    Methods underspecifiedResults, Flexible evidence accumulation in rats, paragraph 3; Figure 1edata in GitHub Brody-Lab/flexible_decision_making_rats at commit 0ea8fdb7c56d755d99155171cc314dbbc24393ac (data/Arrays_Pagan, mbtdr)fig1e-choice-axis
    From the paper

    the two-dimensional subspace that best accounts for the contribution of the animal’s choice to the neural activity (accounting for 81.3% of the variance) ... this choice-related information in firing rates evolved along an essentially one-dimensional straight line in neural space (accounting for 73.3% of the variance)

    Result

    Figure1e.m projects the per-context choice kernels on principal components but computes neither 81.3% nor 73.3%, and the text does not say which kernels, time window or normalisation the percentages refer to. The data (combined_kernels_per_context.mat, and the mTDR fits in data/Arrays_Pagan) are public in the paper's repository.

  • Blocked

    In FOF, trajectories for different evidence strengths separate along each sensory axis whether the feature is relevant or irrelevant, so irrelevant information is not gated out before frontal cortex.

    Needs the mTDR fits of the MATLAB toolbox in the repository's mbtdr folder (with minFunc) on…

    Method cannot be run hereResults, Flexible evidence accumulation in rats, paragraph 2; Figure 1fdata in GitHub Brody-Lab/flexible_decision_making_rats at commit 0ea8fdb7c56d755d99155171cc314dbbc24393ac (data/Arrays_Pagan)fig1f-irrelevant-encoded
    From the paper

    We found that trajectories for different evidence strengths were clearly separated along the axis of each sensory feature ... This was true regardless of whether the feature was relevant or irrelevant

    Result

    Needs the mTDR fits of the MATLAB toolbox in the repository's mbtdr folder (with minFunc) on data/Arrays_Pagan. MATLAB cannot be installed in the entry's locked Python environment and the toolbox was not ported.

  • Blocked

    RNNs trained by backpropagation through time favour selection vector modulation.

    Needs 1,000 RNNs trained by backpropagation through time (train_model.py in flexible_decision_making_rnn at…

    Method cannot be run hereFigure 3adata in GitHub Brody-Lab/flexible_decision_making_rnn at commit 13cd24544258da2e3d846115afb075443db8a8a1fig3a-trained-rnn-svm
    From the paper

    Distribution of 1,000 RNNs trained using backpropagation through time: networks favoured SVM

    Result

    Needs 1,000 RNNs trained by backpropagation through time (train_model.py in flexible_decision_making_rnn at commit 13cd245) and their linearisation; the repository holds three trained models. Training them is far beyond the 30-minute limit.

  • Blocked

    In RNNs engineered across the solution space, neural and behavioural slope indices are tightly anti-correlated.

    The engineered RNNs and their pulse and behavioural kernels are built by MATLAB scripts (handcraft_model.m and…

    Method cannot be run hereFigure 5cdata in GitHub Brody-Lab/flexible_decision_making_rnn at commit 13cd24544258da2e3d846115afb075443db8a8a1fig5c-engineered-rnn
    From the paper

    RNN models follow the theoretical prediction, with anti-correlated slope indices for neural differential pulse kernels and differential behavioural kernels

    Result

    The engineered RNNs and their pulse and behavioural kernels are built by MATLAB scripts (handcraft_model.m and others in flexible_decision_making_rnn at commit 13cd245), which cannot run in the entry's environment and were not ported.

Notes on the paper

What the attempts found about the paper itself: a method or rule it does not give, a place where it disagrees with itself, published code that does something else. What they found about the data is on each dataset’s page.

  • Selection not documentedThe paper's code also requires a per-session `good` flag that the Methods do not describe and the dandiset does not hold, and caps relative weights at 1; neither changes the selection except for one P059 session.#
  • Published code disagreesThe Methods describe ridge regression with the regulariser chosen by cross-validation; the code adds a fixed penalty of 200 on squared differences of neighbouring weights. The code also uses looser selections (0.65 correct and 0.6 index) for the recorded rats in Figure 5d and for Extended Data Figure 1e than the Methods' 0.7.#
  • Published code disagreesThe paper's own code (ExtDataFigure5ag.m), applied to its own fitted per-context kernels, gives angles of 1.1 to 8.0 degrees between the context choice axes (mean 4.7), not the reported average of 1.6 degrees. The permutation test of each angle against 0 that the Methods describe is not in the code.#
  • Paper inconsistentThe Methods say 3,495 units were recorded from 5 rats in FOF and list FOF counts that sum to 3,285; the 3,495 include the 210 mPFC units. The main text calls a converging differential behavioural kernel a slope index above 0, while the Methods and the code give converging kernels negative indices, as the data have.#

Notebooks

Every registered entry that uses the paper’s datasets. An entry can hold several notebooks, and can use more than one dataset.

Reproduction Context-dependent evidence accumulation in rats (Pagan et al. 2025)

Tests the findings of Pagan, Tang, Aoi, Pillow, Mante, Sussillo and Brody (2025) on dandiset 001550, which holds the behaviour of 26 rats trained on a task that switches between accumulating location and frequency evidence. It links the dandiset to the paper's published behavioural tables, checks the session statistics and selection, fits the behavioural pulse kernels and their slope indices, tests the optogenetic inactivation, and, with the paper's neural data from GitHub, the link between behavioural and neural slope indices. All files

Environment: Python 3.13, 100 packages pinned in requirements.lock.txt; CI runs each notebook from a new environment built from it.

Verification

  • Round 1
    2026-10-19
    Agreed with 23 of 23 outcomes. Independent agent run by CatalystNeuro (same harness, separate context, did not write the notebook). Reviewed: The first executed notebook with the conclusion cells and the summary removed, the helper module and the claims file, with the paper's full text. The verifier recomputed the choice-axis angles from combined_kernels_per_context.mat, read ExtDataFigure5ag.m and get_neural_slope.m, listed the version's assets, and tested bin_pulses, relative_weights, slope_index, fit_logistic and opto_trials on synthetic inputs.
  • Round 2
    2026-10-19
    Agreed with 23 of 23 outcomes. Independent agent run by CatalystNeuro (same harness, separate context, did not write the notebook). Reviewed: The full executed notebook of the first revision with its conclusions and summary, the helper module, the claims file, the README and this attempt record, with the paper's full text (paper/PMC11903320.txt).

Method differences

How the tests differed from the paper’s method or data, and the claims each applies to.

  • The paper gives no test; a two-sided Pearson correlation was chosen before the analysis.fig4-loc-frq-uncorrelated fig3h-neural-uncorrelated
  • The paper's `good` flag is not in the dandiset and is not applied; it removes no session that passes the other criteria.session-link
  • The Methods do not say which sessions or trials are counted; four readings are shown and two match.trials-per-session
  • Whether blocks or switches are counted, and over which sessions, is not stated; two of four readings match.blocks-per-session
  • Duration is taken from the first trial start to the last trial stop; the files hold no session end time.session-duration
  • Tested by the Methods' logistic regression on generative strengths, not by the four-parameter psychometric fits that the figure shows.fig1c-context-selection
  • The paper's code uses a 0.65 selection for this analysis; the Methods selection is the main result and the code's is a variant.ed1e-switch-four-trials
  • The paper does not define the start of training or when a rat counts as trained; four pairings of readings are shown, three match.ed2g-learning-2-5-months
  • The Methods' ridge penalty is read as the code's penalty on neighbouring weight differences, with its weight chosen by 3-fold cross-validation over 20, 200 and 2000 (chosen weights 20 to 2000); the code fixes it at 200.fig4-converging
  • The differential kernel is divided by its largest absolute value before the line fit, as the code does; the Methods do not say.fig4-converging
  • The halves use the penalty weight chosen on all of that rat's trials in that context.ed3g-halfsplit
  • The paper does not say which three rats were analysed, which sessions, or its test; the readings and the Fisher test were chosen before the analysis.ed4-bilateral-fof-impairs
  • The neural files carry no session identifier; cells are matched by their trial sequence.neural-link
  • The per-neuron kernels are the paper's fitted ones from its repository; the GLM was not refitted from spikes.fig3h-neural-uncorrelated
  • The criterion was corrected after the first verification round to follow the angle the code plots; it first described only the full-space angle, now a variant. Both are outside the tolerance.choice-axes-parallel
  • The Methods selection keeps 23,014 and 25,847 trials of P049 and P059 against 135,001 and 162,317 under the code's selection, and their location indices change sign (0.131 against -0.432, 1.292 against -0.613).fig5d-behaviour-neural
  • Neural kernels are the paper's fitted ones, not refitted from spikes.fig5d-behaviour-neural
  • The result is close to the tolerance and depends on P049 and P059. With those two rats from the code's selection r = -0.834, and with the code's selection and cross-validated penalty r = -0.830, both beyond the tolerance on the negative side; leaving out one rat at a time gives -0.655 to -0.895, inside the tolerance for 4 of 7. All five 14-point correlations shown are negative with p < 0.01.fig5d-behaviour-neural

Provenance

Attempt record
pagan-2025-01
Paper
Individual variability of neural computations underlying flexible decisions
Date
2026-10-18
Made by
An agent, run by CatalystNeuro
Dataset
DANDI:001550 (on DANDI)
Version
0.260916.0811 (doi:10.48324/dandi.001550/0.260916.0811)
Check that the dataset is the paper’s data
Reproduced The dandiset's sessions can be linked to the paper's published per-session behavioural tables, and the linked records agree on trial counts, outcomes, evidence and pulse timing.
Sessions are matched by rat and session name taken from the source file names in the paper's tables. Of 15,278 paper sessions with valid trials, 15,277 (0.9999) are in the dandiset; the missing one, P189 TaskSwitch6-210516a, has 27 valid trials. In all 15,277 the number of valid trials and the fraction correct are equal, and both relative weights agree to 1e-6 in 0.898; of the 1,553 that differ, 861 agree once this attempt's values are capped at 1 as the paper's table does. Of the 692 left, 627 have a missing value on both sides, 5 in the paper's table only, and 60 differ with both values present (median difference 0.87 after capping, not explained); 3 of the 692 are in the paper's selection. In 20 seeded sessions every valid trial agrees on context, correct side, strengths, choice, outcome and position in block, and 0.99996 of 10 ms pulse bins agree. Over every matched session, 627 have an empty per-trial record in the paper's tables; in the other 14,650 the 7,447,692 valid trials agree on every per-trial field and position in block, and 0.99996 of 50 ms pulse bins agree over the 6,532,005 trials whose pulses were binned. The dandiset's Methods selection keeps all 8,843 sessions of the paper's selection plus 6 (5 P187 and P189 sessions not in the paper's tables, and P059 TaskSwitch4-170331a, whose relative weight of 1.112 the paper's table caps at 1.0). Per-rat selected trial counts equal the paper's numhits for 23 of 26 rats and exceed them by 213 (P059), 1,442 (P187) and 609 (P189).
Check that the dataset is the paper’s data
Not reproduced The neurons in the paper's published neural data can be linked to the dandiset's rats and sessions; they come from 199 sessions of 7 rats.
All 7 rats are in the dandiset and every cell file names one of them. Under the criterion's rule (the cell's trials equal a contiguous run of one session's valid trials) 2,371 of 3,495 cells (0.678) match one session and none matches more than one; they come from 110 sessions against 199. With gaps allowed (a variant) 3,269 cells (0.935) match exactly one session, from 112 sessions; 226 cells match none, 189 of them P100's. The neural files leave out some trials of a session, so the contiguous rule is stricter than needed, but neither rule finds 199 sessions. Searching every TaskSwitch protocol (adding P100's 13 TaskSwitch4repeat sessions) gives 2,425 contiguous matches (0.694) from 113 sessions and 3,349 with gaps (0.958) from 115; the 146 cells left share a median 0.43 of their 8-trial windows with their best session, and 61 of those 64 best sessions are already matched.
Run on
GitHub Actions
Harness
Claude Code (GitHub Actions)
Model
claude-opus-5-5
Protocol
pilot-7

Transcripts of the agent runs

Each run’s prompt, messages and tool calls, with long output cut and the text of the paper left out, and its final report.

Other data and code used 1

What the attempt used that is not in the dataset: other data, and the paper’s code. Each is as the attempt’s record describes it.

  • Brody-Lab/flexible_decision_making_rats GitHub

    The paper's per-session behavioural tables (data/Sessions_trials, for the link to the dandiset), its per-rat trial counts (data/numsessions_all_rats.mat) and saved behavioural regression weights and slope indices (data/logistic_regression_results, data/logistic_regression_results_ephys_rats.mat), used as reference values.

    Source as recorded: https://github.com/Brody-Lab/flexible_decision_making_rats at commit 0ea8fdb7c56d755d99155171cc314dbbc24393ac

Badges for this paper

Encore: 14 findings reproduced, Pagan et al. 2025

It counts the paper’s findings reproduced in full by attempts an independent verifier has checked. To show it beside the paper, on a lab’s site or in a repository’s README, linked to this page:

<a href="https://encorescience.org/papers/pagan-2025/"><img src="https://encorescience.org/badge/papers/pagan-2025.svg" alt="Encore: 14 findings reproduced, Pagan et al. 2025"></a>

Or as Markdown:

[![Encore: 14 findings reproduced, Pagan et al. 2025](https://encorescience.org/badge/papers/pagan-2025.svg)](https://encorescience.org/papers/pagan-2025/)

The same numbers are in this page’s JSON, under badge (how it is counted).