GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com โ€” GitHub - ImmortalDemonGod/arc-taxonomy-reproduction: Official package for "A Neural Affinity Framework for Abstract Reasoning." Includes the validated 9-category ARC taxonomy, pre-computed fine-tuning results, and scripts to verify the Compositional Gap.

BranchesTags
Open more actions menu

Latest commit

 

History

174 Commits
174 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
configs
configs
 
 
data
data
 
 
docs
docs
 
 
external
external
 
 
figures
figures
 
 
logs
logs
 
 
outputs
outputs
 
 
scripts
scripts
 
 
src
src
 
 
tests
tests
 
 
weights
weights
 
 
.gitignore
.gitignore
 
 
.gitmodules
.gitmodules
 
 
APPLYING_TO_YOUR_MODEL.md
APPLYING_TO_YOUR_MODEL.md
 
 
Ingram_Merrit_2025_Neural_Affinity_Framework_ARC.pdf
Ingram_Merrit_2025_Neural_Affinity_Framework_ARC.pdf
 
 
LICENSE
LICENSE
 
 
QUICKSTART.md
QUICKSTART.md
 
 
README.md
README.md
 
 
pytest.ini
pytest.ini
 
 
requirements.txt
requirements.txt
 
 
run_training.sh
run_training.sh
 
 
setup.py
setup.py
 
 
verify_setup.py
verify_setup.py
 
 

Repository files navigation

Neural Affinity Framework for ARC - Official Package

CI Python 3.11 License: MIT Paper Reproducible

Paper: Ingram & Merritt (2025) - A Neural Affinity Framework for Abstract Reasoning: Diagnosing the Compositional Gap in Transformer Architectures via Procedural Task Taxonomy
Status: Pre-print (Under Review) โ€ข Artifact Evaluated


๐Ÿš€ Quick Start ๐Ÿ”ง Apply to Your Model โš–๏ธ License (MIT) ๐Ÿ“„ Paper (arXiv)

What is this?

This repository serves two main use cases:

  1. Verify the paper โ€” independently check all empirical claims without reading 61 pages or training models.
  2. Diagnose your ARC model โ€” evaluate new architectures by category (neural affinity), compositional gap, and curriculum design.

We provide:

  1. Pre-computed results from 302 fine-tuning experiments (no GPU needed)
  2. Verification scripts that check the paper's statistics are correct
  3. Complete training code if you want to reproduce from scratch (GPU required)

Target audience:

  • Researchers wanting to verify our "Compositional Gap" (69.5% of tasks fail composition) and "Neural Affinity Ceiling" (42.9% of hard tasks stuck at 0%) claims.
  • Researchers building new ARC models who want diagnostics for their architectures.

Time to verify claims: ~5 minutes (scripts only)
Time to reproduce from scratch: ~120 GPU-hours (full training)

The Key Finding (Visual Summary)

Compositional Gap: 99% cell accuracy but 18% grid accuracy

What you're seeing: The model learns the parts perfectly (99.33% cell accuracy, green line) but cannot compose them into solutions (17.75% grid accuracy, red line). This 81.6pp gap persists despite 400 training examples, proving the failure is architectural, not data-driven.


๐Ÿ‘‰ Start Here (New to this repo?)

Just want to verify the paper's claims?

  1. Jump to ๐Ÿš€ Quick Start
  2. Run the 3 setup commands
  3. Run the 3 verification scripts
  4. Done! You've verified the key findings.

Want to understand what we found?

  • Read the reproduction table mapping paper sections to scripts
  • Each row shows: Paper section โ†’ Claim โ†’ How to verify it โ†’ Source data

Want to train models yourself?

  • See ๐Ÿ”ง Full Reproduction (requires GPU)

Have your own ARC model?

  • See ๐Ÿ”ง Applying to Your Model to:
    • benchmark your model against specific skills (not just global accuracy),
    • diagnose whether failures come from perception vs reasoning (Compositional Gap),
    • curate training data to target specific architectural blind spots.

๐Ÿ“„ Documentation

  • Paper PDF - Full 61-page paper with complete 400-task taxonomy
  • Applying to Your Model - Guide for researchers building ARC solvers
  • Training Guide - Full reproduction from scratch (GPU required)

