Skip to content

Feature and Embedding Store Operations by Scale

Last updated: 2026-05-24

Feature stores and embedding stores solve different problems that are often confused. A feature store gives models consistent, versioned access to engineered features across training and serving. An embedding store or vector index retrieves semantically similar clips, map tiles, documents, scenes, or labels. Both can become critical MLOps infrastructure, but both are easy to overbuild before the data contract is stable.

For autonomy, the default should be conservative: start with immutable manifests, snapshot-capable tables, and reproducible batch exports. Add an offline feature store when multiple models reuse the same derived features. Add an online feature store only when runtime inference needs fresh, low-latency features from a shared serving path. Add an embedding/vector store when scenario mining, active learning, foundation-model labeling, or operator search needs semantic retrieval over large sensor, map, or document corpora.


Store Types

Store typePrimary questionGood fitPoor fit
Manifest-backed filesCan this dataset or training export be reproduced?S0-S2 experiments, map-derived labels, frozen replay/eval packagesShared low-latency serving or many teams reusing the same features
Offline feature storeCan many training jobs reuse point-in-time-correct features?Reused tabular features, expensive LiDAR/map features, delayed-label joinsOne-off experiments or raw point-cloud tensors
Online feature storeCan serving use the same feature definitions with freshness and latency guarantees?Cloud services, dispatch/routing models, recommendation-style systems, fleet dashboardsVehicle real-time perception where features are computed on the edge sensor stream
Embedding/vector storeCan users retrieve similar scenes, clips, map tiles, labels, or documents?Scenario mining, active learning, semantic search, RAG, foundation-model label triageRelease truth without reviewer, lineage, and snapshot controls
Lakehouse/catalog tableCan large derived datasets be queried, versioned, and governed?Training/eval tables, feature materialization outputs, lineage and retentionLow-latency serving without online materialization

The feature-store decision is not "Feast or Tecton?" first. The first decision is whether the artifact is a reusable model input with a stable entity/time contract. The embedding-store decision is not "Milvus or pgvector?" first. The first decision is whether retrieval results can be reconstructed from a named corpus snapshot, embedding model, index build, filter policy, and access class. When retrieval feeds prompts, judge models, or tool-using agents, apply llmops-agent-evaluation-by-scale.md so retrieval traces, grounding checks, prompt-injection tests, and reviewer dispositions become part of the evidence.


Scale Ladder

MLOps scaleFeature stanceEmbedding/vector stanceRequired evidence
S0 notebook researchAvoid platform; write feature files next to the run manifestLocal FAISS/NumPy index for exploration onlyCode commit, data pointer, split, feature script
S1 repeatable prototypeOffline cache or Parquet table with deterministic rebuildSmall search index for candidate mining, versioned with the dataset snapshotDataset snapshot, feature config, index config, validation script
S2 single-product productionOffline feature store only if multiple models reuse featuresProduct-owned vector index for scenario mining, label triage, or document retrievalPoint-in-time join proof, lineage, quality report, allowed-use state
S3 fleet and multi-siteSite/ODD-partitioned features, backfills, freshness checks, delayed-label joinsSite-aware clip/map/document index with dedupe, ACLs, and index recall checksCatalog ID, site scope, retention tier, query/index version, drift monitoring
S4 regulated safety-criticalImmutable feature snapshots for release evaluation and evidenceFrozen retrieval corpora and embedding snapshots; retrieval is supporting evidence onlySafety-case claim link, deletion propagation, waiver expiry, audit lock
S5 platform scaleMulti-tenant feature platform with quotas, SLAs, policy, and cost allocationShared vector service with corpus registry, tenant isolation, freshness, recall, and provenance SLOsPolicy-as-code, owner, SLOs, access logs, tenant impact, audit API

The key boundary is S2 to S3. At S2, feature and embedding stores are product tools. At S3, they become fleet learning infrastructure because multiple sites, ODD cells, label queues, replay suites, and release channels consume the same derived representations. At S4, they become evidence-bearing dependencies and must be frozen, not just refreshed.


