Flexible task abstractions emerge in linear networks with fast and bounded units

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Sandbrink, Kai, Bauer, Jan P., Proca, Alexandra M., Saxe, Andrew M., Summerfield, Christopher, Hummos, Ali
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866909457480417280
author Sandbrink, Kai
Bauer, Jan P.
Proca, Alexandra M.
Saxe, Andrew M.
Summerfield, Christopher
Hummos, Ali
author_facet Sandbrink, Kai
Bauer, Jan P.
Proca, Alexandra M.
Saxe, Andrew M.
Summerfield, Christopher
Hummos, Ali
contents Animals survive in dynamic environments changing at arbitrary timescales, but such data distribution shifts are a challenge to neural networks. To adapt to change, neural systems may change a large number of parameters, which is a slow process involving forgetting past information. In contrast, animals leverage distribution changes to segment their stream of experience into tasks and associate them with internal task abstracts. Animals can then respond flexibly by selecting the appropriate task abstraction. However, how such flexible task abstractions may arise in neural systems remains unknown. Here, we analyze a linear gated network where the weights and gates are jointly optimized via gradient descent, but with neuron-like constraints on the gates including a faster timescale, nonnegativity, and bounded activity. We observe that the weights self-organize into modules specialized for tasks or sub-tasks encountered, while the gates layer forms unique representations that switch the appropriate weight modules (task abstractions). We analytically reduce the learning dynamics to an effective eigenspace, revealing a virtuous cycle: fast adapting gates drive weight specialization by protecting previous knowledge, while weight specialization in turn increases the update rate of the gating layer. Task switching in the gating layer accelerates as a function of curriculum block size and task training, mirroring key findings in cognitive neuroscience. We show that the discovered task abstractions support generalization through both task and subtask composition, and we extend our findings to a non-linear network switching between two tasks. Overall, our work offers a theory of cognitive flexibility in animals as arising from joint gradient descent on synaptic and neural gating in a neural network architecture.
format Preprint
id arxiv_https___arxiv_org_abs_2411_03840
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Flexible task abstractions emerge in linear networks with fast and bounded units
Sandbrink, Kai
Bauer, Jan P.
Proca, Alexandra M.
Saxe, Andrew M.
Summerfield, Christopher
Hummos, Ali
Machine Learning
Neurons and Cognition
Animals survive in dynamic environments changing at arbitrary timescales, but such data distribution shifts are a challenge to neural networks. To adapt to change, neural systems may change a large number of parameters, which is a slow process involving forgetting past information. In contrast, animals leverage distribution changes to segment their stream of experience into tasks and associate them with internal task abstracts. Animals can then respond flexibly by selecting the appropriate task abstraction. However, how such flexible task abstractions may arise in neural systems remains unknown. Here, we analyze a linear gated network where the weights and gates are jointly optimized via gradient descent, but with neuron-like constraints on the gates including a faster timescale, nonnegativity, and bounded activity. We observe that the weights self-organize into modules specialized for tasks or sub-tasks encountered, while the gates layer forms unique representations that switch the appropriate weight modules (task abstractions). We analytically reduce the learning dynamics to an effective eigenspace, revealing a virtuous cycle: fast adapting gates drive weight specialization by protecting previous knowledge, while weight specialization in turn increases the update rate of the gating layer. Task switching in the gating layer accelerates as a function of curriculum block size and task training, mirroring key findings in cognitive neuroscience. We show that the discovered task abstractions support generalization through both task and subtask composition, and we extend our findings to a non-linear network switching between two tasks. Overall, our work offers a theory of cognitive flexibility in animals as arising from joint gradient descent on synaptic and neural gating in a neural network architecture.
title Flexible task abstractions emerge in linear networks with fast and bounded units
topic Machine Learning
Neurons and Cognition
url https://arxiv.org/abs/2411.03840