GRADIENT

Generalized Resource Allocation via Dynamic Intelligent ENergy-aware Tiering

"Persistence is the default. Volatility is the exception."

The Problem with Traditional Memory

Binary Thinking

Traditional computing forces a false choice:

  • RAM: Fast but volatile (loses data on power loss)
  • Storage: Persistent but slow (100-1000x slower)

No gradient. No learning. No intelligence.

Wasted Resources

This binary model causes:

  • Over-provisioned RAM "just in case"
  • Constant save/load cycles consuming CPU
  • Power loss = hours of lost work
  • No adaptation to usage patterns

The GRADIENT Solution

What if memory worked like your brain?

  • Multiple tiers, not just two
  • Automatic promotion based on frequency
  • Everything persistent by default
  • System learns from your usage

Data doesn't need to be "saved" - it's always safe.

The Insight

Nature already solved this problem:

"The human brain doesn't have RAM and hard drive. It has layers of memory that consolidate based on frequency, importance, and relevance."

GRADIENT implements this for computers.

The Key Question

Why are we wasting fast memory on things that don't need to be volatile?

GRADIENT flips the model: persistence is the default, volatility is the exception.

Learning from the Human Brain

🧠 Human Memory
👁
Sensory Memory
~100ms • Raw input • Automatic decay
↓ Attention filters
Working Memory
Seconds • Active thought • Limited capacity
↓ Rehearsal / Importance
📝
Short-term Memory
Minutes-hours • Consolidating • Context-linked
↓ Sleep consolidation
📚
Long-term Memory
Days-years • Indexed • Pattern-matched
↓ Rarely accessed
🗄
Deep Storage
Permanent • Needs trigger to recall
💻 GRADIENT Memory
Tier 0: Realtime
SRAM • ~10ns • Volatile (intentionally)
↓ Frequency > 10,000
🔥
Tier 1: Working Set
MRAM • ~35ns • Persistent • Hot data
↓ Frequency > 1,000
🌡
Tier 2: Warm Pool
MRAM • ~35ns • Persistent • Recent data
↓ Frequency > 10
💾
Tier 3: Primary
NVMe • ~20μs • Persistent • All data
↓ Idle > 7 days
🗃
Tier 4: Archive
NVMe • ~20μs • Persistent • Cold data

The Key Difference

Aspect Human Brain Traditional Computer GRADIENT
Tiers 5+ distinct layers 2 (RAM + Storage) 5 tiers
Promotion Automatic (frequency) Manual (save/load) Automatic (frequency)
Default state Persistent Volatile Persistent
Learning Adapts to patterns None Learns usage
Power loss Memories intact Data lost Data intact

System Architecture

Memory Tier Stack

TIER 0
512KB
Size
~10ns
Latency
Volatile
Persistence
Realtime
Purpose
TIER 1
8MB
Size
~35ns
Latency
MRAM
Hardware
Working Set
Purpose
TIER 2
24MB
Size
~35ns
Latency
MRAM
Hardware
Warm Pool
Purpose
TIER 3
8GB
Size
~20μs
Latency
NVMe
Hardware
Primary Store
Purpose
TIER 4
8GB
Size
~20μs
Latency
NVMe
Hardware
Archive
Purpose
PINNED
Variable
Size
~35ns
Latency
MRAM
Hardware
Critical Data
Purpose

Frequency Scoring Algorithm

// Calculate frequency score (higher = hotter tier) float frequency_score() { return (access_count_1s * 10000.0) + // Very recent = critical (access_count_1m * 100.0) + // Recent = important (access_count_1h * 1.0) + // Medium = moderate (access_count_1d * 0.01); // Old = low weight } // Tier thresholds if (score > 10000) return TIER_1; // Working set if (score > 1000) return TIER_2; // Warm pool if (score > 10) return TIER_3; // Primary return TIER_4; // Archive

What Gets Pinned (Never Demotes)

Emergency Contacts

SOS must work instantly

Medical Data

Paramedics can't wait

Active Crypto Keys

Authentication required

Audit Logs

Until synced to server

Live Simulation

Tier 1 (Hot)
Tier 2 (Warm)
Tier 3 (Primary)
Tier 4 (Archive)
Pinned
Credential Store Simulation
0
Promotions
0
Demotions
0
Tier 1 Blocks
0
Tier 2 Blocks
0
Total Accesses
0h
Simulated Time

Event Log

0:00
System initialized with 20 credentials

Why GRADIENT Matters

🔋
Power Loss Resilience
No more lost work. All tiers except Tier 0 are persistent. Battery dies? Resume exactly where you left off.
🧠
Automatic Optimization
No explicit save/load. The system learns from your usage patterns and keeps frequently-accessed data fast.
Predictive Performance
Data you use often is always ready. No cold starts. The device feels like it "knows" you.
💰
Reduced Hardware Costs
Stop over-provisioning RAM. Use the right memory for the right data. Better performance with less expensive hardware.
🛡️
Critical Data Protection
Pinned tier ensures emergency contacts, medical data, and crypto keys are always instantly accessible.
🔄
Graceful Degradation
When fast memory fills, coldest data moves down automatically. No crashes, no manual intervention.

The Bottom Line

35ns
Hot data access
0%
Data lost on power failure
100%
Automatic optimization
1st
Consumer device with brain-inspired memory

GRADIENT on BEACON

BEACON Hardware Stack

ESP32-S3 Internal SRAM

512KB

Tier 0: Realtime buffers, interrupts, DMA

External MRAM

32MB

Tier 1-2: Working set + warm pool

NVMe SSD

16GB

Tier 3-4: Primary + archive

BEACON Use Cases

🎓

SCHOOLSHIELD: Daily Attendance

Student taps BEACON to NFC reader 5x/day. School credential naturally promotes to Tier 1.

First tap (Tier 3) 3rd tap (Tier 2) 10th tap (Tier 1) Instant access forever
🎮

GAMESHIELD: Gaming Session

During 3-hour gaming session, game credentials stay in Tier 1. After session ends, gradual cooling.

Session start (Tier 3) 5 min in (Tier 1) Session end +6h: Tier 2 +24h: Tier 3
🚨

Emergency SOS

Emergency contacts are PINNED - always Tier 1, regardless of usage frequency.

PINNED Never demotes Always 35ns access Life-saving speed
💤

Old Gym Membership

Cancelled gym membership credential - unused for 30 days, automatically archived.

Last use (Tier 2) +7 days (Tier 3) +14 days (Tier 4) Still accessible if needed

GRADIENT vs. The Industry

Why Hasn't Anyone Done This?

Technology Company What They Did Why It Failed/Limited
Intel Optane Intel Persistent memory on DIMM No frequency tiering, discontinued 2022
NUMA Allocators Linux/AMD Tiered by CPU locality Based on location, not usage patterns
LRU Caches Everyone Evict least-recently-used Binary (in or out), no gradient
CXL Pooling Intel/AMD/ARM Shared memory across machines Datacenter only, no learning
Thermostat UC San Diego Frequency-based migration (paper) Never productized, kernel-only

What Makes GRADIENT Different

Feature Traditional Intel Optane GRADIENT
Number of tiers 2 3 5
Automatic tiering No No Yes
Frequency learning No No Yes
Pinned critical data No No Yes
Edge device support Yes Datacenter only Yes (BEACON)
Power loss resilience No Yes Yes
Brain-inspired model No No Yes
Available now Yes Discontinued In development

The Opportunity

The pieces exist. The integration doesn't.

BEACON with GRADIENT will be the first consumer device with brain-inspired memory architecture.