Distinct roles of cortical layer 5 subtypes in associative learning.
The 3 matches · all tie a paragraph to a whole file without given lines: weak matches, whose lines are not tinted
- [1] § Methods › Computational model › IT network pretraining ↔ ET_IT_striatum-main.zip/preTrain_IT_network/IT_NN.py, the whole file · a weak match · score 0.70 · auto encoder, unsupervised learning, bottleneck, reconstructed, loss, decoder · Report a mismatch
- [2] § Methods › Computational model ↔ ET_IT_striatum-main.zip/ValueBased_model/Value_lNN.py, the whole file · a weak match · score 0.64 · synaptic weights, neural network, sigmoid, linear, modeled, prediction · Report a mismatch
- [3] § Methods › Computational model › IT network pretraining ↔ ET_IT_striatum-main.zip/ValueBased_model/Value_lNN.py, the whole file · a weak match · score 0.59 · synaptic weights, neural network, loss · 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
Python · 74 lines · 3.1 KB · CC-BY-4.0 · 2 matches
- import torch
- import torch.nn as nn
- import torch.optim as opt
- from torch.distributions.bernoulli import Bernoulli
- class Striatum_lNN(nn.Module):
- def __init__(self, input_s, IT_inpt_s, ln_rate, h_size, thalamic_input_lr=1e-3):
- """ Implement a Striatal network as a linear neural network, lNN, trying to predict the rwd """
- super().__init__()
- self.thalamic_input_s = input_s
- self.IT_inpt_s = IT_inpt_s
- # Striatum takes input x, IT input and ET input, initialise different synaptic weights for each
- self.W_thalamus = nn.Linear(input_s, h_size)
- #self.W_IT = nn.Linear(self.IT_inpt_s, h_size)
- self.W_IT = nn.Linear(self.IT_inpt_s, h_size)
- self.l_habituation = nn.Linear(h_size, 1)
- #self.l_rwd_pred = nn.Linear(h_size+self.thalamic_input_s, 1)
- self.l_rwd_pred = nn.Linear(2*h_size, 1)
- with torch.no_grad():
- self.l_rwd_pred.bias.copy_(torch.randn(1) * 0.1 - 5 *torch.ones(1)) ## Initialise values close to zero
- self.l_habituation.bias.copy_(torch.randn(1) * 0.1 - 5 *torch.ones(1)) ## Initialise values close to zero
- # Define optimizer
- self.optimizer = opt.Adam([
- #self.optimizer = opt.SGD([
- {'params': self.W_IT.parameters()},
- {'params': self.l_rwd_pred.parameters()},
- {'params': self.W_thalamus.parameters(), 'lr':thalamic_input_lr},
- {'params': self.l_habituation.parameters(), 'lr':thalamic_input_lr}
- ], lr=ln_rate )#, momentum=0.8)
- def forward(self, thalamic_pre, IT_pre):
- """ Process the cortical inputs through the two separate striatal components, then unify the two to make a prediction"""
- #thalamic_post = torch.relu(self.W_thalamus(thalamic_pre.view(-1,self.thalamic_input_s)))
- #IT_post = torch.relu(self.W_IT(IT_pre.view(-1,self.IT_inpt_s)))
- # include thalamic input as skip connection
- #IT_post = torch.cat([thalamic_pre.view(-1,self.thalamic_input_s), IT_post], dim=1)
- thalamic_post = self.W_thalamus(thalamic_pre.view(-1,self.thalamic_input_s))
- IT_post = self.W_IT(IT_pre.view(-1,self.IT_inpt_s))
- comb_inpt = torch.cat([thalamic_post.detach(), IT_post], dim=1) # thalamic weights only trained to pred rwd without cortex
- rwd_pred = torch.sigmoid(self.l_rwd_pred(comb_inpt))
- noCortex_rwd_pred = torch.sigmoid(self.l_habituation(thalamic_post))
- return rwd_pred.squeeze(), noCortex_rwd_pred.squeeze()
- def update(self, rwd_pred, noCortex_rwd_pred, RPE_grad):
- """ update the newtork based on observed rwd"""
- #torch.sum(rwd_pred,dim=0,keepdim=True).unsqueeze(0).backward(gradient=RPE.unsqueeze(0))
- batch_rwd_pred = torch.sum(rwd_pred) # use sum since they are all independent batches
- rwd_pred.backward(gradient=RPE_grad)
- no_cortex_loss = torch.mean((rwd_pred.detach() - noCortex_rwd_pred)**2) # Striatum tries to learn its own predictions from contrical inputs using the thalamic inputs
- no_cortex_loss.backward()
- self.optimizer.step()
- self.optimizer.zero_grad()
- return no_cortex_loss.detach().item()
Value_lNN.py, under CC-BY-4.0 · at the source
Overview
- Charité - Universitätsmedizin Berlin, corporate member of Freie Universität Berlin and Humboldt Universität zu Berlin, Einstein Center for Neurosciences Berlin, Berlin, Germany
- Institute for Biology, Humboldt University of Berlin, Berlin, Germany
- Centre for Neural Circuits and Behaviour, Department of Physiology, Anatomy and Genetics, University of Oxford, Oxford, United Kingdom
- Bristol Computational Neuroscience Unit, Intelligent Systems Lab, Faculty of Engineering, University of Bristol, Bristol, United Kingdom
- University of Bordeaux, CNRS, Interdisciplinary Institute for Neuroscience, IINS, UMR 5297, Bordeaux, France
- Department of Medical Neurobiology, Faculty of Medicine, Institute for Medical Research Israel-Canada (IMRIC), The Hebrew University of Jerusalem, Jerusalem, Israel
- Charité - Universitätsmedizin Berlin, corporate member of Freie Universität Berlin and Humboldt Universität zu Berlin, Neuroscience Research Center, Berlin, Germany
- Charité - Universitätsmedizin Berlin, corporate member of Freie Universität Berlin and Humboldt Universität zu Berlin, NeuroCure Cluster of Excellence, Berlin, Germany
- Bernstein Center for Computational Neuroscience Berlin, Berlin, Germany
- German Center for Neurodegenerative Diseases (DZNE) Berlin, Berlin, Germany
- Max-Delbrück Center for Molecular Medicine in the Helmholtz Association, Berlin, Germany
Abstract
Adaptive behavior relies on associating sensory cues with rewarding or aversive outcomes. In mammals, the primary sensory cortex processes stimuli and distributes information to cortical and subcortical targets. Layer 5 (L5) contains two major projection neuron classes, intratelencephalic (IT) and extratelencephalic (ET); however, their roles in associative learning remain unclear. Using transgenic mice, we identified IT and ET neurons in primary somatosensory cortex and tracked their activity with longitudinal two-photon imaging during Pavlovian conditioning with whisker stimulation. IT neurons stably encoded stimulus identity across training, whereas ET neurons showed dynamic changes that paralleled the emergence of anticipatory licking. Chemogenetic silencing of each subtype impaired learning in distinct, phase-specific ways. A reinforcement-learning model reproduced these dynamics, suggesting that IT neurons provide stable sensory representations needed to form cue-reward associations, while ET neurons encode reward expectation to refine behavior. These findings reveal complementary, cell-type-specific contributions of L5 neurons to associative learning.
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 3 matches between paragraphs and lines of code.
Zenodo 17720603
Availability: 1 check, the latest on 30 September 2026: the link answers (HTTP 200)
- 30 September 2026: the link answers (HTTP 200)
8 files
- ET_IT_striatum-main.zip/
ValueBased_model/ , Python, 257 linesTrainingLoop.py - ET_IT_striatum-main.zip/
ValueBased_model/ , Python, 74 lines, 2 matchesValue_lNN.py - ET_IT_striatum-main.zip/
ValueBased_model/ , Python, 126 linesmain.py - ET_IT_striatum-main.zip/
preTrain_IT_network/ , Python, 72 lines, 1 matchIT_NN.py - ET_IT_striatum-main.zip/
preTrain_IT_network/ , Python, 59 linesNN_AE_TrainingLoop.py - ET_IT_striatum-main.zip/
preTrain_IT_network/ , Python, 64 linesmain.py - ET_IT_striatum-main.zip/
utils.py , Python, 205 lines - ET_IT_striatum-main.zip/
README.md , Text, 6 lines
Code availability
The code used in this study are available via Zenodo at 10.5281/
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;
- 7 scripts, each with its path and the digest of its content;
- 3 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.
Data availability
The data used in this study are available via Zenodo at 10.5281/
Reproduced under the paper's license (CC BY), from the paper cited above.
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, 30 September 2026: the first record
Recorded: type, language, journal, volume, issue, pages, dates, 8 authors, 3 keywords, 11 MeSH terms, 14 funders, 50 references.
Cite
This paper
Moberg, S., Garibbo, M., Mazo, C., Gilad, A., Schmitz, D., Costa, R. P., Larkum, M. E., & Takahashi, N. (2026). Distinct roles of cortical layer 5 subtypes in associative learning. Nature communications, 17(1), 2648. https://
BibTeX
@article{moberg2026disti
author = {Moberg, Sara and Garibbo, Michele and Mazo, Camille and Gilad, Ariel and Schmitz, Dietmar and Costa, Rui Ponte and Larkum, Matthew E and Takahashi, Naoya},
title = {{Distinct roles of cortical layer 5 subtypes in associative learning}},
journal = {Nature communications},
year = {2026},
month = mar,
volume = {17},
number = {1},
pages = {2648},
publisher = {Nature Publishing Group},
issn = {2041-1723},
doi = {10.1038/
url = {https://
pmid = {41862437},
pmcid = {PMC13004866}
}
RIS
TY - JOUR
AU - Moberg, Sara
AU - Garibbo, Michele
AU - Mazo, Camille
AU - Gilad, Ariel
AU - Schmitz, Dietmar
AU - Costa, Rui Ponte
AU - Larkum, Matthew E
AU - Takahashi, Naoya
TI - Distinct roles of cortical layer 5 subtypes in associative learning
T2 - Nature communications
J2 - Nat Commun
PY - 2026
DA - 2026/
VL - 17
IS - 1
SP - 2648
SN - 2041-1723
PB - Nature Publishing Group
DO - 10.1038/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.1038/
"type": "article-journal",
"title": "Distinct roles of cortical layer 5 subtypes in associative learning",
"container-title": "Nature communications",
"author": [
{
"family": "Moberg",
"given": "Sara"
},
{
"family": "Garibbo",
"given": "Michele"
},
{
"family": "Mazo",
"given": "Camille"
},
{
"family": "Gilad",
"given": "Ariel"
},
{
"family": "Schmitz",
"given": "Dietmar"
},
{
"family": "Costa",
"given": "Rui Ponte"
},
{
"family": "Larkum",
"given": "Matthew E"
},
{
"family": "Takahashi",
"given": "Naoya"
}
],
"container-title-short":
"volume": "17",
"issue": "1",
"page": "2648",
"DOI": "10.1038/
"PMID": "41862437",
"PMCID": "PMC13004866",
"ISSN": "2041-1723",
"publisher": "Nature Publishing Group",
"URL": "https://
"language": "en",
"issued": {
"date-parts": [
[
2026,
3,
20
]
]
}
}
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.111876 [code]
- Distinct sensorimotor encoding in tuft dendrites and somata associated with action, correction, and learning.Journal: eLifeIn common: PyTorch, Matplotlib, NumPy, mouse, 10 references
- [2] doi:10.1126/sciadv.aef3715
- A cortical output channel for perceptual categorization.Journal: Science advancesIn common: mouse, 11 references
- [3] doi:10.7554/elife.98349
- Learning enhances behaviorally relevant representations in apical dendrites.Journal: eLifeIn common: mouse, 10 references
- [4] doi:10.1038/s41467-024-48924-8
- Organization of corticocortical and thalamocortical top-down inputs in the primary visual cortex.Journal: Nature communicationsIn common: systems, mouse, 9 references
- [5] doi:10.1523/eneuro.0060-22.2022 [code]
- Dendritic Compartmentalization of Learning-Related Plasticity.Journal: eNeuroIn common: Matplotlib, NumPy, mouse, 7 references
- [6] doi:10.1073/pnas.2508836122 [code]
- Autism-associated &
lt;i& gt;Scn2a& lt;/ i& gt; haploinsufficiency disrupts in vivo dendritic signaling and impairs flexible decision-making. Journal: Proceedings of the National Academy of Sciences of the United States of AmericaIn common: mouse, 8 references - [7] doi:10.1038/s41593-022-01245-9 [code]
- Pyramidal cell types drive functionally distinct cortical activity patterns during decision-making.Journal: Nature neuroscienceIn common: 9 references
- [8] doi:10.1073/pnas.2308670120 [code]
- A thalamocortical substrate for integrated information via critical synchronous bursting.Journal: Proceedings of the National Academy of Sciences of the United States of AmericaIn common: systems, 4 references, author Matthew E Larkum
- [9] doi:10.7554/elife.83702 [code]
- History information emerges in the cortex during learning.Journal: eLifeIn common: systems, mouse, 3 references, author Ariel Gilad
- [10] doi:10.1038/s41467-023-43066-9
- Nigrostriatal dopamine modulates the striatal-amygdala pathway in auditory fear conditioning.Journal: Nature communicationsIn common: mouse, 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.
Claim this paper
Correct its record
Say what each link of this record is, remove the ones that are not the paper's, add the ones that are missing. The correction becomes a new version of the record, in its Versions section.
Validate its tracing map
You validate the map as this page shows it: 1 repository of the authors' code, each at its verified commit and with its license, 7 scripts, and 3 matches between paragraphs and code (see the Code and Map sections). It then receives a DOI on Zenodo, with you (your ORCID iD) and OSCR as its creators; the code itself is not deposited.
The map's fingerprint: sha256:a57d2c2e35753ce9…
Add the badge to the code's README
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 -->
[](https://openscicode.org/badge/doi/10.1038/s41467-026-68307-5)
<!-- oscr-badge:end -->reStructuredText
.. oscr-badge:start
.. image:: https://openscicode.org/badge/doi/10.1038/s41467-026-68307-5.svg
:target: https://openscicode.org/badge/doi/10.1038/s41467-026-68307-5
:alt: OSCR
.. oscr-badge:endHTML
<!-- oscr-badge:start -->
<a href="https://openscicode.org/badge/doi/10.1038/s41467-026-68307-5"><img src="https://openscicode.org/badge/doi/10.1038/s41467-026-68307-5.svg" alt="OSCR"></a>
<!-- oscr-badge:end -->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)
Activity: what happens around this paper: new versions of its record, its map's validation, discussions and reproductions. It opens with sign-in.
