How Your Brain Chooses What to Remember
Hippocampal sharp-wave ripples bookmark important experiences during wakefulness for rapid replay and consolidation into long-term memory during sleep.
Key takeaways
5 points- 1Sharp-wave ripples bookmark important experiences immediately after they occur.
- 2Awake ripples replay successful trajectories in compressed time.
- 3Sleep ripples reactivate the same bookmarks to drive neocortical consolidation.
- 4UMAP recovers a low-dimensional maze manifold from hundreds of hippocampal neurons.
- 5Decoded ripple content confirms selective tagging of rewarded paths.
Summary
The brain selects which experiences become lasting memories through hippocampal sharp-wave ripples that tag important events.
Sharp-Wave Ripples
- Sharp-wave ripples (SWRs) are brief high-frequency bursts that serve as an internal bookmarking system (0:00-8:01).
- During wakefulness they occur immediately after significant moments and compress seconds-long experiences into millisecond replays.
Memory Consolidation
- Awake ripples tag experiences for priority transfer; sleep ripples repeatedly reactivate the same patterns to store them in the neocortex (0:00-8:01).
- The hippocampus switches from recording to offline replay mode once the animal rests or sleeps.
Decoding Neural Activity
- UMAP reduces activity from hundreds of neurons into a low-dimensional maze manifold that mirrors the physical layout of a Figure-8 maze (8:03-16:05).
- Decoding ripple content shows awake SWRs replay successful paths, confirming their role as selective memory tags.
Deep read
Executive Summary
This video explains how the brain decides which memories to keep, focusing on the hippocampus and a neural event called the sharp-wave ripple (SWR). SWRs act as a bookmarking system that marks important experiences for later consolidation during sleep. Awake SWRs after meaningful events tag memories for priority storage, while sleep replays (compression of time to ~100 ms) reinforce these memories by transferring them from the hippocampus to the neocortex. The presenter walks through an elegant experimental setup in which mice navigate a figure-eight maze while hippocampal activity is recorded from hundreds of neurons. Dimensionality reduction with UMAP reveals a maze-aligned manifold in the neural data, allowing decoding of ripple content as replay of recent trajectories and trials. Awake ripples tend to reflect current experiences that are later consolidated during sleep, whereas pre-learning sleep ripples show different patterns, underscoring the dynamic reorganization accompanying learning. The two-stage model—awake bookmarking followed by sleep consolidation—gives a coherent framework for understanding memory selection and durable storage. The talk also notes interactive data resources and sponsors (Brilliant.org) that tie into the computational aspects of the analysis.
Key takeaways include: SWRs tag important experiences; awake replays act as bookmarks; sleep replays consolidate tagged memories; neural population activity lies on a low-dimensional maze-like manifold; decoding ripple content relies on alignment to that manifold; learning reshapes neural trajectories over trials; a two-stage process (wake tagging + sleep consolidation) explains memory durability and selectivity. The video combines experimental neuroscience, advanced data analysis (UMAP), and a clear two-stage theory to show how memory formation is both an experience-driven update and a sleep-driven stabilization process.
00:00 Introduction
- 00:00 Artem introduces the central question: how does the brain decide which memories to keep and which to discard? He motivates memory selection with everyday vs life-changing events (e.g., breakfast versus lottery) to illustrate why some memories persist while others fade. The brain uses a bookmarking-like system to mark important memories for later consolidation. ⭐ HIGH PRIORITY
- 00:40 The key mechanism introduced is the hippocampal sharp-wave ripple (SWR). These events act as an internal bookmarking signal that helps tag important experiences for storage during sleep. The video will unpack a Science paper showing how these events tag memories during the day for priority consolidation at night. ⭐ HIGH PRIORITY
- 01:10 The talk connects memory selection to neural patterns: a vivid, phase-locked sequence of neural activity called a sharp wave with a fast ripple riding on top. This choreography helps the brain pick which memories to strengthen. ⭐ HIGH PRIORITY
- 01:50 The outline of the talk is given: the hippocampus, awake replays, UMAP population analysis, a maze manifold, decoding ripple content, and how these pieces fit into a two-stage memory consolidation framework. The sponsor (Brilliant.org) is announced near the end of the video.
01:11 Sharp-Wave Ripples
- 01:11 The hippocampus uses sharp waves to coordinate activity across a large neural population. These waves sweep through networks, waking up many neurons that were quiet. The sharp wave acts like a tide that raises activity across the network. ⭐ HIGH PRIORITY
- 01:28 Inhibitory interneurons rapidly respond when activity rises too high, suppressing other neurons and creating a back-and-forth between excitation and inhibition. This appears as a high-frequency ripple riding on the sharp wave. The purpose of this 2-part wave (sharp wave + ripple) is to create narrow windows of time when only certain groups of neurons can fire. ⭐ HIGH PRIORITY
- 01:57 The excitation–inhibition balance creates competition among neural patterns that were strengthened during the day. Some patterns form strong, robust pathways (pathways) while others remain weak trails. The result is a competitive “winner-take-all” selection during replay. ⭐ HIGH PRIORITY
- 02:35 During the day, experiences update the cognitive map (the hippocampus’s internal model of space and events). The SWR window at night replays selected patterns to strengthen them in the neocortex, enabling memory consolidation. ⭐ HIGH PRIORITY
- 03:50 Temporal compression is a crucial feature: experiences that happen over seconds can be replayed in ~100 milliseconds during sleep. This compression ensures that the hippocampus can drive and coordinate replays efficiently while the cortex becomes receptive to hippocampal input. ⭐ HIGH PRIORITY
- 04:18 The main problem still missing in simple terms: why would the brain replay memories when the neocortex is not yet ready for storage? Awake replay during brief rest periods appears to be a bookmarking mechanism that marks important events for later consolidation during sleep. ⭐ HIGH PRIORITY
04:38 Memory Consolidation
- 04:38 Consolidation is the process of transferring memories from the hippocampus to the neocortex for long-term storage. The compressed replays during sleep arrive at precise temporal windows in the cortex to strengthen cortical connections. The cortex is in a special receptive state only during sleep, enabling this transfer. ⭐ HIGH PRIORITY
- 04:55 The paper’s main discovery: awake SWRs happen after important events and tag those experiences for priority consolidation during subsequent sleep. Awake replays act as bookmarking signals that prepare memories to be consolidated later when the cortex is ready. ⭐ HIGH PRIORITY
- 05:35 The wake-sleep two-stage process is emphasized: (1) awake replays bookmark critical events, (2) sleep replays consolidate those bookmarks into long-term cortical storage. This two-stage mechanism ensures both ongoing learning during the day and robust consolidation during sleep. ⭐ HIGH PRIORITY
- 06:15 The text hints at underlying cellular mechanisms: awake SWRs may trigger local synaptic changes that bias which sequences are more likely to reactivate during sleep. The exact cellular story is still under investigation, but the two-stage framework is robust. ⭐ HIGH PRIORITY
06:36 Experimental Setup
- 06:36 The authors study mice running a figure-eight maze with two identical arms, each containing a potential reward site. The task requires a strategy to alternate arms to get rewards; if the left arm pays one trial, the next reward is on the right, and so on. The goal is to reveal episodic memory (personal experiences as sequences) and how the brain learns them. ⭐ HIGH PRIORITY
- 07:12 The researchers record activity from hundreds of hippocampal neurons (around 400 neurons simultaneously) as the mice run trials across days. The goal is to watch how learning unfolds, how the cognitive map updates, and how replays occur during subsequent sleep. ⭐ HIGH PRIORITY
- 07:41 The challenge of 400-dimensional population activity: each neuron’s firing rate is a dimension, creating a 400D data space. You can’t visualize it directly, but the structure is not random because neurons are interconnected and driven by common inputs. The population activity is constrained to patterns described by a lower-dimensional manifold. ⭐ HIGH PRIORITY
- 08:20 A key method is dimensionality reduction: instead of visualizing all 400 dimensions, the 400D activity is projected to a lower-dimensional space that preserves the relationships among activity patterns. The chosen approach here is UMAP (Uniform Manifold Approximation and Projection). ⭐ HIGH PRIORITY
- 08:53 The idea behind dimensionality reduction is akin to describing a curved line in 3D with a single parameter: though the data exist in high dimensional space, the meaningful variation often lies on a low-dimensional manifold. ⭐ HIGH PRIORITY
- 09:23 The experimental design allows linking neural activity to specific maze behaviors, positions, and trial progression; the goal is to map neural states to concrete task features. ⭐ HIGH PRIORITY
07:58 UMAP & Population Activity
- 07:58 UMAP is used to reduce the 400D neural activity space to three dimensions while preserving similarity structure. It seeks to preserve the graph of neural activity relationships while reducing dimensionality. ⭐ HIGH PRIORITY
- 08:40 The reduced 3D embedding reveals an elegant loop that mirrors the actual figure-eight maze. When each point in the 3D plot is colored by the animal’s physical location, the shape lines up with the maze. This shows that neural activity during running encodes the spatial structure of the task in a compact form. ⭐ HIGH PRIORITY
- 09:20 When the same points are colored by trial number, a new structure emerges that tracks learning progress across trials, indicating that neural representations evolve as the animal learns the task. This implies a systematic, learnable trajectory through neural space. ⭐ HIGH PRIORITY
- 09:50 The big idea: the neural population activity during behavior defines a maze-related manifold. If a ripple event projects onto this manifold, its content can be decoded against the animal’s position or trial. If it lies off the manifold, it might reflect other cognitive processes (future planning, different memories) that lack a referent in the current task geometry. ⭐ HIGH PRIORITY
10:33 Maze Manifold
- 10:33 The maze manifold is a low-dimensional representation (via UMAP) of population activity that captures the structure of the animal’s space and learning. The loop in the 3D embedding corresponds to the figure-eight layout; the color-by-position mapping demonstrates a direct correspondence between neural states and physical location. ⭐ HIGH PRIORITY
- 10:56 The authors show that the same manifold can be used to decode ripple content by projecting ripple-evoked activity onto the learned manifold. If ripple events align with positions on the maze manifold, they likely correspond to replays of actual positions and trials. ⭐ HIGH PRIORITY
- 11:30 The manifold framework provides a reference frame to interpret ripple content, especially for awake replays that occur after the animal retrieves a reward. It lets researchers classify what the replay is about (which trial, which path) with high fidelity. ⭐ HIGH PRIORITY
12:02 Decoding Ripple Content
- 12:02 Awake replays after reward consumption project onto the maze manifold and reveal content consistent with recent experiences. For these awake ripples, the content decodes to the current trial and the path to the reward, showing that awake replays are memory bookmarks for the just-completed experience. ⭐ HIGH PRIORITY
- 12:35 Not all ripple events map neatly onto the maze manifold. Off-manifold ripples may reflect other memories, planning, or cognitive processes not present in the current task reference frame. They are not necessarily noise but are not decodable with the current task structure. ⭐ HIGH PRIORITY
- 13:10 Sleep ripples that fall onto the maze manifold show striking similarity to awake ripples: they replay similar trials and maze locations, suggesting that sleep replays continue to rehearse the same paths that were tagged during wakefulness for consolidation. ⭐ HIGH PRIORITY
- 13:40 Ripples recorded during sleep before learning (pre-learning sleep) show different patterns, indicating that the system uses a distinct set of replayed sequences before new learning starts. This supports a model where prior representations are reorganized as new information is learned. ⭐ HIGH PRIORITY
- 14:15 The authors conclude that awake ripples serve to tag specific, meaningful experiences for later consolidation, while sleep ripples drive repeated reactivation to form stable cortical representations. This two-stage process integrates direct experience with long-term storage. ⭐ HIGH PRIORITY
13:57 Putting it together
- 13:57 The overall model is a two-stage memory system: awake ripples bookmark salient events; sleep ripples consolidate those bookmarks into durable cortical memory. The hippocampus acts as a dynamic indexing system that flags important memories during the day and hands them off to the neocortex at night for permanent storage. ⭐ HIGH PRIORITY
- 14:40 The interplay between awake and sleep replays ensures memory selectivity (only significant events get preserved) and preserves ongoing experience (the cognitive map keeps updating as new information comes in). ⭐ HIGH PRIORITY
- 15:04 The video notes the authors built an interactive website and a collaborative notebook to explore the data, encouraging hands-on engagement with the plots and analyses. This emphasizes transparency and reproducibility in neuroscience research. ⭐ HIGH PRIORITY
15:42 Brilliant.org (Sponsor)
- 15:42 Artem introduces Brilliant.org as the sponsor, highlighting its interactive courses in computational topics and problem solving. The discussion links the paper’s topics (e.g., computation on neural data) to Brilliant’s learning approach, inviting viewers to explore foundational concepts like arrays and graph algorithms through interactive problems. ⭐ HIGH PRIORITY
- 15:56 A specific recommendation is given: Brilliant’s course on computer science foundations focusing on essential concepts relevant to the methods discussed (arrays, graphs, etc.). ⭐ HIGH PRIORITY
- 16:15 Viewers are offered a 30-day free trial and 20% off an annual subscription by visiting brilliant.org/artemkirsanov. ⭐ HIGH PRIORITY
16:56 Outro
- 16:56 Artem thanks viewers and signs off, promising more topics on neuroscience and machine learning in future videos. The closing reiterates the personal nature of the channel and invites continued engagement (patreon, topic voting). ⭐ HIGH PRIORITY
Resources Mentioned
- Paper full text: https://www.science.org/doi/10.1126/science.adk8261
- Interactive website and collab notebook for ripple tagging experiments: (described in video) — URL not reproduced exactly here but referenced in the talk
- Website/project: https://winnieyangwannan.github.io/RippleTagging/projects/1_project/
- Code for the video: https://github.com/ArtemKirsanov/Youtube-Videos/tree/main/2025/How%20Your%20Brain%20Chooses%20What%20to%20Remember
- Maze and task visuals: Figure-eight maze task described in the experiment
- Clip with dancers: https://www.youtube.com/watch?v=o0axUoy4wbQ
- Sponsor: Brilliant.org (https://brilliant.org/ArtemKirsanov), with promotional URL provided in the video description
Notable terms and tools mentioned
- Hippocampus: A brain structure essential for episodic memory; creates and updates cognitive maps of environments and events.
- Sharp-Wave Ripple (SWR): A hippocampal neural event consisting of a sharp wave (a large, synchronized input) with a fast ripple superimposed; acts as a bookmarking signal for memory consolidation.
- Awake ripples: Sharp-wave ripples that occur during wakefulness, particularly after significant events, thought to tag memories for later sleep-based consolidation.
- Neocortex: The outer layer of the brain that integrates hippocampal outputs during sleep to form long-term memories; receptive state during sleep enables consolidation.
- Consolidation: The process of stabilizing a memory trace so that it can be stored long-term; often described as transfer from hippocampus to cortex.
- Cognitive map: The hippocampus’s internal representation of space and events in temporal order.
- Population activity: The collective firing patterns of many neurons at once.
- Dimensionality reduction: Techniques to reduce high-dimensional data to a lower-dimensional representation that preserves structure; here used to reveal structure in neural activity.
- UMAP (Uniform Manifold Approximation and Projection): A dimensionality-reduction technique used to project 400D neural activity into 3D for visualization and analysis; reveals a loop matching the maze layout.
- Maze manifold: The low-dimensional representation of neural activity that aligns with the physical maze structure; used to decode replay content.
- Decoding: Inferring the hidden content of neural activity (e.g., which trial or path is being replayed) by projecting it into a reference manifold.
- Two-stage memory model: Awake replays bookmark memories for later consolidation during sleep; sleep replays drive cortical storage for long-term memory.
- Trial decoding: Using neural activity to identify which trial the replay corresponds to.
- Pre-learning vs post-learning sleep: Sleep before learning shows different ripple patterns than sleep after learning, indicating dynamic reorganization during learning.
Resources Mentioned (reformatted for quick access)
- Science paper: https://www.science.org/doi/10.1126/science.adk8261
- Ripple tagging projects (website): https://winnieyangwannan.github.io/RippleTagging/projects/1_project/
- GitHub code for video: https://github.com/ArtemKirsanov/Youtube-Videos/tree/main/2025/How%20Your%20Brain%20Chooses%20What%20to%20Remember
- Maze task visualization and related visuals: Figure-eight maze task (described in paper/video)
- Dancers video clip: https://www.youtube.com/watch?v=o0axUoy4wbQ
- Brilliant.org sponsor link: https://brilliant.org/ArtemKirsanov
- Artem Kirsanov online presence: https://kirsanov.ai/ and newsletter: https://artemkirsanov.substack.com/
Summary of visuals described (to recreate in words)
- A hippocampal population activity snapshot: 400 neurons with color-coded firing rates, projected via UMAP to 3D; the resulting cloud forms a loop that mirrors the shape of a figure-eight maze. When color-coded by the animal’s real maze location, the 3D cloud aligns with the actual spatial layout. When color-coded by trial number, the cloud reveals the learning trajectory over trials.
- Ripple content mapping: awake ripple events are projected onto the maze manifold; events that lie on the manifold correspond to temporally compressed replays of recent trajectories toward the reward; sleep ripples fall onto the same manifold if they replay similar trials and locations; pre-learning sleep ripples look different.
- The overall architecture: a two-stage memory model with awake bookmarking and sleep consolidation, integrated by a UMAP-derived maze manifold to decode content and track learning progression.
Key takeaways (concise)
- The hippocampus uses sharp-wave ripples to tag important memories for later consolidation during sleep.
- Awake ripples after notable events function as memory bookmarks, earmarking experiences for priority replay during sleep.
- Sleep-driven memory consolidation transfers selected hippocampal sequences to the neocortex, aided by precise timing (temporal compression).
- Population activity in the hippocampus can be studied in a reduced-dimensional manifold; UMAP reveals a maze-like loop consistent with the actual task structure.
- The maze manifold provides a reference frame to decode ripple content and understand how memories are replayed.
- Awake replays align with current trials when they map onto the maze manifold; off-manifold replays may reflect other cognitive processes.
- Sleep replays after learning resemble awake replays, reinforcing the tagged memories for long-term storage.
- Pre-learning sleep shows different ripple patterns, suggesting that memory representations are reorganized as learning occurs.
- The two-stage memory model (awake bookmarks + sleep consolidation) explains how memory selectivity and durable storage emerge.
- The researchers provide an interactive data resource to explore ripple tagging and neural dynamics firsthand.
- The study highlights the interplay between experience-driven learning and offline consolidation in shaping memory.
- The approach demonstrates how high-dimensional neural data can be mapped onto task geometry to decode memory content.
- The findings support a broad theory: memory selection and consolidation are tightly coupled processes that rely on structured, temporally precise neural replays.
Action items (practical next steps)
- Read the Science paper (doi above) to understand the exact experimental methods and analyses.
- Explore the Ripple Tagging projects website to see interactive visualizations and data exploration tools.
- Review the GitHub code accompanying the video to understand data preprocessing, UMAP analysis, and replay decoding.
- Check out the maze task and the figure-eight paradigm to contextualize how learning trajectories shape neural manifolds.
- If interested in theory, study two-stage memory consolidation models and how awake bookmarks interact with sleep-driven storage.
- Consider visiting Brilliant.org for courses on computational topics (arrays, graphs) to strengthen background for neural data analysis.
Mental models
- Name: Two-Stage Memory Consolidation
- Detail: A day-long process where important experiences are tagged by awake sharp-wave ripples (bookmarks) and selectively consolidated during sleep through repeated replays that strengthen cortical circuits. This model explains why some memories persist while others fade and why sleep is critical for long-term storage.
- Name: Maze Manifold (UMAP-based population representation)
- Detail: A reduced-dimensional embedding of hippocampal population activity that captures the spatial layout and learning progression of a navigation task. It serves as a reference frame for decoding ripple content and understanding how neural states map to task structure.
- Name: Population Activity as a Manifold
- Detail: High-dimensional neural firing patterns lie on a low-dimensional manifold due to network constraints and shared inputs. Dimensionality reduction reveals meaningful structure (loops, trajectories) that align with behavior and learning.
- Name: Temporal Compression in Replay
- Detail: Real-time experiences are replayed in a compressed timescale (seconds to ~100 ms) during sleep, enabling rapid strengthening of hippocampal–cortical connections and efficient consolidation.
- Name: Awake Replay as Bookmarking
- Detail: Awake sharp-wave ripples after salient events act as bookmarks, marking memories for later consolidation when brain states are favorable (sleep). This decouples encoding from consolidation and allows ongoing processing during wakefulness.
Glossary
- Hippocampus: A brain region essential for forming episodic memories and spatial maps (cognitive maps).
- Sharp-Wave Ripple (SWR): A large, synchronous hippocampal event (sharp wave) with a fast oscillation (ripple) that tags memories for consolidation.
- Awake ripple: SWR occurrences during wakefulness that tag important experiences for later consolidation.
- Neocortex: The outer brain cortex where long-term memories are stored after consolidation.
- Consolidation: The process by which memory traces become stable and integrated into long-term cortical networks.
- Cognitive map: An internal representation of space and events that helps navigate and remember spatial layouts.
- Population activity: The combined firing pattern of many neurons at a given moment.
- Dimensionality reduction: Techniques to summarize high-dimensional data with fewer features while preserving structure.
- UMAP (Uniform Manifold Approximation and Projection): A dimensionality reduction method that preserves local and global data structure, used here to reveal the maze-aligned neural manifold.
- Maze manifold: The reduced-dimensional neural activity representation that reflects the task’s spatial structure.
- Decoding: Inferring hidden content (e.g., which trial or path) from neural activity by projecting onto a reference manifold.
- Trial: A single round of the navigation task in which the animal attempts to obtain a reward.
Quotes
- []
Topics
- Memory
- Neuroscience
- Hippocampus
- Sharp-Wave Ripples
- UMAP
- Neural Decoding
- Sleep & Consolidation
- Learning & Plasticity
Action Items
- Read the Science paper on ripple tagging (doi provided in the video).
- Explore the Ripple Tagging projects website to interact with the data and plots.
- Review the GitHub code linked with the video to understand data processing, UMAP analysis, and ripple decoding.
- Study the figure-eight maze paradigm to grasp how spatial structure and learning progression map onto neural activity.
- Experiment with dimensionality reduction concepts (UMAP) to see how high-dimensional neural data can reveal low-dimensional structure.
- Consider taking Brilliant.org’s computer science foundations course to strengthen computational intuition for data analysis in neuroscience.
- If teaching or presenting, use the maze manifold as a visual aid to explain how neural content is decoded from ripples.
- Reflect on the two-stage memory consolidation model and how wake tagging complements sleep-based storage.
Mental Models
Glossary
- Hippocampus
- A brain structure critical for forming episodic memories and mapping experiences in space and time.
- Sharp-Wave Ripple (SWR)
- A large, synchronized hippocampal event (sharp wave) with a high-frequency ripple that governs memory replay and consolidation.
- Awake ripples
- SWRs that occur during wakefulness and tag memories for later sleep-based consolidation.
- Neocortex
- The outer layer of the brain responsible for higher-order cognitive functions and long-term memory storage after consolidation.
- Consolidation
- The process by which memories are stabilized and integrated into long-term storage, transferring from hippocampus to cortex.
- Cognitive map
- An internal representation of the spatial layout and events in an environment, maintained by the hippocampus.
- UMAP
- Uniform Manifold Approximation and Projection, a dimensionality reduction technique that preserves data structure while reducing dimensions.
- Manifold
- A lower-dimensional surface within a higher-dimensional space that captures the essential structure of the data.
- Decoding
- Inferring hidden content (e.g., which path or trial) from neural activity by comparing it to a reference representation.
- Two-stage model
- A framework in which initial bookmarking (awake ripples) is followed by second-stage consolidation (sleep ripples).
Topics
More from Polymath
See all