Autonomy Use Cases

Use caseStore patternNotes
Aggregated-map semantic segmentationManifest-backed training exports plus optional offline featuresStore source map, semantic layer, release state, calibration, projection code, tile IDs, and invalidation state before training consumes labels
LiDAR/map feature reuseOffline feature store or lakehouse tableUseful for density, normals, planarity, intensity statistics, visibility, persistence, and map-hygiene features reused by several models
Scenario miningEmbedding/vector store plus rule filtersIndex clips by trajectory, actors, map zone, weather, intervention, semantic labels, model disagreement, and text/image/LiDAR embeddings
Active learningFeature table plus vector indexCombine uncertainty, diversity, site coverage, risk class, duplicate suppression, and label cost
Foundation-model label triageEmbedding/vector store with prompt/model manifestsCandidate labels need prompt, model, retrieval corpus, taxonomy, reviewer, and allowed-use state
Incident root-causeCatalog lineage plus vector searchRetrieve similar incidents, active artifact sets, nearby map tiles, related scenarios, and known regressions
Runtime servingUsually edge-computed features, rarely online storeVehicle perception should not depend on network feature lookups for safety-critical real-time perception
Operations dashboardsOnline or near-real-time featuresAppropriate for fleet health, queueing, ETA, utilization, and post-hoc risk scoring

For non-road urban districts, campuses, yards, ports, warehouses, mines, farms, and airside sites, embeddings should preserve site context. A "similar scene" query that ignores zone type can mix terminal frontage, utility corridor, apron stand, warehouse aisle, and public pedestrian plaza cases that have different operating rules.


Contract Fields

Feature Definition

FieldWhy it matters
Feature ID and versionPrevents silent reuse after logic changes
Entity keysDefines what the feature describes: vehicle, session, point, tile, track, site, scenario, or map layer
Event time and created timeEnables point-in-time training joins and leakage checks
Source datasetsLinks features to raw logs, labels, maps, calibration, telemetry schema, and preprocessing code
Transformation code and configMakes materialization reproducible
Freshness and TTLDefines whether stale features are invalid, acceptable, or evidence-locked
Offline/online parity testDetects training-serving skew
Quality rulesNulls, bounds, distributions, duplicate rate, slice coverage, and drift
Allowed useResearch, training, release eval, safety evidence, runtime, or restricted
Owner and consumerMakes breakage and deprecation accountable

Embedding Index

FieldWhy it matters
Corpus snapshotFixes exactly which clips, tiles, labels, documents, or scenarios were indexed
Embedding model and checkpointPrevents mixed vector spaces
Preprocessing/chunking policyControls scene windows, document chunks, map tiles, frame sampling, and normalization
Vector dimension and metricCosine, dot product, L2, or inner-product semantics affect ranking
Index algorithm and parametersHNSW, IVF, PQ, flat, filtering, recall/latency tradeoff
Metadata filtersSite, ODD, time, class, privacy, release state, tenant, and access class
Index build IDSupports rollback, audit, and stale-index detection
Recall and latency checksVerifies that approximate search is still fit for use
Deletion and retention stateEnsures privacy and customer/site offboarding propagate to vectors
Retrieval traceRecords query, filters, top-k IDs, scores, and downstream consumer

Embedding results should never become release truth by themselves. They can retrieve candidates for review, replay, investigation, or labeling; the promoted artifact still needs controlled taxonomy, reviewer, QA, lineage, and allowed-use evidence.


Architecture Patterns

Pattern A: Manifest-Only Feature Files

Use for S0-S1 and narrow S2 tasks. A run writes Parquet/NPZ/Arrow files plus a manifest naming source logs, map tiles, calibration, feature code, split, and metrics.

Pros:

  • Lowest operational burden.
  • Easy to inspect and archive.
  • Good enough for one team and one model family.

