AI often exceeds what human beings can do, but it’s often only able to master one specific task extremely well. When AI tries to multitask, it has a tendency to abruptly override previously learned information. Researchers have found that using offline periods that mimic biological sleep in humans allows artificial neural networks to get better at learning, and avoid forgetting.
For around eight hours each night - roughly a third of our lives in total - we exist in a state of unconscious paralysis. Our heartrate and breathing slow, our body temperature falls, and we lie immobile and unresponsive. But as we slowly progress through the stages of sleep something strange begins to happen: our brain activity shoots back up to levels similar to when we’re awake. Unbeknownst to us, as we drift off, our brains are spontaneously reactivating all that we’ve experienced in our waking states.
SUGGESTED READING Why AI must learn to forget By Ali Boyle
There is a vast interdisciplinary literature spanning both psychology and neuroscience that supports the vital role sleep plays in learning and memory. Now a recent study undertaken by Maxim Bazhenov and his colleagues at the University of California San Diego has shown that artificial neural networks also learn better when combined with periods of off-line reactivation that mimic biological sleep.
One weakness of many of these AI models is that, unlike humans, they are often only able to learn one self-defined task extremely well.
Artificial neural networks loosely model the neurons in a biological brain, and are currently one of the most successful machine-learning techniques for solving a variety of tasks, including language translation, image classification, and even controlling a nuclear fusion reaction.
One weakness of many of these AI models is that, unlike humans, they are often only able to learn one self-defined task extremely well. When trying to learn multiple different tasks, they have a tendency to abruptly override previously learned information in a phenomenon known as catastrophic forgetting. In contrast, the brain is able to learn continuously and typically learns best when new training is interleaved with periods of sleep for memory consolidation.
DeepMind very explicitly cite biology as an inspiration for their own version of sleep when it comes to their artificial neural networks.
Memories are thought to be represented in the human brain by patterns of what is called synaptic weight — the strength or amplitude of a connection between two neurons. When we learn new information, neurons fire in a specific order which can either increase or decrease synapses between them. When we are asleep, the spiking patterns learned when we were awake are repeated spontaneously in a process called reactivation or replay. This typically happens in the hippocampus, and it’s been best studied with respect to 'place cells' - cells that are only active when the animal or person is in a particular location within an environment. When you carry on recording these neurons when animals go to sleep, you see the same patterns of activity replay.
DeepMind very explicitly cite biology as an inspiration for their own version of this process when it comes to their artificial neural networks. In their Deep Q-Networks paper, where they first beat Atari games, they 'replayed' previous experiences in a shuffled order. The effect of this is to 'decorrelate' the inputs so that learning generalises more effectively. Normally, you experience events in a particular order - but that's mostly just coincidence. By shuffling the experiences in this way during learning, you can get rid of these spurious correlations.
SUGGESTED VIEWING The AI illusion With Kate Devlin, Martin Rees, Hilary Lawson, Laura Mersini-Houghton, Stephanie Hare
The study used Spiking Neural Networks (SNNs) with reinforcement learning to investigate whether interleaving periods of learning a new task with periods of sleep-like autonomous activity, can avoid catastrophic forgetting. Spiking neural networks are artificial neural networks that were developed to closely emulate the brain. Instead of information being communicated continuously, SNNs crucially incorporate the concept of time into their operating model and so transmit information as discrete events (spikes) at certain time points.
Bazhenov and his colleagues found that when the spiking networks were trained on a new task, but with occasional off-line periods that mimicked sleep, catastrophic forgetting was mitigated. Much like the human brain, said the study authors, “sleep” for the networks allowed them to replay old memories without explicitly using old training data.
We once thought the brain only changed during the early stages of development and not in adulthood, whereas now we know that the brain is changing constantly. Every trinket of experience causes its structure to change irreversibly. The changing and shaping of connections in our brain - known as synaptic plasticity - occurs both in our waking states and during sleep. During sleep, it further changes our synaptic weight leading to structural changes that allow for long-term memory storage. Much like in humans or animals, the researchers’ use of sleep-like activity optimized the network’s memory representation in synaptic weight space to prevent it forgetting old memories. This meant that the networks could learn continuously, much like humans.
Bazhenov and his colleagues’ research is part of a wider trend that suggests the development of hardware from an AI perspective is becoming more and more ‘brain-like.’ While AI often exercises interpretive power far beyond human understanding, unlike humans, it can often have difficulty carrying experiences from one set of circumstances to another.
Sleep is critical to ensuring cognitive capabilities work at full pelt, and as such, it seems an excellent candidate for incorporation into artificial neural systems.
When faced with multiple unfamiliar tasks AI is often useless. This is generally seen as one of the key impediments in the path to developing Artificial General Intelligence (AGI) which is commonly seen as AI that can learn in the same fashion as humans, in an extremely generalisable and adaptive way.
Unlike the brain, which has a genetic code to give it a head start, machine learning applications are incredibly inefficient as they start from a completely blank slate. Compared with biological neurons that use approximately 20 watts of power, about as much as a compact fluorescent lightbulb, a model like GPT-3 uses around 20 megawatts, enough to supply around 20,000 homes. Some see spiking neural networks, which are often referred to as the third generation of neural networks, as a potential breakthrough of the bottlenecks of ANNs as they typically require much lower energy for the operation.
SUGGESTED READING All-knowing machines are a fantasy By Emily M. Bender
Sleep is critical to ensuring cognitive capabilities work at full pelt, and as such, it seems an excellent candidate for incorporation into artificial systems. Neuroscience in general has historically served as a rich source of inspiration for developing AI. What would be better than emulating an evolutionarily validated template for intelligence? But perhaps in trying to recast the gains of such a process, honed over millions of years, we shouldn’t seek to simply reproduce the gains of our neurobiology but supersede it. Unlike humans - that certainly need their eight hours - the future of AI need not be ringfenced by the boundaries of biology.
“Sleep prevents catastrophic forgetting in spiking neural networks by forming a joint synaptic weight representation” by Maxim Bazhenov et al. PLOS Computational Biology
Join the conversation