Feedforward Learning Local

**Category:** Phase 3 Core - Alternative Learning Paradigms

16 stars

Best use case

Feedforward Learning Local is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

**Category:** Phase 3 Core - Alternative Learning Paradigms

Teams using Feedforward Learning Local should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/feedforward-learning-local/SKILL.md --create-dirs "https://raw.githubusercontent.com/plurigrid/asi/main/ies/music-topos/.codex/skills/feedforward-learning-local/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/feedforward-learning-local/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How Feedforward Learning Local Compares

Feature / AgentFeedforward Learning LocalStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

**Category:** Phase 3 Core - Alternative Learning Paradigms

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

SKILL.md Source

# 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