Cons:

  • Weak discovery across teams.
  • Manual invalidation and ownership.
  • Hard to support many backfills or consumers.

Pattern B: Offline Feature Store

Use when multiple training/evaluation jobs reuse derived features or delayed labels. Feast-style systems emphasize historical retrieval and point-in-time joins; commercial feature platforms add managed materialization, monitoring, and online/offline consistency.

Pros:

  • Reduces duplicated feature engineering.
  • Enforces feature definitions and historical joins.
  • Supports dataset rebuilds and cross-model reuse.

Cons:

  • Adds infrastructure and schema discipline.
  • Poor fit for raw high-dimensional point clouds.
  • Can hide leakage if event-time semantics are wrong.

Pattern C: Online Feature Store

Use when a deployed service needs fresh shared features with bounded latency. This is common for web and fleet-service models, but uncommon for safety-critical vehicle perception because the edge model should compute from local sensor inputs and active maps.

Pros:

  • Consistent serving features across models.
  • Freshness and latency can be monitored centrally.
  • Useful for operations, dispatch, routing, and cloud scoring.

Cons:

  • Adds serving dependency and failure mode.
  • Training-serving parity must be continuously tested.
  • Network-dependent features are risky for closed-loop vehicle behavior.

Pattern D: Embedding/Vector Search Service

Use for scenario mining, active learning, similar-incident retrieval, map-tile search, document RAG, and foundation-model label triage. The service may be a local FAISS index, pgvector, Milvus, or a managed vector database depending on scale.

Pros:

  • Makes long-tail retrieval practical.
  • Helps deduplicate and diversify labeling queues.
  • Supports operator and reviewer search across multimodal corpora.

Cons:

  • Approximate search can miss rare safety cases unless recall is tested.
  • Ranking is sensitive to embedding model, filters, and chunking.
  • Privacy deletion and corpus invalidation must propagate to the index.

Training Architecture Comparison

ArchitectureTraining inputAdvantagesDisadvantagesBest scale
Direct raw-data trainingRaw logs, point clouds, images, labelsMaximum fidelity; minimal derived-feature dependencyExpensive preprocessing; duplicated feature logic; weaker reuseS0-S2
Frozen feature table trainingOffline feature snapshots plus labelsReproducible, cheap to rerun, good for ablationsCan freeze stale preprocessing or leak future dataS1-S3
Feature-store trainingPoint-in-time feature joins from a registryShared definitions, lineage, backfills, multi-model reuseRequires strict event-time semantics and feature ownershipS2-S5
Retrieval-augmented training set constructionVector search selects similar/diverse clips, tiles, or documentsImproves long-tail mining and active learningRetrieval bias and index drift can shape the dataset silentlyS2-S5
Foundation-model-assisted labelingPrompt/model/retrieval outputs become candidate labelsScales rare-class discovery and open-vocabulary triageNeeds reviewer, prompt registry, taxonomy mapping, and invalidationS2-S5
Online feature servingDeployed model fetches live featuresUseful for cloud/fleet models with shared contextAdds latency, freshness, and availability riskS3-S5, rarely vehicle safety runtime

For aggregated LiDAR maps, feature-store training is most useful for metadata and derived geometric summaries, not for replacing raw point tensors. The segmentation model still needs point/voxel/range/image tensors; the store helps govern reusable side features, map-tile descriptors, release-state masks, label eligibility, and retrieval-based data selection.


Invalidation and Backfill Rules

Feature and embedding artifacts inherit upstream corrections. The following changes should move affected derived artifacts to suspect until impact is resolved:

