Skip to content
Back to skills

Feedforward Learning Local

ASecurity

**Category:** Phase 3 Core - Alternative Learning Paradigms **Status:** Skeleton Implementation **Dependencies:** None (standalone learning framework)

  • 61 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 6, 2026
datago

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned September 6, 2026

npx -y skills add plurigrid/asi --skill feedforward-learning-local --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Feedforward Learning Local?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Feedforward Learning Local
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/plurigrid-feedforward-learning-local/badge)](https://www.skillsdirectory.com/skills/plurigrid-feedforward-learning-local)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
# Feedforward Learning Local

**Category:** Phase 3 Core - Alternative Learning Paradigms
**Status:** Skeleton Implementation
**Dependencies:** None (standalone learning framework)

## Overview

Implements forward-forward (FF) learning algorithm and variants that eliminate backpropagation through local, layer-wise contrastive objectives. Each layer learns to distinguish positive from negative data independently.

## Capabilities

- **Forward-Forward Algorithm**: Hinton's layer-local learning
- **Contrastive Objectives**: Positive/negative data discrimination
- **No Backprop**: Purely feedforward gradient computation
- **Statistical Communication**: Inter-layer coordination via activity statistics

## Core Components

1. **FF Layer** (`ff_layer.jl`)
   - Local goodness function per layer
   - Positive/negative data generation
   - Layer-wise gradient updates

2. **Contrastive Learning** (`contrastive_learning.jl`)
   - Contrastive divergence variants
   - Energy-based formulations
   - Hybrid supervised/unsupervised objectives

3. **Statistical Coordination** (`statistical_coordination.jl`)
   - Activity normalization between layers
   - Whitening and decorrelation
   - Predictive coding integration

4. **FF Network** (`ff_network.jl`)
   - Multi-layer FF architecture
   - Inference and training loops
   - Comparison with backprop baselines

## Integration Points

- **Input from**: Raw data (no dependencies on other skills)
- **Output to**: `emergent-role-assignment` (decentralized learning signals)
- **Coordinates with**: `categorical-composition` (compositional learning)

## Usage

```julia
using FeedforwardLearningLocal

# Create FF network
network = FFNetwork([
    FFLayer(input_dim=784, hidden_dim=500, threshold=2.0),
    FFLayer(input_dim=500, hidden_dim=500, threshold=2.0),
    FFLayer(input_dim=500, hidden_dim=10, threshold=1.0)
])

# Train on MNIST
for (x_pos, y) in train_data
    # Generate negative data by corrupting label
    x_neg = overlay_wrong_label(x_pos, y)

    # Local learning at each layer
    train_step!(network, x_pos, x_neg)
end

# Inference
predictions = predict(network, test_data)
```

## References

- Hinton "The Forward-Forward Algorithm" (2022)
- LeCun et al. "A Tutorial on Energy-Based Learning" (2006)
- Nokland & Eidnes "Training Neural Networks with Local Error Signals" (ICML 2019)

## Implementation Status

- [x] Basic FF layer implementation
- [x] Positive/negative data generation
- [ ] Multiple variants (supervised, unsupervised)
- [ ] Benchmark against backprop
- [ ] Integration with predictive coding

Files in this skill

  • SKILL.md2.5 KB
  • ff_layer.jl4.4 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.