OSCR

Mesocorticostriatal Reinforcement Learning of State Representation and Value with Implications for the Mechanisms of Schizophrenia.

Code ↔ Paper

2 matches between paragraphs of the paper and lines of its authors' code, computed by the harvester (lexical-v1). Click a colored paragraph or line to see its counterpart.

One block of code here has a permanent identifier (oscr:b:…), listed with the matches below: citable for good, with a page of its own. Select a match and press Cite to copy it. What a block identifier is.

The 2 matches · all tie a paragraph to a whole file without given lines: weak matches, whose lines are not tinted
  1. [1] § Results › Simulated inputs to the striatum and possible correspondences to experimental results ↔ OVRNNRB1probrew.m, the whole file · a weak match · score 0.55 · fMRI, BOLD signal, sum, striatal units, RNN units, corticostriatal · block oscr:b:PQVNHYBBGV88D-Q · Report a mismatch
  2. [2] § Results › Simulated inputs to the striatum and possible correspondences to experimental results ↔ OVRNNRB1probrew.m, the whole file · a weak match · score 0.54 · fMRI, BOLD signal, proxy, sum, striatum, reward · block oscr:b:PQVNHYBBGV88D-Q · Report a mismatch

Paper

Loaded from Europe PMC by your browser; OSCR does not store it: doi.org · Europe PMC

The paper is loaded when this pane is shown.

The authors' code

