Skip to main content
Open llms.txtCopy tools

Neural Embedding Benchmark

Bottom Line

The neural embedding benchmark is a synthetic repeated-ID diagnostic. It shows the intended pattern: residual embeddings help strongly when IDs recur, help modestly on some geographic/tail splits, and can hurt when the tested origin IDs are cold.

Reproduce

uv run python scripts/run_neural_embedding_benchmark.py \
--output target/validation/neural_benchmark.json

Data And Setup

FieldValue
Seed42
Rows2,000
Dense features8
ID cells128
Embedding dimension16
Train fraction0.8

Scenario Breakdown

ScenarioID keyBase MAEHybrid MAEMAE improvementRead
Randomorigin0.67410.4812+0.1929Strong repeated-ID gain.
Tailorigin0.68730.4551+0.2322Strong rare/tail gain in fixture.
Temporal blockedorigin0.68610.4570+0.2291Reused IDs over time help.
Geographic blockedorigin0.67240.6403+0.0320Smaller spatial gain.
Cold destinationdestination0.69520.6887+0.0065Near tie.
Cold originorigin0.78100.7967-0.0157Warning case: cold IDs can hurt.

Interpretation

This is exactly why neural rows must be split-specific. A random repeated-ID gain does not imply cold-start generalization. Use neural residual embeddings only when production IDs recur and the deployment split also improves.