๐ŸŽฏ Key Contributions

  1. Systematic and Dually-Validated Taxonomy - First 9-category taxonomy for re-arc, validated at code-level (97.5% accuracy) and visual-level (95.24% on S3)
  2. Quantitative Evidence for Curriculum Bias - First systematic analysis showing 35.3% of tasks fall into low neural affinity categories
  3. Empirical Evidence for the Compositional Gap - Quantitative evidence that 69.5% of fine-tuned tasks achieve >80% cell accuracy but <10% grid accuracy
  4. Diagnostic Framework for Architectural Ceilings - Neural Affinity Ceiling Effect mechanism explaining failures and predicting ARC-AGI-2 generalization gap
  5. Predictive Power on Independent Data - Framework predicts ViTARC patterns (400 specialist models): Very Low affinity tasks achieve 25.8pp lower performance (p<0.001)
  6. Evidence for Transfer Despite the Gap - Pre-training on re-arc improves ARC-AGI-2 cell accuracy (~71.6% โ†’ ~89.5%) despite compositional failure
  7. Publicly Released Toolkit - Validated taxonomy, classifiers, datasets, and complete reproduction package

๐Ÿ”ฌ Reproducing Key Results

Each major empirical claim has a dedicated reproduction script that outputs the exact statistics cited in the paper.

Paper Section Finding Reproduction Script Source Data
ยง5.2 Taxonomy achieves 97.5% accuracy (390/400 correct) python scripts/0_generate_taxonomy_classification.py Generator code analysis
ยง7.1 Compositional Gap: 69.5% show >80% cell but <10% grid python scripts/calculate_compositional_gap.py atomic_lora_training_summary.json
ยง7.2 A2 Ceiling: 42.9% stuck at 0% despite fine-tuning python scripts/verify_a2_failures.py atomic_lora_training_summary.json
ยง7.3 ARC-AGI-2: 0.34% grid, 89% cell transfer python scripts/arc_agi_2_analysis.py arc_agi_2_experiments/
ยง7.4 S3 splits into Pattern (easy) vs Graph (hard) python scripts/0_analyze_s3_heterogeneity.py s3_final_classification.json
ยง7.5 ViTARC validation: p<0.001, Cohen's d=0.726 python scripts/analyze_vitarc_performance.py vitarc_appendix_tables.csv

๐Ÿ“ Repository Structure

  • src/ - 1.7M parameter Transformer model
  • scripts/ - Taxonomy generation, analysis, figure creation
  • data/ - Taxonomy classifications and external validation data
  • docs/ - Comprehensive documentation
  • figures/ - All paper figures (reproducible)
  • weights/ - Pre-trained model checkpoints
  • outputs/ - Experiment results

๐Ÿš€ Quick Start (Verification Only - No GPU Needed)

System Requirements:

  • Python 3.8+
  • 8GB RAM
  • ~2GB disk space
  • No GPU required (uses pre-computed results)

Step 1: Setup (2 minutes)

# Clone repository
git clone https://github.com/ImmortalDemonGod/arc-taxonomy-reproduction.git
cd arc-taxonomy-reproduction

# Install dependencies
pip install -r requirements.txt

# Initialize submodule (downloads re-arc task generators)
git submodule update --init --recursive

# Verify everything is present
python verify_setup.py

Expected output: All checks should show โœ… PASS

Step 2: Verify Paper Claims (3 minutes)

Run these scripts to verify the exact statistics cited in the paper:

# Verify Compositional Gap (ยง7.1)
python scripts/calculate_compositional_gap.py
# Expected: "Tasks with compositional gap: 210 (69.5%)"

# Verify A2 Ceiling Effect (ยง7.2)
python scripts/verify_a2_failures.py
# Expected: "A2 tasks with 0.0% grid accuracy: 9"
#           "Failure rate: 42.9%"

# Verify taxonomy accuracy (ยง5.2)
python scripts/0_generate_taxonomy_classification.py
# Expected: "Accuracy: 39/40 (97.5%)" (validation sample)
#           "TOTAL: 400" (full classification table)

Step 3: (Optional) Generate Figures

# Regenerate all paper figures
python ../scripts/generate_smoking_gun_figure.py
python ../scripts/generate_arc_agi_2_comparison.py
python ../scripts/generate_failure_concentration.py

๐Ÿ”ง Full Reproduction (Training from Scratch)

When you need this: Only if you want to regenerate atomic_lora_training_summary.json (the 302-task LoRA results) instead of using our pre-computed version.

System Requirements:

  • GPU with 16GB+ VRAM (A100/V100/RTX 3090)
  • Python 3.10+
  • 50GB disk space
  • Time: ~120 GPU-hours (serial) or ~24 GPU-hours (parallel on 5 GPUs)