MATLAB · 128 lines · 5 KB · no license · 2 matches

  1. function [os,xs,Vs,VDs,ds,w,wsd,bdc,bds,wbrs,P,meanPs,CDtoS,ef] = OVRNNRB1probrew(brdmode,modeltype,abase,g,drs,rewp,ndim,ns,nd,nt,P,iniPmean,plotyn)
  2. % OVRNNRB1probrew : code for probabilistic reward task
  3. % brdmode: 1:general, 2:two DA units receiving exclusively from two rewards, 3:brdmode 2 + another DA unit receiving evenly from two rewards
  4. % modeltype: 1:oVRNNrf-bio, 2:untrained RNN
  5. % abase: learning rate base, e.g., 0.1
  6. % g: time discount factor, e.g., 0.8
  7. % drs: decay rate for [cortico-striatal, striato-dopamine] weight per time-step, e.g., [0 0], [0.0002, 0.0002]
  8. % rewp: reward probability, e.g., 2/3
  9. % ndim: number of RNN units, e.g., 40
  10. % ns: number of striatal units, e.g., 10
  11. % nd: number of DA units, e.g., 5
  12. % nt: number of trials, e.g., 4000
  13. ITIs = NaN(1,nt);
  14. cue = [];
  15. rew = [];
  16. for k = 1:nt
  17. tmp = randperm(4);
  18. ITIs(k) = 2 + tmp(1);
  19. tmp_rand = rand;
  20. tmp_rand2 = rand;
  21. if tmp_rand <= 0.5
  22. cue = [cue [1;0] zeros(2,3+ITIs(k))];
  23. if tmp_rand2 <= rewp
  24. rew = [rew zeros(2,3) [1;0] zeros(2,ITIs(k))];
  25. else
  26. rew = [rew zeros(2,3) [0;0] zeros(2,ITIs(k))];
  27. end
  28. else
  29. cue = [cue [0;1] zeros(2,3+ITIs(k))];
  30. if tmp_rand2 <= rewp
  31. rew = [rew zeros(2,3) [0;1] zeros(2,ITIs(k))];
  32. else
  33. rew = [rew zeros(2,3) [0;0] zeros(2,ITIs(k))];
  34. end
  35. end
  36. end
  37. os = [cue; rew]; % observations
  38. if isempty(P)
  39. P = randn(ndim,ndim+4) + iniPmean; % initialization of the weights on the RNN units (combined A and B)
  40. end
  41. w = zeros(ns,ndim);
  42. wsd = zeros(nd,ns); % ones(nd,ns)/ns; %rand(nd,ns); % connections from striatum to dopamine neurons
  43. bdc = rand(ndim,nd)/nd; % fixed random connections from dopamine neurons to RNN units
  44. bds = rand(ns,nd)/nd; % fixed random connections from dopamine neurons to striatal neurons
  45. if brdmode == 1
  46. brd = rand(nd,2); % fixed random connections from the two rewards to dopamine neurons
  47. elseif brdmode == 2
  48. if nd ~= 2
  49. error('number of DA units (nd) must be 2 for brdmode=2');
  50. else
  51. brd = [1 0; 0 1];
  52. end
  53. elseif brdmode == 3
  54. if nd ~= 3
  55. error('number of DA units (nd) must be 3 for brdmode=3');
  56. else
  57. brd = [1 0; 0 1; 0.5 0.5];
  58. end
  59. else
  60. error('brdmode must be 1, 2, or 3');
  61. end
  62. ef = [0 0]; % exit flag
  63. tmpc101t = find(sum(cue,1),101,'first'); cue101time = tmpc101t(end); % time-step of cue at 101st trial
  64. tmax = 4*nt + sum(ITIs);
  65. CDtoS = NaN(2,tmax); % [Cortex_to_Striatum; Dopamine_to_Striatum]: sum of these (total inputs to striatum) is a proxy of fMRI BOLD signal at striatum
  66. Vs = NaN(ns,tmax);
  67. VDs = NaN(nd,tmax);
  68. ds = NaN(nd,tmax);
  69. Vs(:,1) = zeros(ns,1);
  70. xs = NaN(ndim,tmax);
  71. xs(:,1) = rand(ndim,1);
  72. wbrs = NaN(2,tmax); % correlation coefficient of [w&bdc; wsd&bds]
  73. meanPs = NaN(1,tmax); % time-development of mean(mean(P))
  74. meanPs(1) = mean(mean(P));
  75. for t = 2:tmax
  76. vec1 = reshape((wsd*w)',nd*ndim,1);
  77. vec2 = reshape(bdc,nd*ndim,1);
  78. [r,p] = corrcoef(vec1,vec2); wbrs(1,t) = r(1,2);
  79. vec1 = reshape(wsd',nd*ns,1);
  80. vec2 = reshape(bds,nd*ns,1);
  81. [r,p] = corrcoef(vec1,vec2); wbrs(2,t) = r(1,2);
  82. xs(:,t) = 1./(1 + exp(-P*[xs(:,t-1);os(:,t-1)]));
  83. Vs(:,t) = w * xs(:,t);
  84. if t >= 3
  85. VDs(:,t) = wsd * Vs(:,t);
  86. ds(:,t-1) = brd*rew(:,t-1) + g*wsd*Vs(:,t) - wsd*Vs(:,t-1);
  87. CDtoS(1,t) = sum(Vs(:,t)); % Cortex_to_Striatum
  88. CDtoS(2,t) = sum(bds*ds(:,t-1)); % Dopamine_to_Striatum
  89. wnew = max(0, w + (abase/(ndim/12))*(bds*ds(:,t-1))*xs(:,t-1)');
  90. wsdnew = max(0, wsd + (abase/(ndim/12))*ds(:,t-1)*Vs(:,t-1)');
  91. if modeltype == 1
  92. %P = P + abase*ds(t-1)*(xs(:,t-1).*(1-xs(:,t-1)).*b')*[xs(:,t-2);os(:,t-2)]';
  93. y = (xs(:,t-1)<0.5).*xs(:,t-1).*(1-xs(:,t-1)) + (xs(:,t-1)>=0.5)*0.5*0.5;
  94. P = P + abase*(y.*(bdc*ds(:,t-1)))*[xs(:,t-2);os(:,t-2)]';
  95. end
  96. w = wnew;
  97. wsd = wsdnew;
  98. end
  99. meanPs(t) = mean(mean(P));
  100. w = w * (1 - drs(1));
  101. wsd = wsd * (1 - drs(2));
  102. if (t>=cue101time) && (max(max(w))==0)
  103. ef(1) = 1;
  104. end
  105. if (t>=cue101time) && (max(max(wsd))==0)
  106. ef(2) = 1;
  107. end
  108. end
  109. if plotyn
  110. F = figure;
  111. A = axes;
  112. hold on;
  113. set(F,'Position',[65 75 600 780]);
  114. subplot(6,1,1); hold on; plot(VDs(1,end-50:end),'r'); plot(VDs(2,end-50:end),'b');
  115. if nd >= 3
  116. plot(VDs(3,end-50:end),'g');
  117. end
  118. subplot(6,1,2); hold on; plot(cue(1,end-50:end),'r:'); plot(rew(1,end-50:end),'r'); plot(cue(2,end-50:end),'b:'); plot(rew(2,end-50:end),'b');
  119. subplot(6,1,3); hold on; plot(CDtoS(1,end-50:end),'m'); plot(CDtoS(2,end-50:end),'c'); plot(sum(CDtoS(:,end-50:end),1),'k');
  120. subplot(6,1,4); hold on; plot([1:tmax],wbrs(1,:));
  121. subplot(6,1,5); hold on; plot([1:tmax],wbrs(2,:));
  122. %subplot(6,1,5); hold on; plot([1:ns],bds(:,1),'r'); plot([1:ns],wsd(1,:),'b'); plot([ns+1:2*ns],bds(:,2),'m'); plot([ns+1:2*ns],wsd(2,:),'c');
  123. subplot(6,1,6); hold on; plot([1:tmax],meanPs);
  124. end

OVRNNRB1probrew.m at commit 81d0d33, no license · at the source

Overview

Authors: Kenji Morita1,2, Arvind Kumar3,4
ORCID iDs: Kenji Morita
  1. Physical and Health Education, Graduate School of Education, The University of Tokyo, Tokyo 113-0033, Japan
  2. International Research Center for Neurointelligence (WPI-IRCN), The University of Tokyo, Tokyo 113-0033, Japan
  3. Division of Computational Science and Technology, School of Electrical Engineering and Computer Science, KTH Royal Institute of Technology, Stockholm SE-100 44, Sweden
  4. Science for Life Laboratory, Solna 17121, Sweden
Dates: received 15 September 2025; accepted 24 February 2026; published online 22 April 2026; in print 22 April 2026
Type: Research article · Language: English
License: CC BY
Identifiers: DOI 10.1523/jneurosci.1762-25.2026 · PMID 41775629 · PMCID PMC13244656 · OpenAlex W7133338368
Open access: hybrid, a free copy (OpenAlex)
Status: code verified (how the code is found and verified)
Categories: human (organism), schizophrenia / psychosis (population), computational (subfield)
Methods: Statistics
Keywords: dopamine, excitation/inhibition balance, feedback alignment, recurrent neural networks, reinforcement learning, schizophrenia
MeSH: Cerebral Cortex*, Corpus Striatum*, Models, Neurological*, Reinforcement Machine Learning*, Reinforcement, Psychology*, Schizophrenia*, Animals, Dopamine, Humans, Motivation, Reward (* major topic)
Journal subjects: Behavioral/Cognitive
Topic: Schizophrenia research and treatment (Psychiatry and Mental health, Medicine), according to OpenAlex
Funding: Japan Society for the Promotion of Science (JSPS) (25H02594); Strategic research area StratNeuro
Citations: not cited yet (Europe PMC); 121 references in the paper

Abstract

Mesocorticostriatal dopamine projections are crucial for value learning, motivational control, and cognitive functions. However, while dopamine's role in value learning as reward-prediction-error (RPE) has been much understood, precise roles in motivational control and cognitive functions remain more elusive. Computationally, this corresponds to that while the operation of mesostriatal dopamine could be minimally described by simple reinforcement learning (RL) models with one-dimensional reward/RPE and fixed state representation, (1) how reward-specific motivational control can be achieved through heterogeneous dopamine responses, and (2) how sophisticated cortical state representation can be formed through mesocortical dopamine, cannot be captured by such simple models. To address both of these at once, we combined recent models for each of them: the “Reward Bases (RB),” which achieved reward-specific motivational control through multidimensional RPE (but with fixed cortical representation), and the “online value-recurrent-neutral-network (OVRNN),” which achieved state representation learning through training of RNN by RPE (but of one-dimensional). We show the combined model can achieve both functions simultaneously via double “feedback alignments” of the cortical and striatal downstream connections to the mesocorticostriatal dopamine projections. Crucially, cortical inhibition-dominance is a key for successful learning. Excessive excitation leads to aberrant persistent activity, which disrupts the alignments and impairs reward-specific motivational control and credit assignment. This implies how negative and positive symptoms of schizophrenia could emerge from excitation/inhibition imbalance, and we show how our model could explain altered brain activations in patients. Our model thus provides an integrated computational account for dopamine's functions, with implications on how its dysfunctions link to schizophrenia.

Reproduced under the paper's license (CC BY), from the paper cited above.

Repository

Its files are read in the Code ↔ Paper reader above, with 2 matches between paragraphs and lines of code.

kenjimoritagithub/OVRNN-RB

License: none: the authors keep all their rights
State: the link answers, verified on 29 September 2026
Evidence: files inventoried
Commit: 81d0d336ef92ccd1557322262ec7f6031adcf3e8, 5 March 2026
Languages: MATLAB (21)
Size: 22 files, 21 scripts
Software Heritage: not archived
Found in: “Code accessibility”
Holds: README
Not found: license file, CITATION.cff, environment file, tests, continuous integration, documentation
Availability: 1 check, the latest on 29 September 2026: the link answers
  • 29 September 2026: the link answers
22 files

Code accessibility

The codes for simulations and analyses are available at GitHub: https://github.com/kenjimoritagithub/OVRNN-RB.

Reproduced under the paper's license (CC BY), from the paper cited above.

Tracing map

Proposed by the machine: these links were found in the paper and verified at the source, without human review. The map will receive a Zenodo DOI once one of the paper's authors has validated it with their ORCID.

What the map holds:

  • 1 repository of the authors' code, each at its verified commit, with its license and how the link was found in the paper;
  • 21 scripts, each with its path and the digest of its content;
  • 2 matches between paragraphs of the paper and lines of the code (method lexical-v1);
  • neither the text of the paper nor the code itself.

Its JSON (tracing-map.json) is deposited on Zenodo with its DOI once the map is validated.

Data

No dataset and no data link were found in the paper.

Versions

The history of this record: each version stored by the harvester or made by a correction of its authors or of the maintainers of its code, and what changed in its facts. The texts of the paper (its abstract, its availability statements) are not part of it; versions that changed only those are not listed.

Version 1, 29 September 2026: the first record

Recorded: type, language, journal, volume, issue, pages, dates, 2 authors, 6 keywords, 11 MeSH terms, 2 funders, 121 references.

Cite

This paper

Morita, K., & Kumar, A. (2026). Mesocorticostriatal Reinforcement Learning of State Representation and Value with Implications for the Mechanisms of Schizophrenia. The Journal of neuroscience : the official journal of the Society for Neuroscience, 46(16), e1762252026. https://doi.org/10.1523/jneurosci.1762-25.2026

BibTeX

@article{morita2026mesocorticostriatal,
author = {Morita, Kenji and Kumar, Arvind},
title = {{Mesocorticostriatal Reinforcement Learning of State Representation and Value with Implications for the Mechanisms of Schizophrenia}},
journal = {The Journal of neuroscience : the official journal of the Society for Neuroscience},
year = {2026},
month = apr,
volume = {46},
number = {16},
pages = {e1762252026},
publisher = {Society for Neuroscience},
issn = {0270-6474},
doi = {10.1523/jneurosci.1762-25.2026},
url = {https://doi.org/10.1523/jneurosci.1762-25.2026},
pmid = {41775629},
pmcid = {PMC13244656}
}

RIS

TY - JOUR
AU - Morita, Kenji
AU - Kumar, Arvind
TI - Mesocorticostriatal Reinforcement Learning of State Representation and Value with Implications for the Mechanisms of Schizophrenia
T2 - The Journal of neuroscience : the official journal of the Society for Neuroscience
J2 - J Neurosci
PY - 2026
DA - 2026/04/22
VL - 46
IS - 16
SP - e1762252026
SN - 0270-6474
PB - Society for Neuroscience
DO - 10.1523/jneurosci.1762-25.2026
UR - https://doi.org/10.1523/jneurosci.1762-25.2026
LA - en
ER -

CSL-JSON

{
"id": "10.1523/jneurosci.1762-25.2026",
"type": "article-journal",
"title": "Mesocorticostriatal Reinforcement Learning of State Representation and Value with Implications for the Mechanisms of Schizophrenia",
"container-title": "The Journal of neuroscience : the official journal of the Society for Neuroscience",
"author": [
{
"family": "Morita",
"given": "Kenji"
},
{
"family": "Kumar",
"given": "Arvind"
}
],
"container-title-short": "J Neurosci",
"volume": "46",
"issue": "16",
"page": "e1762252026",
"DOI": "10.1523/jneurosci.1762-25.2026",
"PMID": "41775629",
"PMCID": "PMC13244656",
"ISSN": "0270-6474",
"publisher": "Society for Neuroscience",
"URL": "https://doi.org/10.1523/jneurosci.1762-25.2026",
"language": "en",
"issued": {
"date-parts": [
[
2026,
4,
22
]
]
}
}

The tracing map gets a citation of its own once an author has validated it and it has a DOI.

Similar papers

The papers with a page that share the most with this one: the tools found in their code, their categories, datasets, cited references and authors, the rarest counting most.

[1] doi:10.7554/elife.104101 [code]
Online reinforcement learning of state representation in recurrent network supported by the power of random feedback and biological constraints.
Journal: eLife
In common: 20 references, author Kenji Morita
[2] doi:10.1038/s41467-026-73994-1 [code]
Prediction error correlates in the striosome-dopamine circuit emerge from information gain.
Journal: Nature communications
In common: 14 references
[3] doi:10.1038/s41593-025-02104-z [code]
Estrogen modulates reward prediction errors and reinforcement learning.
Journal: Nature neuroscience
In common: 10 references
[4] doi:10.1371/journal.pcbi.1012580 [code]
Reward Bases: A simple mechanism for adaptive acquisition of multiple reward types.
Journal: PLoS computational biology
In common: 9 references
[5] doi:10.1523/eneuro.0422-22.2023 [code]
Opponent Learning with Different Representations in the Cortico-Basal Ganglia Circuits.
Journal: eNeuro
In common: 4 references, author Kenji Morita
[6] doi:10.1038/s41467-024-55504-3 [code]
Generalized cue reactivity in rat dopamine neurons after opioids.
Journal: Nature communications
In common: 8 references
[7] doi:10.1523/eneuro.0431-23.2024 [code]
The Computational Bottleneck of Basal Ganglia Output (and What to Do About it).
Journal: eNeuro
In common: 7 references
[8] doi:10.1038/s41562-025-02340-0 [code]
A habit and working memory model as an alternative account of human reward-based learning.
Journal: Nature human behaviour
In common: 7 references
[9] doi:10.1016/j.isci.2026.117130 [code]
Region-specific weighting of sensory intensity and reward prediction error by dopamine signals.
Journal: iScience
In common: 7 references
[10] doi:10.1038/s41593-023-01542-x [code]
Dopamine-independent effect of rewards on choices through hidden-state inference.
Journal: Nature neuroscience
In common: 7 references

Contribute

The authors of this paper can claim it, correct its record and validate its tracing map, and the maintainers of its code (its owner, or a public member of its organization) correct what it says of their repository; anyone signed in can ask for its removal. Every request goes to OSCR's own machine, which answers it; your account page follows them.

Sign in with ORCID to claim this paper as one of its authors, correct its record or validate its tracing map: when the paper's metadata lists your ORCID iD, you are recognized at once. Maintainers of its code: sign in with GitHub, then claim the repository on your account page.

Add the badge to the code's README

OSCR: the badge of this paper

If you are an author or a maintainer of this paper's code, you can add this badge. It says what OSCR knows of the paper (its code, its validated tracing map) and links the code to this page. Paste one of these snippets under the README's title. Keep the two marks around it, so that the badge can be replaced in place and is never added twice. OSCR changes nothing in your repository.

Markdown
<!-- oscr-badge:start -->
[![OSCR](https://openscicode.org/badge/doi/10.1523/jneurosci.1762-25.2026.svg)](https://openscicode.org/badge/doi/10.1523/jneurosci.1762-25.2026)
<!-- oscr-badge:end -->
reStructuredText
.. oscr-badge:start

.. image:: https://openscicode.org/badge/doi/10.1523/jneurosci.1762-25.2026.svg
   :target: https://openscicode.org/badge/doi/10.1523/jneurosci.1762-25.2026
   :alt: OSCR

.. oscr-badge:end
HTML
<!-- oscr-badge:start -->
<a href="https://openscicode.org/badge/doi/10.1523/jneurosci.1762-25.2026"><img src="https://openscicode.org/badge/doi/10.1523/jneurosci.1762-25.2026.svg" alt="OSCR"></a>
<!-- oscr-badge:end -->

On GitHub, open the README, choose Edit (the pencil), paste the snippet under the title, then "Commit changes".

If you choose to, you can have the badge kept up to date for you, with oscr badge --write from the command line or with the GitHub Action in your repository's workflows. Every other form and option (a card, AsciiDoc, LaTeX, shields.io) is on the badge page.

Request its removal

To ask OSCR to remove this record, the copies of its authors' scripts or its tracing map, use the removal request page: signed in, you say who you are, what to remove and why, then review and confirm the request. Published rules decide every request (how).

Discussion, reproductions, activity

Discussion: code errors and mismatches between the code and the paper about this paper and its code, from readers and its authors, beside the paper and its tracing map.

Report a mismatch between the code and the paper · Report a code error (signed in)

Reproductions: reports from readers who ran the authors' code and did not get the paper's result, what they ran, with which environment, commit and data.

Report a reproduction failure (signed in)

Versions of its code: the releases of its code tied to a version of this paper (the preprint, the accepted manuscript, the version of record…), each with the tracing map versioned with it.

Activity: what happens around this paper: new versions of its record, its map's validation, discussions and reproductions. It opens with sign-in.