Layered Surprise Cascades framework for biologically plausible predictive coding using local contrastive learning and activity cancellation. Implements recurrent Forward-Forward algorithm with inverted objective for negative data to yield predictive representations across layers. Use when modeling cortical computation, top-down modulation, surprise signaling, or building hierarchical predictive systems without error-coding neurons.
Scanned 9/11/2026
Install to Claude Code
npx -y skills add hiyenwong/ai_collection --skill layered-surprise-cascades-predictive-coding --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Layered Surprise Cascades Predictive Coding?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/hiyenwong-layered-surprise-cascades-predictive-coding)More formats (shields.io, HTML) on the badges page.
---
name: layered-surprise-cascades-predictive-coding
description: "Layered Surprise Cascades framework for biologically plausible predictive coding using local contrastive learning and activity cancellation. Implements recurrent Forward-Forward algorithm with inverted objective for negative data to yield predictive representations across layers. Use when modeling cortical computation, top-down modulation, surprise signaling, or building hierarchical predictive systems without error-coding neurons."
metadata:
arxiv_id: "2608.05481"
published: "2026-08-10"
authors: "Andrew L. Smith, Linxing Preston Jiang, Jason K. Eshraghian, Matthew S. Bull, Stefano Recanatesi"
tags: [predictive-coding, hierarchical-processing, contrastive-learning, forward-forward-algorithm, cortical-computation, surprise-signaling, top-down-modulation]
license: Complete terms in LICENSE.txt
---
# Layered Surprise Cascades: From Local Learning to Global Prediction
## Overview
Layered Surprise Cascades presents a biologically plausible framework for predictive coding that emerges from local contrastive learning and simple activity cancellation, rather than relying on error-coding neurons or generative modeling of unclear biological plausibility. Building on recent machine learning advances, this framework uses a recurrent variant of the Forward-Forward (FF) algorithm with an inverted objective that increases activity for negative data, yielding predictive representations across layers that capture hallmark features of cortical computation.
## When to Use
Use Layered Surprise Cascades when:
- Modeling cortical computation and hierarchical predictive processing
- Implementing biologically plausible predictive coding without error units
- Building systems that require top-down modulation and surprise signaling
- Working with local learning rules that don't require backpropagation
- Developing recurrent neural networks with predictive capabilities
- Researching the intersection of neuroscience and machine learning
## Core Methodology
### 1. Biologically Plausible Predictive Coding
- Traditional predictive coding relies on error-coding neurons which lack clear biological evidence
- This framework eliminates the need for explicit error units by using local contrastive learning
- Activity cancellation mechanisms replace traditional error propagation
### 2. Recurrent Forward-Forward Algorithm
- Standard Forward-Forward algorithm processes positive and negative data separately
- This variant uses a recurrent architecture with an inverted objective for negative data
- The inverted objective increases activity for negative (surprising) data rather than decreasing it
- This creates a natural surprise signal that propagates through layers
### 3. Local Contrastive Learning
- Each layer learns to distinguish between expected (positive) and surprising (negative) inputs
- Learning occurs through local rules without global error signals
- Contrastive objectives drive the formation of predictive representations
### 4. Hierarchical Surprise Signaling
- Surprise signals cascade through multiple layers of processing
- Top-down modulation emerges naturally from the recurrent architecture
- The system captures key features of cortical computation including prediction and surprise
## Implementation Guidelines
### Architecture Design
1. **Layer Structure**: Design multiple recurrent layers with local connectivity
2. **Activity Cancellation**: Implement simple subtraction or inhibition mechanisms between layers
3. **Contrastive Objective**: Define positive data as expected inputs, negative data as surprising inputs
4. **Inverted Objective**: For negative data, maximize activity rather than minimize it
### Training Procedure
1. **Positive Phase**: Present expected inputs and train layers to maintain appropriate activity levels
2. **Negative Phase**: Present surprising inputs and train layers to increase activity (inverted objective)
3. **Local Updates**: Apply weight updates based only on local pre- and post-synaptic activity
4. **Recurrent Dynamics**: Allow information to flow both forward and backward through recurrent connections
### Evaluation Metrics
- **Prediction Accuracy**: How well does the system predict expected inputs?
- **Surprise Detection**: How effectively does it signal unexpected inputs?
- **Top-Down Modulation**: Does higher-level activity influence lower-level processing?
- **Biological Plausibility**: Are the learning rules and architecture consistent with known neuroscience?
## Expected Results
- Emergent predictive representations across multiple layers
- Natural surprise signaling without explicit error units
- Top-down modulation effects similar to cortical processing
- Biologically plausible learning dynamics
- Competitive performance with traditional predictive coding models
## Pitfalls and Considerations
- **Training Stability**: The inverted objective for negative data may require careful hyperparameter tuning
- **Architecture Design**: Recurrent connections must be designed to avoid instability or oscillations
- **Data Preparation**: Clear distinction between positive (expected) and negative (surprising) data is crucial
- **Computational Cost**: Recurrent processing may be more expensive than feedforward alternatives
- **Scalability**: May require careful design to scale to very deep architectures
## Activation Keywords
- Layered Surprise Cascades
- Predictive coding biologically plausible
- Forward-Forward algorithm recurrent
- Local contrastive learning cortex
- Activity cancellation predictive
- Surprise signaling neural
- Top-down modulation emergent
- Inverted objective negative data
- Hierarchical prediction cortex
- Cortical computation model
## References
- Original Paper: arXiv:2608.05481 [q-bio.NC]
- Related Skills:
- `predictive-coding-light`
- `extended-predictive-coding-exponential-family`
- `online-generalised-predictive-coding`
- `neocortex-error-driven-predictive-learning`Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.
No comments yet. Be the first to comment!