[Paper Review] Thalamus: a brain-inspired algorithm for biologically-plausible continual learning and disentangled representations
Thalamus proposes a brain-inspired algorithm for continual learning that uses inference-time optimization to dynamically generate task-specific latent embeddings, enabling disentangled representations and contextual behavioral control without task labels. By alternating weight updates with gradient-based latent updates, it achieves robust continual learning with knowledge transfer and minimal forgetting, even in open-ended, unsupervised settings.
Animals thrive in a constantly changing environment and leverage the temporal structure to learn well-factorized causal representations. In contrast, traditional neural networks suffer from forgetting in changing environments and many methods have been proposed to limit forgetting with different trade-offs. Inspired by the brain thalamocortical circuit, we introduce a simple algorithm that uses optimization at inference time to generate internal representations of the current task dynamically. The algorithm alternates between updating the model weights and a latent task embedding, allowing the agent to parse the stream of temporal experience into discrete events and organize learning about them. On a continual learning benchmark, it achieves competitive end average accuracy by mitigating forgetting, but importantly, by requiring the model to adapt through latent updates, it organizes knowledge into flexible structures with a cognitive interface to control them. Tasks later in the sequence can be solved through knowledge transfer as they become reachable within the well-factorized latent space. The algorithm meets many of the desiderata of an ideal continually learning agent in open-ended environments, and its simplicity suggests fundamental computations in circuits with abundant feedback control loops such as the thalamocortical circuits in the brain.
Motivation & Objective
- To develop a biologically plausible continual learning algorithm that mimics the thalamocortical circuit's role in task parsing and cognitive flexibility.
- To enable unsupervised task discovery in sequential, open-ended environments without requiring task identifiers or pre-specified numbers of tasks.
- To support forward and backward knowledge transfer by organizing representations into a well-factorized, disentangled latent space.
- To achieve contextual behavioral control, where the same input triggers different responses based on internal task context.
- To design a simple, scalable algorithm that operates without a distinct training phase and maintains plasticity for future learning.
Proposed method
- The algorithm alternates between standard backpropagation for model weight updates and gradient descent in a continuous latent space for task embedding updates.
- Task identity is inferred by optimizing a latent vector at inference time using gradients through the network’s forward pass, enabling dynamic labeling of ongoing experience.
- The latent space is initialized with a fixed-size embedding for each task, and new tasks are discovered when existing embeddings fail to explain new inputs.
- The method uses a single network with shared weights for both inference and latent optimization, eliminating the need for separate task inference heads or buffers.
- Gradient updates to the latent embedding are computed via backpropagation through the network, allowing error signals to guide task representation formation.
- The algorithm operates in an end-to-end, unsupervised manner, with no explicit task boundaries or labels required during inference.
Experimental results
Research questions
- RQ1Can a simple, biologically plausible algorithm dynamically parse sequential experience into discrete tasks without task labels or pre-specified cluster counts?
- RQ2How does inference-time optimization of latent representations enable disentangled and transferable knowledge in continual learning?
- RQ3To what extent can such a system support contextual behavioral control, where the same input leads to different outputs based on internal task context?
- RQ4Can the algorithm maintain plasticity and avoid catastrophic forgetting while scaling to an open-ended sequence of tasks?
- RQ5How does the use of gradient descent in latent space compare to alternative methods in terms of generalization and knowledge transfer?
Key findings
- The algorithm achieves competitive end-of-sequence average accuracy on a continual learning benchmark while significantly mitigating catastrophic forgetting.
- By using latent updates, the model organizes knowledge into a well-factorized, disentangled latent space that supports flexible knowledge transfer to future and past tasks.
- The method discovers temporal events at arbitrary time scales without requiring prior specification of the number of tasks or clustering structure.
- The algorithm enables contextual behavioral control, where identical inputs can elicit different responses depending on the current task context encoded in the latent vector.
- The model generalizes to novel tasks through retrieval and adaptation in the latent space, demonstrating forward and backward knowledge transfer.
- The approach is scalable and operates without a distinct training phase, making it suitable for open-ended, lifelong learning in dynamic environments.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.