TriggerAffected artifactsRequired action
Source log decode or telemetry schema fixFeatures, training tables, scenario recordsRebuild affected materializations or document waiver
Calibration or pose correctionPoint/image features, map-tile embeddings, projected labelsRecompute projections and invalidate stale joins
Source map or semantic layer updateMap features, pseudo-labels, map-tile embeddings, replay expected labelsFollow map-derived-pseudo-label-invalidation-protocol.md
Taxonomy or release-state changeLabels, class features, scenario assertions, evaluator filtersRebuild mappings and block incompatible training/eval
Embedding model changeVector index, retrieval traces, dedupe clustersRebuild index; do not compare scores across vector spaces
Corpus deletion or privacy restrictionStored vectors, cached features, traces, derived datasetsDelete or restrict downstream copies and record propagation
Online/offline parity failureServed features and training featuresFreeze deployment path until skew is explained

Backfills need the same release discipline as model retraining. A silent feature backfill can change labels, training distribution, replay selection, or safety evidence without a model-code change.


Monitoring

MetricS0-S1S2-S3S4-S5
Feature freshnessManual note if relevantScheduled freshness/TTL dashboardRelease blocker for evidence-bearing features
Point-in-time leakageFixed split reviewAutomated join testsAudit evidence and waiver workflow
Feature qualitySample plotsNull/bounds/drift by site and ODDQuality SLO, owner escalation, evidence lock
Online/offline skewNot applicableParity test before deploymentContinuous parity with incident linkage
Vector index recallManual spot checkGolden-query recall and latencySLO, stale-index alert, audit trace
Retrieval qualityReviewer feedbackPrecision/yield by query type and sliceSafety-case relevance and missed-case review
Deletion propagationManual cleanupCatalog-driven invalidationPolicy-enforced purge/restriction proof
CostPer-run noteCost per feature, query, label, and replay hourTenant quotas, chargeback, platform SLO

The scorecard should treat store health as a release dependency when the store influences training, evaluation, replay, or safety evidence. It is only an observability metric when it supports exploratory search.


Failure Modes

Failure modeConsequenceControl
Feature store before stable label contractInfrastructure stores the wrong semantics consistentlyRequire data contract and owner before promotion
Event-time semantics wrongTraining sees future informationPoint-in-time join tests and created-time auditing
Offline and online logic divergeModel passes offline but fails in servingSingle feature definition plus parity checks
Embedding index rebuilt silentlyScenario mining and RAG results cannot be reproducedIndex build IDs, corpus snapshots, retrieval traces
Vector search ignores site/ODD filtersSimilarity search returns operationally irrelevant casesMandatory metadata filters and slice-aware evaluation
Deletion does not reach vectorsPrivacy or customer offboarding violationCatalog-driven deletion propagation
Approximate search misses rare hazardSafety scenario is not minedGolden-query recall tests and rule-based safety queries
Feature backfill bypasses release reviewModel/eval evidence changes under same nameBackfill approval, versioned materialization, downstream impact query
Online feature lookup added to vehicle control pathNetwork or freshness failure affects safety behaviorKeep vehicle-critical perception local unless a safety case explicitly accepts the dependency

  • mlops-scale-research-scope.md - MLOps scale ladder and build order.
  • mlops-reference-architectures-by-scale.md - architecture boundaries and durable interfaces.
  • mlops-scorecards-and-kpis-by-scale.md - MLOps KPIs and release blockers.
  • map-derived-pseudo-label-invalidation-protocol.md - invalidation state machine for map-derived labels.
  • model-governance-release-evidence.md - release packet and registry evidence.
  • llmops-agent-evaluation-by-scale.md - RAG, prompt, judge, and agent evaluation controls for retrieval-backed workflows.
  • ../data-platform/data-catalog-lineage-quality-ops.md - catalog, lineage, quality, and data-product states.
  • ../data-platform/replay-scenario-mining-ops.md - scenario mining and replay package governance.
  • data-flywheel-airside.md - active learning and closed-loop data mining.
  • ../../30-autonomy-stack/perception/overview/aggregated-map-semantic-segmentation.md - semantic-map training exports and release-state labels.

Sources

Public research notes collected from public sources.