Skip to content

MandelMem: Multi-Resolution Reasoning Architecture with Fractal-Inspired Dynamics. A breakthrough AI reasoning system achieving 60.0% accuracy through quadtree decomposition and bounded iterative dynamics. Complete research paper, implementation, and reproducible results included.

License

Notifications You must be signed in to change notification settings

kossisoroyce/mandlemem

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MandelMem: Multi-Resolution Reasoning Architecture

Research Paper License: MIT Python 3.8+

A breakthrough AI reasoning system achieving 60.0% accuracy through fractal-inspired multi-resolution dynamics and quadtree decomposition. MandelMem outperforms Chain-of-Thought and Tree-of-Thought baselines across 15+ standard benchmarks.

🏆 Key Results

  • 60.0% accuracy vs 53.3% for CoT/ToT baselines (+6.7% improvement)
  • Perfect performance on MATH and CommonsenseQA datasets (100% accuracy)
  • 1.32x speed advantage over Tree-of-Thought methods
  • Statistical significance validated across multiple domains

🏗️ Architecture Overview

MandelMem introduces a novel quadtree-fractal reasoning architecture with:

  • 🌳 Quadtree Multi-Resolution Structure: Hierarchical problem decomposition with adaptive subdivision
  • 🌀 Fractal-Inspired Iterative Dynamics: Mandelbrot-like convergence with three-band classification
  • 🛡️ Boundedness Verification: Systematic prevention of reasoning drift
  • ⚡ Integrated Implementation: Complete system vs prompt-based approximation

Architecture Overview

📊 Performance Comparison

Method Accuracy Speed Convergence
MandelMem 60.0% 1.32x Stable
Chain-of-Thought 53.3% 1.0x Variable
Tree-of-Thought 53.3% 0.76x Unstable
Single-Shot 46.7% 1.5x N/A

🚀 Quick Start

Installation

git clone https://github.com/kossisoroyce/mandlemem.git
cd mandlemem
pip install -r requirements.txt

Basic Usage

from mandelmem import MandelMem
from src.integrated_mandelmem_system import IntegratedMandelMemSystem

# Initialize the integrated system
system = IntegratedMandelMemSystem()

# Solve a reasoning problem
result = system.solve_problem(
    problem="What is the sum of the first 10 prime numbers?",
    max_depth=4,
    convergence_threshold=0.8
)

print(f"Answer: {result['answer']}")
print(f"Confidence: {result['confidence']}")
print(f"Reasoning trace: {result['trace']}")

Run Demo

python examples/simple_demo.py

📁 Repository Structure

MandelMem/
├── docs/                        # 📄 Research Paper & Documentation
│   ├── mandelmem_paper.pdf      # Main publication
│   ├── mandelmem_paper.tex      # LaTeX source
│   └── RESEARCH_REPORT_UPDATED.md
├── src/                         # 🏗️ Core Implementation
│   ├── integrated_mandelmem_system.py
│   ├── advanced_baseline_methods.py
│   └── standard_benchmark_evaluation.py
├── mandelmem/                   # 📦 Core Package
│   ├── core.py                  # Main system logic
│   ├── dynamics.py              # Fractal iteration
│   ├── quadtree.py              # Multi-resolution structure
│   └── [6 other modules]
├── examples/                    # 🎯 Usage Examples
├── figures/                     # 🖼️ Publication Figures
├── results/                     # 📊 Benchmark Results
└── requirements.txt

🔬 Research & Evaluation

Benchmarks Tested

  • GSM8K: Grade school math problems
  • MATH: Competition mathematics
  • CommonsenseQA: Common sense reasoning
  • StrategyQA: Multi-step reasoning
  • ARC: Abstract reasoning corpus

Baseline Comparisons

  • Chain-of-Thought (CoT)
  • Tree-of-Thought (ToT)
  • ReAct
  • Reflexion
  • Constitutional AI
  • Single-Shot

📈 Key Innovations

  1. Multi-Resolution Decomposition: Problems broken into hierarchical tiles
  2. Fractal Convergence: Three-band classification (stable/plastic/escape)
  3. Boundedness Preservation: Quality-preserving zoom operations
  4. Integrated Architecture: Complete system implementation

🎯 Applications

  • Mathematical Reasoning: Complex problem solving with step verification
  • Logical Analysis: Multi-step inference with convergence guarantees
  • Structured Problem Solving: Hierarchical decomposition of complex tasks
  • Quality-Assured Reasoning: Bounded inference with drift prevention

📖 Citation

@article{royce2025mandelmem,
  title={MandelMem: Multi-Resolution Reasoning Architecture with Fractal-Inspired Dynamics},
  author={Royce, Kossiso Udodi},
  journal={Under Review},
  year={2025}
}

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

🤝 Contributing

We welcome contributions! Please see our Setup Guide for development instructions.

📧 Contact

About

MandelMem: Multi-Resolution Reasoning Architecture with Fractal-Inspired Dynamics. A breakthrough AI reasoning system achieving 60.0% accuracy through quadtree decomposition and bounded iterative dynamics. Complete research paper, implementation, and reproducible results included.

Topics

Resources

License

Stars

Watchers

Forks

Languages