IDEAS home Printed from https://ideas.repec.org/a/plo/pcbi00/1011801.html
   My bibliography  Save this article

Dynamic predictive coding: A model of hierarchical sequence learning and prediction in the neocortex

Author

Listed:
  • Linxing Preston Jiang
  • Rajesh P N Rao

Abstract

We introduce dynamic predictive coding, a hierarchical model of spatiotemporal prediction and sequence learning in the neocortex. The model assumes that higher cortical levels modulate the temporal dynamics of lower levels, correcting their predictions of dynamics using prediction errors. As a result, lower levels form representations that encode sequences at shorter timescales (e.g., a single step) while higher levels form representations that encode sequences at longer timescales (e.g., an entire sequence). We tested this model using a two-level neural network, where the top-down modulation creates low-dimensional combinations of a set of learned temporal dynamics to explain input sequences. When trained on natural videos, the lower-level model neurons developed space-time receptive fields similar to those of simple cells in the primary visual cortex while the higher-level responses spanned longer timescales, mimicking temporal response hierarchies in the cortex. Additionally, the network’s hierarchical sequence representation exhibited both predictive and postdictive effects resembling those observed in visual motion processing in humans (e.g., in the flash-lag illusion). When coupled with an associative memory emulating the role of the hippocampus, the model allowed episodic memories to be stored and retrieved, supporting cue-triggered recall of an input sequence similar to activity recall in the visual cortex. When extended to three hierarchical levels, the model learned progressively more abstract temporal representations along the hierarchy. Taken together, our results suggest that cortical processing and learning of sequences can be interpreted as dynamic predictive coding based on a hierarchical spatiotemporal generative model of the visual world.Author summary: The brain is adept at predicting stimuli and events at multiple timescales. How do the neuronal networks in the brain achieve this remarkable capability? We propose that the neocortex employs dynamic predictive coding to learn hierarchical spatiotemporal representations. Using computer simulations, we show that when exposed to natural videos, a hierarchical neural network that minimizes prediction errors develops stable and longer timescale responses at the higher level; lower-level neurons learn space-time receptive fields similar to the receptive fields of primary visual cortical cells. The same network also exhibits several effects in visual motion processing and supports cue-triggered activity recall. Our results provide a new framework for understanding the genesis of temporal response hierarchies and activity recall in the neocortex.

