A unified ecosystem for large-scale federated learning, bridging the gap between centralized model evolution and decentralized edge intelligence.
Philosophy • Design Presentation • Architecture • System Flow • Core Modules • Onboarding
Computation is most powerful when it mirrors life: distributed, adaptive, and collective.
Fractal is an exploration of "Empathetic Engineering." The system recognizes that every edge device is more than just a processor—it is a tool serving a human being. By moving training to the data, rather than the data to the server, Fractal respects the privacy of the individual while empowering the collective intelligence of the grid.
In this ecosystem, mobile devices are transformed into autonomous compute nodes that "feel" their environment—backing off when thermals rise or battery drops—ensuring that the machine's progress never comes at the cost of the human experience.
Fractal is architected as a hierarchical orchestration system. The root workspace manages the synergy between the FractalCore (Brain) and the FractalAndroid (Edge).
graph TD
subgraph "FractalCore (Central Nervous System)"
TS[Task Scheduler]
FA[Federated Aggregator]
TM[Tenant Manager]
Budget[TFLOPs Monitor]
end
subgraph "Edge Intelligence (Grid Nodes)"
C1[Android Node A]
C2[Android Node B]
CN[Android Node N]
end
subgraph "Persistence & Rewards"
FS[(Firestore)]
RM[Liquid MB Rewards]
end
C1 & C2 & CN <-->|Task Fetch / Weight Upload| TS
TS --> Budget
FA --> TS
C1 & C2 & CN -->|Hardware Proof| RM
RM --> FS
The lifecycle of a training task follows a fractal loop of distribution and convergence.
sequenceDiagram
participant T as Tenant (Admin)
participant S as FractalCore
participant C as Android Client
participant F as Firebase
T->>S: Define Session (Config + TFLOPs)
S->>S: Partition Data (Fractal Bins)
Note over S: Tasks Queued per Tenant
C->>S: GET /api/task (Device Hardware Proof)
S-->>C: ActiveTask (Architecture + Bin Metadata)
C->>C: Resource Check (Battery/Thermals)
C->>S: Download Model + Bins
C->>C: Execute On-Device Training (TFLite)
C->>S: POST /upload (Local Checkpoint)
S->>F: Credit "Liquid MBs" to Device ID
Note over S: If N Clients Uploaded:
S->>S: Federated Averaging (FedAvg)
S->>S: Update Global Model
The project is organized to maintain strict separation of concerns between server orchestration and edge execution.
.
├── FractalApp/
│ └── FractalAndroid/ # Android Client (Kotlin/TFLite)
│ ├── app/ # Main Application Logic
│ ├── build/ # Generated Build Artifacts
│ └── ...
├── FractalCore/
│ └── src/
│ └── fractal_server/ # Python Flask Orchestrator
│ ├── global_model/# Global Weights Storage
│ ├── tenants/ # Tenant-specific Data Silos
│ └── server.py # Main API & Aggregator
├── docs/
│ └── assets/ # Branding & Diagrams
└── private.envs/ # [PRIVATE] Sensitive Keys & Configs
The backend engine designed for multi-tenant isolation and deterministic aggregation.
- Tenant System: Independent data silos and compute budgets per user.
- TFLOPs Budgeting: Real-time monitoring of compute expenditures.
- FedAvg Engine: High-performance weight averaging using TensorFlow.
- Firestore Integration: Real-time synchronization of device registries and rewards.
A resource-aware execution environment for mobile devices.
- Synthesis Engine: Dynamically builds the training environment based on server metadata.
- Telemetry Gating: Monitors battery status, network type, and thermals to protect the host.
- Master Pipeline: An automated Fetch -> Download -> Train -> Upload -> Flush cycle.
- Python 3.10+ (for Core)
- Android Studio Jellyfish+ (for App)
- Firebase Account (Firestore enabled)
This repository uses a private sub-module for sensitive keys and configurations. To restore the environment:
- Clone the repository including submodules:
git clone --recursive https://github.com/Fractal-Compute-Orchestrations/FractalWorkspace
- Navigate to the private environment directory:
cd private.envs/Fractal - Run the restoration script to place keys and configs in their correct locations:
.\restore.ps1
- Zero-Data Transfer: User data never leaves the Android device. Only model weights are transmitted.
- Tenant Isolation: Each tenant's data and models are physically and logically separated.
- Token Authentication: X-Auth-Token based isolation for session security.
Fractal is an independent engineering initiative by Ahmad Hassan (B-Ted).
Contributions to the grid are welcomed. The architecture is designed to scale intentionally.
