Back to browse
RBF-Attention – Trading dot-products for Euclidean distance

RBF-Attention – Trading dot-products for Euclidean distance

by 4rtemi5·Apr 7, 2026·1 point·1 comment

AI Analysis

●●●BangerBig BrainWizardry

Replaces dot-product attention with Euclidean distance to stop vector magnitude bullying.

Strengths
  • Identifies specific "magnitude bullying" flaw in standard scaled dot-product attention math.
  • Includes custom Triton kernel for memory-efficient implementation on existing hardware.
  • Trained a causal LM from scratch to validate empirical results against standard attention.
Weaknesses
  • Experimental nature means no production libraries or pre-trained models available yet.
  • Hardware acceleration for dot-products is ubiquitous, distance might be slower on GPUs.
Category
Target Audience

ML researchers, LLM engineers

Similar To

FlashAttention · xFormers · Standard Transformers

Similar Projects

AI/MLPass

Raytention Updated

Claims zero KV cache via Euclidean distance but lacks code, benchmarks, or training runs.

Bold Bet
NohWai
1010d ago
GamingMid

Distance Ruler

Pixel-distance estimation game when dozens of perception-test games already exist online.

Crowd Pleaser
nookeshkarri7
301mo ago
AI/MLPass

Autograd-Free LLM Guiding with 0MB VRAM (Alternative Pathways)

A spec full of buzzwords with no code, benchmarks, or working demo.

PJHkorea
217d ago
AI/MLPass

Fluidic Network Grid – A branchless control plane in Jax

Dense buzzword salad about 'time-axis vaporizers' with zero code or benchmarks to back it up.

Bold Bet
PJHkorea
219d ago