Suggested Citation

  • Linxing Preston Jiang & Rajesh P N Rao, 2024. "Dynamic predictive coding: A model of hierarchical sequence learning and prediction in the neocortex," PLOS Computational Biology, Public Library of Science, vol. 20(2), pages 1-30, February.
  • Handle: RePEc:plo:pcbi00:1011801
    DOI: 10.1371/journal.pcbi.1011801
    as

    Download full text from publisher

    File URL: https://journals.plos.org/ploscompbiol/article?id=10.1371/journal.pcbi.1011801
    Download Restriction: no

    File URL: https://journals.plos.org/ploscompbiol/article/file?id=10.1371/journal.pcbi.1011801&type=printable
    Download Restriction: no

    File URL: https://libkey.io/10.1371/journal.pcbi.1011801?utm_source=ideas
    LibKey link: if access is restricted and if your library uses this service, LibKey will redirect you to where you can use your library subscription to access this item
    ---><---

    References listed on IDEAS

    as
    1. Valerio Mante & David Sussillo & Krishna V. Shenoy & William T. Newsome, 2013. "Context-dependent computation by recurrent dynamics in prefrontal cortex," Nature, Nature, vol. 503(7474), pages 78-84, November.
    2. Matthias Ekman & Peter Kok & Floris P. de Lange, 2017. "Time-compressed preplay of anticipated events in human primary visual cortex," Nature Communications, Nature, vol. 8(1), pages 1-9, August.
    3. Eugenio Piasini & Liviu Soltuzu & Paolo Muratore & Riccardo Caramellino & Kasper Vinken & Hans Op de Beeck & Vijay Balasubramanian & Davide Zoccolan, 2021. "Temporal stability of stimulus representation increases along rodent visual cortical hierarchies," Nature Communications, Nature, vol. 12(1), pages 1-19, December.
    Full references (including those not matched with items on IDEAS)

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Yan Li & Mitchell Swerdloff & Tianyu She & Asiyah Rahman & Naveen Sharma & Reema Shah & Michael Castellano & Daniel Mogel & Jason Wu & Asim Ahmed & James San Miguel & Jared Cohn & Nikesh Shah & Raddy , 2023. "Robust odor identification in novel olfactory environments in mice," Nature Communications, Nature, vol. 14(1), pages 1-29, December.
    2. Georgia Koppe & Hazem Toutounji & Peter Kirsch & Stefanie Lis & Daniel Durstewitz, 2019. "Identifying nonlinear dynamical systems via generative recurrent neural networks with applications to fMRI," PLOS Computational Biology, Public Library of Science, vol. 15(8), pages 1-35, August.
    3. Jan Weber & Anne-Kristin Solbakk & Alejandro O. Blenkmann & Anais Llorens & Ingrid Funderud & Sabine Leske & Pål Gunnar Larsson & Jugoslav Ivanovic & Robert T. Knight & Tor Endestad & Randolph F. Helf, 2024. "Ramping dynamics and theta oscillations reflect dissociable signatures during rule-guided human behavior," Nature Communications, Nature, vol. 15(1), pages 1-16, December.
    4. Pierre O. Boucher & Tian Wang & Laura Carceroni & Gary Kane & Krishna V. Shenoy & Chandramouli Chandrasekaran, 2023. "Initial conditions combine with sensory evidence to induce decision-related dynamics in premotor cortex," Nature Communications, Nature, vol. 14(1), pages 1-28, December.
    5. Ingmar E. J. Vries & Moritz F. Wurm, 2023. "Predictive neural representations of naturalistic dynamic input," Nature Communications, Nature, vol. 14(1), pages 1-16, December.
    6. Rishi Rajalingham & Aída Piccato & Mehrdad Jazayeri, 2022. "Recurrent neural networks with explicit representation of dynamic latent variables can mimic behavioral patterns in a physical inference task," Nature Communications, Nature, vol. 13(1), pages 1-15, December.
    7. repec:plo:pcbi00:1006854 is not listed on IDEAS
    8. Wan-Yu Shih & Hsiang-Yu Yu & Cheng-Chia Lee & Chien-Chen Chou & Chien Chen & Paul W. Glimcher & Shih-Wei Wu, 2023. "Electrophysiological population dynamics reveal context dependencies during decision making in human frontal cortex," Nature Communications, Nature, vol. 14(1), pages 1-24, December.
    9. Shailaja Akella & Peter Ledochowitsch & Joshua H. Siegle & Hannah Belski & Daniel D. Denman & Michael A. Buice & Severine Durand & Christof Koch & Shawn R. Olsen & Xiaoxuan Jia, 2025. "Deciphering neuronal variability across states reveals dynamic sensory encoding," Nature Communications, Nature, vol. 16(1), pages 1-22, December.
    10. Wenyi Zhang & Yang Xie & Tianming Yang, 2022. "Reward salience but not spatial attention dominates the value representation in the orbitofrontal cortex," Nature Communications, Nature, vol. 13(1), pages 1-12, December.
    11. Nir Even-Chen & Blue Sheffer & Saurabh Vyas & Stephen I Ryu & Krishna V Shenoy, 2019. "Structure and variability of delay activity in premotor cortex," PLOS Computational Biology, Public Library of Science, vol. 15(2), pages 1-17, February.
    12. Hao Guo & Shenbing Kuang & Alexander Gail, 2025. "Sensorimotor environment but not task rule reconfigures population dynamics in rhesus monkey posterior parietal cortex," Nature Communications, Nature, vol. 16(1), pages 1-17, December.
    13. Javier G. Orlandi & Mohammad Abdolrahmani & Ryo Aoki & Dmitry R. Lyamzin & Andrea Benucci, 2023. "Distributed context-dependent choice information in mouse posterior cortex," Nature Communications, Nature, vol. 14(1), pages 1-16, December.
    14. Rishi Rajalingham & Hansem Sohn & Mehrdad Jazayeri, 2025. "Dynamic tracking of objects in the macaque dorsomedial frontal cortex," Nature Communications, Nature, vol. 16(1), pages 1-16, December.
    15. Joao Barbosa & Rémi Proville & Chris C. Rodgers & Michael R. DeWeese & Srdjan Ostojic & Yves Boubenec, 2023. "Early selection of task-relevant features through population gating," Nature Communications, Nature, vol. 14(1), pages 1-13, December.
    16. Nir Moneta & Mona M. Garvert & Hauke R. Heekeren & Nicolas W. Schuck, 2023. "Task state representations in vmPFC mediate relevant and irrelevant value signals and their behavioral influence," Nature Communications, Nature, vol. 14(1), pages 1-21, December.
    17. Huanyuan Zhou & KongFatt Wong-Lin & Da-Hui Wang, 2018. "Parallel Excitatory and Inhibitory Neural Circuit Pathways Underlie Reward-Based Phasic Neural Responses," Complexity, Hindawi, vol. 2018, pages 1-20, April.
    18. Benjamin R Cowley & Matthew A Smith & Adam Kohn & Byron M Yu, 2016. "Stimulus-Driven Population Activity Patterns in Macaque Primary Visual Cortex," PLOS Computational Biology, Public Library of Science, vol. 12(12), pages 1-31, December.
    19. Kiyohito Iigaya & Sanghyun Yi & Iman A. Wahle & Sandy Tanwisuth & Logan Cross & John P. O’Doherty, 2023. "Neural mechanisms underlying the hierarchical construction of perceived aesthetic value," Nature Communications, Nature, vol. 14(1), pages 1-19, December.
    20. Jean-Paul Noel & Edoardo Balzani & Cristina Savin & Dora E. Angelaki, 2024. "Context-invariant beliefs are supported by dynamic reconfiguration of single unit functional connectivity in prefrontal cortex of male macaques," Nature Communications, Nature, vol. 15(1), pages 1-12, December.
    21. Takuya Ito & Guangyu Robert Yang & Patryk Laurent & Douglas H. Schultz & Michael W. Cole, 2022. "Constructing neural network models from brain data reveals representational transformations linked to adaptive behavior," Nature Communications, Nature, vol. 13(1), pages 1-16, December.

    More about this item

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:plo:pcbi00:1011801. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: ploscompbiol (email available below). General contact details of provider: https://journals.plos.org/ploscompbiol/ .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.