Science Score: 44.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (9.4%) to scientific vocabulary
Last synced: 10 months ago · JSON representation ·

Repository

Basic Info
  • Host: GitHub
  • Owner: alanoursland
  • License: other
  • Language: Python
  • Default Branch: main
  • Size: 1.9 MB
Statistics
  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • Open Issues: 1
  • Releases: 0
Created about 1 year ago · Last pushed 10 months ago
Metadata Files
Readme License Citation

README.md

Prototype Surfaces in Neural Networks: A Technical Report Exploring the XOR Problem

Overview

This tech report investigates a fundamental reinterpretation of how neural networks learn: rather than constructing decision boundaries that separate classes, neural networks learn prototype surfaces that characterize where each class naturally exists in feature space. Classification then emerges from measuring geometric deviation from these learned surfaces.

The key insight is that zero activation indicates membership in a learned prototype region, while non-zero activation measures distance from it. This inverts the traditional interpretation where high activation indicates strong feature presence.

Table of Contents

Part I: Theoretical Foundation

  1. Project Overview - Research goals and approach

    • Core hypothesis and research methodology
    • Significance for understanding neural network behavior
    • Approach through controlled experiments
  2. Core Theory - A mathematical framework for prototype surfaces in neural networks.

    • How linear transformations encode signed distances to hyperplanes
    • ReLU as one-sided prototype region detection
    • Absolute value as two-sided distance measurement
    • Networks as hierarchical prototype surface composers
  3. The XOR Problem - Historical context and theoretical importance

    • Minsky & Papert's analysis of perceptron limitations
    • Why XOR is the perfect test case for prototype surface theory
    • From linear separability to geometric learning
  4. XOR Experiment Plan - Detailed experimental methodology

    • Hypothesis-driven experimental design
    • Geometric metrics and visualization approaches
    • Iterative refinement based on findings

Part II: Experiments & Results

Experiment 1: Single Absolute Value Unit

Can a minimal neural network—just one neuron with absolute value activation—solve XOR by learning a prototype surface?

  • Experiment Overview - Architecture and methodology

    • Model: y = |w₁x₁ + w₂x₂ + b|
    • 250 runs across 5 initialization strategies
    • Geometric metrics for prototype surface analysis
  • Results - Empirical findings

    • 100% success rate across all initialization strategies
    • Universal convergence to optimal geometry
    • Prototype surface consistently intersects False class points
    • True class points at exactly √2 distance
  • Discussion - Interpretation and implications

    • Analytical proof of optimal surface configuration
    • Scale vs. orientation in learning dynamics
    • The neuron as a calibrated distance function

Raw data and diagrams are available in project report directories.

Experiment 2: Symmetric ReLU Pair

Can two ReLU units learn to mimic absolute value through discovered symmetry? What failure modes emerge?

  • Experiment Overview - Testing structural vs learned symmetry

    • Model: y = ReLU(w₁·x + b₁) + ReLU(w₂·x + b₂)
    • Hierarchy of failure modes discovered through iterative experiments
    • From 42% failure rate to 100% success through geometric insights
  • Results - Failure modes and interventions

    • Standard initialization: 58% success rate
    • Dead data point elimination: 98% success rate
    • Margin constraints: 100% success rate
    • Mirror initialization: 98.4% success rate (perpendicular trap discovered)
  • Discussion - Geometric insights

    • Dead data points starve gradient flow
    • Small margins lead to training instability
    • Perpendicular initialization creates zero-gradient traps
    • Structural bias vs. discovered symmetry

Raw data and diagrams are available in project report directories.

Key Findings

  1. Neurons are distance computers, not feature detectors - They measure deviation from learned prototype surfaces rather than detecting feature presence.

  2. Zero activation indicates prototype membership - The regions where neurons output zero define the learned prototypes, not where they activate strongly.

  3. Geometric initialization determines learning success - Failures arise from specific geometric configurations (dead points, small margins, perpendicular orientations) rather than random chance.

  4. Structural bias provides robustness - Absolute value's enforced symmetry eliminates failure modes that ReLU pairs must overcome through learning.

  5. Local minima have geometric signatures - Failed configurations correspond to specific geometric arrangements (horizontal/vertical hyperplanes for XOR).

Getting Started

Requirements

  • Python 3.8+
  • PyTorch
  • NumPy, Matplotlib, Scikit-learn
  • CUDA-capable GPU (recommended)

Running Experiments

bash cd src python run.py [experiment_name] # e.g., abs1_normal, relu1_mirror python analyze.py [experiment_name]

Exploring Results

  • Raw results are stored in src/results/
  • Analyzed summaries in reports/[experiment]/data/
  • Visualizations in reports/[experiment]/figures/

Contributing & Future Work

Open Questions

  • How do these principles scale to deeper networks and higher dimensions?
  • Can we design initialization schemes that guarantee prototype surface formation?
  • What is the relationship between prototype surfaces and adversarial examples?
  • How do different activation functions affect prototype geometry?

Status

🚧 This is active research in progress 🚧

The theories, experiments, and conclusions presented here are evolving. Results and interpretations may change as the research develops. Feel free to explore and discuss, but please note that this is not yet a finished work.

License

  • Code: MIT License - see LICENSE
  • Research content (text, figures, theoretical framework): CC BY 4.0

This means: - You may use, modify, and share the code freely under MIT terms. - You may reuse or adapt the research content, provided you give proper attribution.

Citation

If reusing research materials, please credit: bibtex @misc{oursland2025prototype, author = {Oursland, Alan}, title = {Prototype Surfaces in Neural Networks: A Technical Report Exploring the XOR Problem (Work in Progress)}, year = {2025}, howpublished = {\url{https://github.com/alanoursland/tr_xor}}, note = {GitHub repository, accessed 2025-06-24} }


This research provides empirical evidence for a geometric theory of neural network learning, challenging conventional interpretations and opening new directions for understanding deep learning.

Owner

  • Name: Alan Oursland
  • Login: alanoursland
  • Kind: user

Citation (CITATION.cff)

cff-version: 1.2.0
title: "Prototype Surface Learning in Neural Networks: A Technical Report Exploring the XOR Problem"
message: "If you use this research, please cite it as below."
type: software

authors:
  - given-names: Alan
    family-names: Oursland
    email: alan.oursland@gmail.com
    orcid: https://orcid.org/0009-0006-4976-3801

abstract: >
  This project explores a geometric reinterpretation of neural network learning, where neurons model prototype surfaces rather than decision boundaries. Through controlled XOR experiments and theoretical analysis, the work provides evidence that activation patterns encode geometric deviation from learned class regions, not feature presence.

repository-code: https://github.com/alanoursland/tr_xor
date-released: 2025-01-24
version: 1.0.0

keywords:
  - neural networks
  - prototype surface learning
  - XOR problem
  - geometric learning

license: MIT AND CC-BY-4.0

GitHub Events

Total
  • Issues event: 1
  • Push event: 64
  • Create event: 2
Last Year
  • Issues event: 1
  • Push event: 64
  • Create event: 2