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) |
This repository serves two main use cases:
- Verify the paper โ independently check all empirical claims without reading 61 pages or training models.
- Diagnose your ARC model โ evaluate new architectures by category (neural affinity), compositional gap, and curriculum design.
We provide:
- Pre-computed results from 302 fine-tuning experiments (no GPU needed)
- Verification scripts that check the paper's statistics are correct
- 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)
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.
Just want to verify the paper's claims?
- Jump to ๐ Quick Start
- Run the 3 setup commands
- Run the 3 verification scripts
- 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.
- 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)
- 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)
- Quantitative Evidence for Curriculum Bias - First systematic analysis showing 35.3% of tasks fall into low neural affinity categories
- Empirical Evidence for the Compositional Gap - Quantitative evidence that 69.5% of fine-tuned tasks achieve >80% cell accuracy but <10% grid accuracy
- Diagnostic Framework for Architectural Ceilings - Neural Affinity Ceiling Effect mechanism explaining failures and predicting ARC-AGI-2 generalization gap
- Predictive Power on Independent Data - Framework predicts ViTARC patterns (400 specialist models): Very Low affinity tasks achieve 25.8pp lower performance (p<0.001)
- Evidence for Transfer Despite the Gap - Pre-training on re-arc improves ARC-AGI-2 cell accuracy (~71.6% โ ~89.5%) despite compositional failure
- Publicly Released Toolkit - Validated taxonomy, classifiers, datasets, and complete reproduction package
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 |
src/- 1.7M parameter Transformer modelscripts/- Taxonomy generation, analysis, figure creationdata/- Taxonomy classifications and external validation datadocs/- Comprehensive documentationfigures/- All paper figures (reproducible)weights/- Pre-trained model checkpointsoutputs/- Experiment results
System Requirements:
- Python 3.8+
- 8GB RAM
- ~2GB disk space
- No GPU required (uses pre-computed results)
# 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
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)
# Regenerate all paper figures
python ../scripts/generate_smoking_gun_figure.py
python ../scripts/generate_arc_agi_2_comparison.py
python ../scripts/generate_failure_concentration.pyWhen 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)
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
bash scripts/regenerate_data.sh 400 # Generates 400 tasks ร 400 samples = 160,000 examples # Output: data/distributional_alignment/*.json
./run_training.sh exp3 # Or: python scripts/train_exp3_champion.py # Output: weights/champion_epoch_N.ckpt
# 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
See QUICKSTART.md for:
- Parallel training strategies (5x speedup)
- Checkpoint management
- Hyperparameter configuration
- Training all 5 architecture ablations
- 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)
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.
| 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. |
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.
@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} }
For questions or issues: Open an issue on GitHub
Last Updated: December 1, 2025