What Gets Reproduced

Training regenerates the core empirical results:

  • outputs/atomic_lora_training_summary.json (241KB) - All 302 LoRA fine-tuning results
  • Enables verification of ยง7.1 (Compositional Gap) and ยง7.2 (A2 Ceiling) from scratch

Training Pipeline (3 Steps)

Step 1: Generate Training Data (15-20 min, CPU)

bash scripts/regenerate_data.sh 400
# Generates 400 tasks ร— 400 samples = 160,000 examples
# Output: data/distributional_alignment/*.json

Step 2: Train Base Champion Model (2-4 hours, GPU)

./run_training.sh exp3
# Or: python scripts/train_exp3_champion.py
# Output: weights/champion_epoch_N.ckpt

Step 3: Train 302 LoRA Adapters (100-120 hours, GPU)

# Serial execution (1 GPU, ~5 days)
python scripts/train_atomic_loras.py

# Parallel execution (5 GPUs, ~1 day) - Recommended
# Split tasks across GPUs - see QUICKSTART.md for details

Result: Regenerated atomic_lora_training_summary.json with all 302 task results

Detailed Training Instructions

See QUICKSTART.md for:

  • Parallel training strategies (5x speedup)
  • Checkpoint management
  • Hyperparameter configuration
  • Training all 5 architecture ablations

๐Ÿ“Š Key Results

  • re-arc taxonomy: 97.5% (390/400 tasks)
  • ARC-AGI-2: 0.34% (diagnostic model, not solver)
  • External validation: Affinity predictions confirmed (Cohen's d=0.726)

โ“ FAQ

Q: Do I need to train models to verify the paper's claims?
A: No! We provide pre-computed results. Just run the verification scripts.

Q: How long does verification take?
A: ~5 minutes total. Each script runs in 30-60 seconds.

Q: What if verify_setup.py shows โŒ FAIL?
A: Most common issues:

  • Missing submodule: Run git submodule update --init --recursive
  • Missing packages: Run pip install -r requirements.txt
  • Wrong directory: Ensure you're in the reproduction/ folder

Q: Can I run this on CPU only?
A: Yes! Verification uses pre-computed results, no GPU needed.

Q: What is "re-arc"?
A: A synthetic ARC dataset with 400 tasks and known generator code, allowing systematic analysis.

Q: Why do some scripts reference ../scripts/?
A: Some figure scripts are shared between the paper and reproduction package. Both paths work.

๐Ÿ› Troubleshooting

Issue Solution
FileNotFoundError: external/re-arc/generators.py Run git submodule update --init --recursive
ModuleNotFoundError: torch Run pip install -r requirements.txt
FileNotFoundError: outputs/atomic_lora_training_summary.json This file should exist (241KB). Check you cloned the complete repo.
Script outputs different percentages Ensure you're using the correct data files. Run python verify_setup.py first.

๐Ÿ™ Acknowledgments

We thank Michael Hodel for his guidance during the pre-submission phase and for creating the re-arc infrastructure that made this analysis possible.

We also extend our gratitude to Wenhao Li (University of Toronto) for validating our findings regarding the architectural ceilings in ViTARC and for facilitating the release of this work.

๐Ÿ“ Citation

@article{ingram2025neuralaffinity,
  title={A Neural Affinity Framework for Abstract Reasoning: Diagnosing the 
         Compositional Gap in Transformer Architectures via Procedural Task Taxonomy},
  author={Ingram, Miguel and Merritt, Arthur Joseph},
  journal={arXiv preprint arXiv:2512.07109},
  year={2025}
}

๐Ÿ“ง Contact

For questions or issues: Open an issue on GitHub


Last Updated: December 1, 2025

About

Official package for "A Neural Affinity Framework for Abstract Reasoning." Includes the validated 9-category ARC taxonomy, pre-computed fine-tuning results, and scripts to verify the Compositional Gap.

github.com/ImmortalDemonGod/arc-taxonomy-reproduction/blob/master/Ingram_Merrit_2025_Neural_Affinity_Framework_ARC.pdf

Topics

abstract-reasoningarc-agiarc-agi-2compositional-generalizationmachine-learningneural-affinitypytorchreproducibilitytaxonomytransformers

Resources

Readme
MIT license
Activity

Stars

1 star

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Contributors

Languages

You are visitor 01402792 โ€” GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800ร—600. No cookies required.