The Role of Plasticity in Replay: Stability Through Anti-Hebbian Rules.
7 blocks of code here have 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 8 matches
- [1] § Methods › Model Overview › Phase 1 Online Learning: Point Process Model for Learning ↔ scripts/poisson_proc.py, lines 84 to 109 · score 0.66 · theta modulation, tuning curves, firing rate, Poisson, track, Phase · block
oscr:b:JCKWFS6DSHXN9-B· Report a mismatch - [2] § Methods › Model Overview › Phase 1 Online Learning: Point Process Model for Learning ↔ scripts/poisson_proc.py, lines 84 to 109 · score 0.62 · tuning curve, place field, firing rate, position, theta, Phase · block
oscr:b:JCKWFS6DSHXN9-B· Report a mismatch - [3] § Methods › Simulation Data Collection ↔ scripts/plots.py, lines 245 to 340 · score 0.59 · neuron spike, state monitoring, firing rate, Brian2, ID, PC · block
oscr:b:N8G6BDJQ5EZVN-Y· Report a mismatch - [4] § Methods › Model Overview › Phase 2 Offline Replay ↔ scripts/stdp-lb.py, lines 26 to 71 · score 0.57 · mossy fiber, connection probabilities, inhibitory, MF, BCs, neurons · block
oscr:b:JC5WRT44A8RXD-F· Report a mismatch - [5] § Methods › Replay Candidate Identification and Validation ↔ scripts/spw_network-lb-CPP.py, lines 537 to 671 · score 0.54 · replay detection, PC population, bounds, ISI, BCs, linear · block
oscr:b:JRXHWZ7J5B9V4-Q· Report a mismatch - [6] § Methods › Model Overview › Phase 1 Online Learning: Point Process Model for Learning ↔ scripts/poisson_proc.py, lines 70 to 81 · score 0.54 · tuning curve, Place fields, Gaussian, linear, track, cells · block
oscr:b:544SXFN4H9KXH-2· Report a mismatch - [7] § Methods › Model Overview › Phase 1 Online Learning: Point Process Model for Learning ↔ scripts/detect_replay.py, lines 35 to 69 · score 0.54 · tuning curve, place field, animal, activity, neuron, spike · block
oscr:b:1CST9CX5MATKB-M· Report a mismatch - [8] § Methods › Replay Candidate Identification and Validation ↔ scripts/spw_network with inhibitory stdp.py, lines 547 to 671 · score 0.52 · replay detection, PC population, bounds, ISI, linear, activity · block
oscr:b:5SF8FNCJZ82GA-2· 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 · 133 lines · 5.3 KB · MIT · 3 matches
- # -*- coding: utf8 -*-
- """
- Functions used for generating hippocampal like spike trains (inhomogeneous Poisson process)
- Setup: many repetitions on a circular track or (mapped) linear [0, 2pi] track
- authors: András Ecker, Eszter Vértes, Szabolcs Káli last update: 10.2018
- """
- import numpy as np
- f_theta = 7.0 # theta osc. freq. [Hz]
- v_mice = 32.43567842 # [cm/s]
- l_route = 300.0 # circumference [cm]
- l_place_field = 30.0 # [cm]
- r = l_route / (2*np.pi) # [cm]
- phi_PF_rad = l_place_field / r # [rad]
- t_route = l_route / v_mice # [s]
- w_mice = 2*np.pi / t_route # angular velocity
- # hard coded s and std of Gaussians: 1/10th of the total route is PF (used with the parameters above and 10% rate def. from Dragoi and Buzsáki 2006)
- #TODO: make these parameters calculated based on PF parameters (otherwise DON'T touch this!)
- s = 47.0 # phase-locking (param of circular Gaussian)
- std = 0.146 # std (param of Gaussian, defined in [0,2*np.pi])
- def _generate_exp_rand_numbers(lambda_, n_rnds, seed):
- """
- MATLAB's random exponential number
- :param lambda_: normalization (will be the rate of Poisson proc - see `hom_poisson()`)
- :param n_rnds: number of random numbers to gerenerate
- :param seed: seed for random number generation
- :return: exponential random numbers
- """
- np.random.seed(seed)
- return -1.0 / lambda_ * np.log(np.random.rand(n_rnds))
- def hom_poisson(lambda_, n_rnds, t_max, seed):
- """
- Generates Poisson process (interval times X_i = -ln(U_i)/lambda_, where lambda_ is the rate and U_i ~ Uniform(0,1))
- :param lambda_: rate of the Poisson process
- :param n_rnds: see `_generate_exp_rand_numbers()`
- :param t_max: length of the generate Poisson process
- :param seed: seed for random number generation (see `_generate_exp_rand_numbers()`)
- :return: poisson_proc: np.array which represent a homogenos Poisson process
- """
- rnd_isis = _generate_exp_rand_numbers(lambda_, n_rnds, seed)
- poisson_proc = np.cumsum(rnd_isis)
- #assert poisson_proc[-1] > t_max, "Spike train is too short, consider increasing `n_rnds`!"
- return poisson_proc[np.where(poisson_proc <= t_max)]
- def get_tuning_curve_circular(spatial_points, phi_start):
- """
- Calculates (not estimates) tuning curve (on a circle -> circular Gaussian function)
- :param spatial_points: spatial points along the circle (in rad)
- :param phi_start: starting point of the place field (in rad)
- :return: tau: tuning curve of the place cell
- """
- mid_PF = np.mod(phi_start + phi_PF_rad/2.0, 2*np.pi)
- tau = 1.0/np.exp(s) * np.exp(s*np.cos(spatial_points - mid_PF)) # circular Gaussian
- return tau
- def get_tuning_curve_linear(spatial_points, phi_start):
- """
- Calculates (not estimates) tuning curve (Gaussian function)
- :param spatial_points: spatial points along the track
- :param phi_start: starting point of the place field
- :return: tau: tuning curve of the place cell
- """
- mid_PF = phi_start + phi_PF_rad/2.0
- tau = np.exp(-np.power(spatial_points-mid_PF, 2)/(2*std**2))
- return tau
- def evaluate_lambda_t(t, phi_start, linear, phase0):
- """
- Evaluates firing rate(t, x) = tuning_curve(x) * theta_modulation(t, x) at given time points
- :param t: sample time points
- :param phi_start: starting point of the place field (in rad)
- :param linear: flag for circular vs. linear track -> slightly diff tuning curves
- :param phase0: init. phase (used to calc. phase precession)
- :return: lambda_t sampled at the given time points
- """
- x = np.mod(w_mice * t, 2*np.pi) # positions of the mice [rad]
- if not linear:
- tau_x = get_tuning_curve_circular(x, phi_start)
- else:
- tau_x = get_tuning_curve_linear(x, phi_start)
- # theta modulation of firing rate + phase precession
- phase = phase0 + 2*np.pi * f_theta * t
- phase_shift = -np.pi / phi_PF_rad * (x - phi_start)
- theta_mod = np.cos(phase - phase_shift)
- lambda_t = tau_x * theta_mod
- lambda_t[np.where(lambda_t < 0.0)] = 0.0
- return lambda_t
- def inhom_poisson(lambda_, t_max, phi_start, linear, seed, phase0=0.0):
- """
- Generates a homogeneous Poisson process and converts it to inhomogeneous
- via keeping only a subset of spikes based on the (time and space dependent) rate of the place cell (see `evaluate_lambda_t()`)
- :param lambda_: rate of the hom. Poisson process (see `hom_poisson()`)
- :param t_max: length of the generate Poisson process
- :param phi_start: starting point of the place field (see `evaluate_lambda_t()`)
- :param linear: flag for circular vs. linear track (see `evaluate_lambda_t()`)
- :param seed: seed for random number generation
- :param phase0: initial phase (see `evaluate_lambda_t()`)
- :return: inhom_poisson_proc: inhomogenos Poisson process representing the spike train of a place cell
- """
- #poisson_proc = hom_poisson(lambda_, 10000, t_max, seed) # hard coded 10000 works with 20Hz rate and 405sec spike train
- poisson_proc = hom_poisson(lambda_, 10000, t_max, seed) # hard coded 10000 works with 20Hz rate and 405sec spike train
- # keep only a subset of spikes
- lambda_t = evaluate_lambda_t(poisson_proc, phi_start, linear, phase0)
- np.random.seed(seed)
- inhom_poisson_proc = poisson_proc[np.where(lambda_t >= np.random.rand(poisson_proc.shape[0]))]
- return inhom_poisson_proc
poisson_proc.py at commit 958508b, under MIT · at the source
Overview
- Department of Computer Science, CUNY Graduate Center, New York, New York, USA
- Department of Anesthesiology, University of Michigan Medical School, Ann Arbor, Michigan, USA
- Department of Mathematics, The City College of New York, New York, New York, USA
- Department of Biology, CUNY Graduate Center, New York, New York, USA
Abstract
Hippocampal replay is now considered to be a cornerstone of memory consolidation, yet the synaptic plasticity rules governing its dynamics remain elusive. Under the standard asymmetric Hebbian spike‐timing dependent plasticity (STDP) model, the same spike patterns that promote activity propagation along one direction of sequential activation undermine propagation in the reverse direction, compromising “bidirectional” replay. On the other hand, symmetric potentiation rules, as recently proposed for region CA3, risk corrupting the memory trace by saturating synaptic weights. Using Ecker et al.'s recurrent network model of place cells that spontaneously generate replays during ripples, we systematically investigated how different STDP plasticity rules modulate offline replays. We developed a classification framework to study the mechanisms relating different STDP kernels to key replay characteristics, including directionality, speed, and stability. Our results confirmed that symmetric potentiation rules during offline states saturate synapses, inducing rigid attractors that corrupt the memory trace, and that an asymmetric Hebbian STDP kernel induces strong biases in the directionality of replay, leading to rapid replay acceleration and replay degradation. Notably, we found that an asymmetric anti‐Hebbian STDP kernel preserves replay bi‐directionality and stabilizes replay speed. We further identified the negative timing component of the STDP rule as the primary driver of replay speed: potentiation causes deceleration, while depression causes acceleration. These findings provide a mechanistic explanation for empirically observed replay deceleration and suggest a role for anti‐Hebbian synaptic depression in stabilizing replay dynamics.
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 8 matches between paragraphs and lines of code.
sliorbar/ca3net
958508b819b5d54c2de87d0aa4a7586d1ce5faf1, 17 July 2024Availability: 2 checks, the latest on 12 November 2026: the link answers
- 12 November 2026: the link answers
- 28 September 2026: the link answers
35 files
- scripts/
Backup/ , Python, 1,116 linesplots-org.py - scripts/
analyse_movement.py , Python, 207 lines - scripts/
avg_wmx_mult_results.py , Python, 54 lines - scripts/
bayesian_decoding.py , Python, 200 lines - scripts/
datalayer.py , Python, 100 lines - scripts/
detect_oscillations.py , Python, 290 lines - scripts/
detect_replay.py , Python, 84 lines, 1 match - scripts/
gamma_network.py , Python, 221 lines - scripts/
generate_spike_train.py , Python, 96 lines - scripts/
helper.py , Python, 721 lines - scripts/
modify_wmx.py , Python, 139 lines - scripts/
optimization/ , Python, 186 linesanalyse_BC_network.py - scripts/
optimization/ , Python, 136 linesanalyse_EPS.py - scripts/
optimization/ , Python, 168 linesclamp_cell.py - scripts/
optimization/ , Python, 99 linesoptimize_network.py - scripts/
optimization/ , Python, 77 linesoptimize_network_ACh.py - scripts/
optimization/ , Python, 170 linesrun_sim.py - scripts/
optimization/ , Python, 174 linesrun_sim_ACh.py - scripts/
optimization/ , Python, 99 linessim_evaluator.py - scripts/
optimization/ , Python, 104 linessim_evaluator_gamma.py - scripts/
plots.py , Python, 1,312 lines, 1 match - scripts/
poisson_proc.py , Python, 133 lines, 3 matches - scripts/
replay statistics generation.ipynb , Jupyter, 57 lines - scripts/
replay_stats_simulations , Python, 553 lines.py - scripts/
spw_network with inhibitory stdp.py , Python, 721 lines, 1 match - scripts/
spw_network-lb-CPP.py , Python, 737 lines, 1 match - scripts/
spw_network-lb.py , Python, 669 lines - scripts/
spw_network.py , Python, 358 lines - scripts/
spw_network_wmx_mult.py , Python, 66 lines - scripts/
stdp-itr.py , Python, 137 lines - scripts/
stdp-lb.py , Python, 241 lines, 1 match - scripts/
stdp.py , Python, 111 lines - scripts/
stdp_2nd_env.py , Python, 107 lines - LICENSE, License, 22 lines
- README.md, Text, 28 lines
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;
- 33 scripts, each with its path and the digest of its content;
- 8 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 Statement
The data that support the findings of this study are available from the corresponding author upon reasonable request.
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 2, 28 September 2026
- Publisher: n/a → Wiley
Version 1, 28 September 2026: the first record
Recorded: type, language, journal, volume, issue, pages, dates, 3 authors, 4 keywords, 7 MeSH terms, 3 funders, 68 references.
Cite
This paper
Baron, L., Diba, K., & Amarasingham, A. (2026). The Role of Plasticity in Replay: Stability Through Anti-Hebbian Rules. Hippocampus, 36(3), e70089. https://
BibTeX
@article{baron2026role,
author = {Baron, Lior and Diba, Kamran and Amarasingham, Asohan},
title = {{The Role of Plasticity in Replay: Stability Through Anti-Hebbian Rules}},
journal = {Hippocampus},
year = {2026},
month = may,
volume = {36},
number = {3},
pages = {e70089},
publisher = {Wiley},
issn = {1050-9631},
doi = {10.1002/
url = {https://
pmid = {41964401},
pmcid = {PMC13069501}
}
RIS
TY - JOUR
AU - Baron, Lior
AU - Diba, Kamran
AU - Amarasingham, Asohan
TI - The Role of Plasticity in Replay: Stability Through Anti-Hebbian Rules
T2 - Hippocampus
J2 - Hippocampus
PY - 2026
DA - 2026/
VL - 36
IS - 3
SP - e70089
SN - 1050-9631
PB - Wiley
DO - 10.1002/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.1002/
"type": "article-journal",
"title": "The Role of Plasticity in Replay: Stability Through Anti-Hebbian Rules",
"container-title": "Hippocampus",
"author": [
{
"family": "Baron",
"given": "Lior"
},
{
"family": "Diba",
"given": "Kamran"
},
{
"family": "Amarasingham",
"given": "Asohan"
}
],
"container-title-short":
"volume": "36",
"issue": "3",
"page": "e70089",
"DOI": "10.1002/
"PMID": "41964401",
"PMCID": "PMC13069501",
"ISSN": "1050-9631",
"publisher": "Wiley",
"URL": "https://
"language": "en",
"issued": {
"date-parts": [
[
2026,
5,
1
]
]
}
}
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.71850 [code]
- Hippocampal sharp wave-ripples and the associated sequence replay emerge from structured synaptic interactions in a network model of area CA3.Journal: eLifeIn common: Brian 2, PyWavelets, seaborn, 4 other tools, 15 references
- [2] doi:10.7554/elife.99931 [code]
- A unifying account of replay as context-driven memory reactivation.Journal: eLifeIn common: SciPy, Matplotlib, NumPy, 12 references
- [3] doi:10.1523/eneuro.0575-24.2025 [code]
- Firing Activities of REM- and NREM-Preferring Neurons Are Differently Modulated by Fast Network Oscillations and Behavior in the Hippocampus, Prelimbic Cortex, and Amygdala.Journal: eNeuroIn common: seaborn, pandas, SciPy, 2 other tools, 9 references
- [4] doi:10.1371/journal.pcbi.1013844 [code]
- Conditions for replay of neuronal assemblies.Journal: PLoS computational biologyIn common: Brian 2, pandas, SciPy, 2 other tools, 7 references
- [5] doi:10.7554/elife.82301 [code]
- A model of hippocampal replay driven by experience and environmental structure facilitates spatial learning.Journal: eLifeIn common: OpenCV, SciPy, Matplotlib, 1 other tool, 7 references
- [6] doi:10.1073/pnas.2403325121 [code]
- Learning-dependent gating of hippocampal inputs by frontal interneurons.Journal: Proceedings of the National Academy of Sciences of the United States of AmericaIn common: Brian 2, OpenCV, seaborn, 4 other tools, 5 references
- [7] doi:10.7554/elife.70296 [code]
- Neuronal sequences during theta rely on behavior-dependent spatial maps.Journal: eLifeIn common: pandas, SciPy, Matplotlib, 1 other tool, 3 references, author Kamran Diba
- [8] doi:10.7554/elife.93981 [code]
- Intrinsic dynamics of randomly clustered networks generate place fields and preplay of novel environments.Journal: eLifeIn common: 8 references
- [9] doi:10.1371/journal.pcbi.1013056 [code]
- Impact of symmetry in local learning rules on predictive neural representations and generalization in spatial navigation.Journal: PLoS computational biologyIn common: seaborn, pandas, SciPy, 2 other tools, 6 references
- [10] doi:10.7554/elife.106201 [code]
- On CA1 ripple oscillations in rats and the reassessment of asynchronicity evidence.Journal: eLifeIn common: seaborn, pandas, SciPy, 2 other tools, 6 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, 33 scripts, and 8 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:1d695105c5307af4…
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.1002/hipo.70089)
<!-- oscr-badge:end -->reStructuredText
.. oscr-badge:start
.. image:: https://openscicode.org/badge/doi/10.1002/hipo.70089.svg
:target: https://openscicode.org/badge/doi/10.1002/hipo.70089
:alt: OSCR
.. oscr-badge:endHTML
<!-- oscr-badge:start -->
<a href="https://openscicode.org/badge/doi/10.1002/hipo.70089"><img src="https://openscicode.org/badge/doi/10.1002/hipo.70089.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.
