Feedforward learning local

From plurigrid/asi · View interactive version

Feedforward learning local is an AI agent skill from the GitHub repository plurigrid/asi. **Category:** Phase 3 Core - Alternative Learning Paradigms

How to use this skill

Skill file

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

Core Components

  1. FF Layer (ff_layer.jl)
  1. Contrastive Learning (contrastive_learning.jl)
  1. Statistical Coordination (statistical_coordination.jl)
  1. FF Network (ff_network.jl)

Integration Points

Usage

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

Implementation Status

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.