Research
Minimizing the Effect of Sleep Deprivation in the Forward-Forward Algorithm
Overview Research area: Biologically plausible deep learning, specifically the Forward-Forward (FF) algorithm and its failure modes under simulated sleep deprivation. Technical level: Intermediate — r
- arXiv
- 2609.06042
- Published
- 2026-09-05
- Authors
- Joy Datta, Puja Saha, Rawhatur Rabbi, Nafiz Imtiaz Rafin, Swakkhar Shatabda, Md. Golam Rabiul Alam, Chad Mourning
AI summary
Overview
Research area: Biologically plausible deep learning, specifically the Forward-Forward (FF) algorithm and its failure modes under simulated sleep deprivation.
Technical level: Intermediate — readers should understand neural network training, activation functions, and loss functions, but the paper's framing is conceptual (sleep cycles as training schedules) rather than mathematically heavy.
Scope: The paper identifies why the Forward-Forward algorithm degrades when positive ("awake") passes heavily outnumber negative ("sleep") passes, and tests activation choices, layer-wise thresholds, training schedules with simulated rest, and a new "caffeine-induced" loss function on MNIST and Fashion-MNIST.
What This Paper Is About
The Forward-Forward algorithm trains networks using two forward passes — one on real data, one on corrupted or masked data — instead of backpropagation. When the negative pass is starved of updates (an imbalance the authors liken to sleep deprivation in humans), learning collapses; a prior study reported MNIST accuracy falling from 74% to 10% when negative passes dropped from 16 to 1. This paper goes beyond observing that collapse and proposes concrete fixes, reporting accuracy gains up to 62% in severe sleep-deprivation settings.
Key Contributions
- Optimal training configurations under sleep deprivation: the authors systematically compare seven activation functions (ReLU, ELU, SiLU, Tanh, Tanhshrink, Softplus, Mish) and six layer-wise threshold combinations, finding Tanhshrink and a pyramidal threshold schedule outperform the ReLU and fixed 1.5 threshold used in prior work.
- Structured rest periods: they introduce training schedules where the awake-to-sleep ratio alternates between epochs — e.g., 8 or 16 positive batches in one epoch, then fewer in the next — to emulate intermittent sleep, and show this consistently raises accuracy.
- Caffeine-Induced Loss (CIL): a composite loss that combines caffeine-like threshold modulation of neuronal firing with homeostatic plasticity and lateral-inhibition terms, designed to keep learning stable when negative passes are scarce.
- A severe sleep-deprivation benchmark: they extend testing beyond the 16-positive-batch regime of prior work to awake periods of 32, 64, and 128 positive batches against a single negative batch, and report large gains over baseline.
Main Findings
- Sleep deprivation is catastrophic without intervention: the paper cites that reducing negative passes from 16 to 1 while holding positive passes fixed drops MNIST accuracy from 74% to 10%, and their own baseline table shows MNIST accuracy of 78, 75, and 73 at awake periods of 2, 4, and 8 collapsing to 10 at awake = 16.
- Pyramidal thresholds work best: across six threshold configurations tested for 100 epochs over three independent trials on Fashion-MNIST, layers of 1.0 / 1.25 / 1.5 gave the highest accuracy at 37.47% ± 1.05%, ahead of uniform 1.0 (36.88% ± 1.23%), uniform 1.5 (33.17% ± 1.10%), uniform 2.5 (26.88% ± 4.44%), 1.0 / 1.5 / 2.0 (37.10% ± 0.39%), and 1.0 / 2.0 / 3.0 (36.11% ± 1.06%).
- Tanh and Tanhshrink resist deprivation better than ReLU: under consistent sleep deprivation on Fashion-MNIST, Tanhshrink reached 49.83% ± 0.86% (awake = 8) and 48.63% ± 1.48% (awake = 16), versus ReLU's 33.19% ± 1.45% and 25.23% ± 3.06%. ReLU, ELU, SiLU, and Softplus "almost flatten out after a few epochs," while Tanh and Tanhshrink keep learning.
- Tanhshrink is decisive when short breaks are added: with alternating awake periods, all activations except Tanhshrink failed to exceed 37% accuracy, while Tanhshrink reached 51%-53% (53.60% ± 1.00% at awake = 8 and 51.45% ± 1.60% at awake = 16).
- CIL dominates under mild-to-moderate deprivation: in 500-epoch runs, at awake = 16 with sleep = 1, CIL achieved 72% on MNIST against 56% for the best optimal-configuration baseline, and the abstract reports a 2%-62% accuracy gain in a severe sleep-deprivation setting of 16 positive periods to 1 negative period.
- CIL gives large gains in severe deprivation: with awake periods of 32, 64, and 128 against 1 negative batch, MNIST accuracy was 53%, 55%, and 41% for CIL versus baseline values of 29%, 19%, and 21%. This corresponds to at least a 20% gain (awake = 128) and a maximum 36% gain (awake = 64). On Fashion-MNIST, gains were 27% to 28%.
- Simple weighting helps Fashion-MNIST but not consistently on MNIST: the simple weighted loss (α = 1/awake period, β = 1) produced 49%, 48%, and 46% on Fashion-MNIST at awake periods of 32, 64, and 128, but only 30%, 20%, and 17% on MNIST.
- Short breaks improve every configuration tested: at 100 epochs, short breaks outperformed consistent sleep deprivation for every α and β combination in Table 6. At 500 epochs, accuracy rose from 54.17% to 61.86% (2 positive batches), 45.18% to 49.52% (4), 44.18% to 45.72% (8), and 38.63% to 43.31% (16). Under consistent deprivation the model fluctuated around 50%, whereas with breaks it exceeded 60% without fluctuations.
- Prolonged deprivation still erodes gains: after roughly 100 epochs, accuracy begins to decline in severe settings; the choice of activation and CIL slows but does not fully eliminate this effect.
Methodology in Plain English
The authors use a three-layer network with 500 neurons per layer, the Adam optimizer (learning rate 0.001 for the negative pass and 0.001 divided by the awake period for the positive pass), and a batch size of 512. Negative data is generated through the same masking strategy as prior work — mixing two data points with a predefined mask — and standard losses push the sum of squared neural activities above a threshold for positive data and below it for negative data.
They then attack the sleep-deprivation problem from three angles. First, they tune the network's fixed settings: they sweep thresholds per layer and try seven activation functions to find what survives when negative passes are few. Second, they restructure the training schedule so that after an epoch with many positive batches, the next epoch uses far fewer, mimicking a nap between learning sessions. Third, they replace the standard loss with the Caffeine-Induced Loss, which lowers the effective firing threshold slightly (like caffeine's effect on neurons), adds a homeostatic term pulling average neuron activity toward a set point r, and adds an inhibition term that forces positive-data activity to exceed negative-data activity by a margin. The CIL hyperparameters were chosen by reasoning rather than exhaustive tuning: λ = 1.2, ε = 10⁻⁵, η = 0.25, r = 0.15, ψ = 2.4, δ = 1.5, m_g = 0.15, m_c = 0. The authors state these values are "kind of arbitrary" and that careful tuning could yield better performance.
Why This Matters
This work reframes a training-schedule problem — how often you show a network what not to learn — as a design lever rather than a nuisance. By grounding loss design in biological mechanisms (homeostasis, lateral inhibition, caffeine-like excitability), it offers a concrete, testable recipe for keeping local, non-backpropagation learning methods usable when generating negative samples is expensive. The reported 20%-36% MNIST gains in severe deprivation settings suggest the failure mode is partly fixable rather than fundamental.
Real-world applications:
- Continual and online learning systems where negative or corrupted samples cannot be manufactured on demand.
- On-device or edge learning, where backpropagation's memory and computational overhead are impractical.
- Neuromorphic and hardware-constrained computing, where only forward, local computations are available.
- Any pipeline that adapts to a stream of positive examples over long periods without balanced contrastive data.
Industry relevance: teams exploring alternatives to backpropagation for efficiency or hardware reasons now have documented hyperparameters (threshold schedules, Tanhshrink activation, loss weighting schemes) they can adopt directly, and an explicit warning that prolonged imbalance still degrades models even with these fixes.
Future Directions
- Systematic CIL hyperparameter tuning: the authors explicitly note their CIL constants were logical choices, not tuned, and that careful tuning "can lead to even better performance."
- Explaining the residual decay: accuracy begins declining after roughly 100 epochs even with better activations, so what causes that residual degradation and whether other mechanisms can arrest it remains open.
- Closing the gap at severe settings on Fashion-MNIST: CIL reached 49%-50% across awake periods of 32, 64, and 128 with little variation, whereas MNIST ranged from 41% to 55%, suggesting dataset-specific dynamics worth understanding.
- Extending beyond image classification: prior work moved FF to tasks like IMDb sentiment classification with pyramidal thresholding, so testing the rest-period and caffeine-based approaches on non-vision domains is a natural next step.
Target Audience
Researchers and graduate students working on biologically plausible learning, alternatives to backpropagation, and continual or online learning will get the most from this paper. It also suits practitioners who already use Forward-Forward and need practical settings — activation function, layer-wise thresholds, loss weighting — for training regimes with imbalanced positive and negative data. Readers looking for a rigorous derivation of why caffeine-inspired loss terms work will not find one here; the contribution is empirical and design-oriented.
Authors’ abstract
This paper addresses the challenge posed by sleep deprivation in the Forward-Forward algorithm, where separating the two passes in this algorithm and imbalancing the data processing in the passes is considered an imitation of the cognitive processes observed in humans suffering from sleep deprivation. Previous research has demonstrated that sleep deprivation in the Forward-Forward algorithm has a catastrophic effect on learning efficacy. To mitigate this issue, we explore several approaches; these include alternative activation, optimized loss function, and threshold tuning. To simulate periodic rest, we reduce the number of positive passes in alternating epochs, creating short break phases. We additionally investigate the potential of caffeine-induced stimulation to enhance performance during sleep-deprived conditions. Experimental evaluations conducted on the MNIST and Fashion-MNIST datasets demonstrate that these modifications improve accuracy under the context of sleep deprivation. For example, a 2%-62% accuracy gain is observed in a severe sleep deprivation setting (16 positive or awake periods and 1 negative or sleep period). The approaches also enhance the resilience of the algorithm and its alignment with the adaptive mechanisms of human cognition.