TECHNOLOGY

Late source corrections: invalidate derived training features by dependency

In this article
THE QUICK TAKE

Retain a dependency-based affected-key report and equality checks against clean recomputation.

A source corrects an old observation after derived features have been published. Refreshing only the source row leaves rolling statistics and neighboring examples based on the obsolete value.

The mechanism that changes the example

The affected region is determined by transformation dependencies, not the corrected row alone. Windowed aggregations and joins can propagate a local correction into multiple downstream records.

Define the comparison boundary

Write the transformation’s dependency interval explicitly. For a trailing window, a corrected observation can affect later output timestamps whose windows contain it; the exact endpoints depend on the documented window convention.

Include dependencies introduced by joins and entity mappings, not just arithmetic windows. A source correction can change which lookup version matches or whether a record qualifies for inclusion, so unchanged row counts are not evidence of unchanged features.

Construct a small timeline with outputs just inside and just outside the expected affected region. Compare incremental repair against a clean recomputation using the same dependency versions. A mismatch outside the proposed boundary indicates an incomplete dependency model, while a mismatch inside can reveal an incorrect repair implementation. Store those conclusions separately instead of widening the range without explanation.

A constructed test case

Correct an observation used in several later rolling windows. Compare a targeted rebuild with a full recomputation of the same source state. A row-local refresh that leaves dependent outputs unchanged must fail this fixture.

A reproducible validation procedure

Correct a controlled historical value and enumerate dependent outputs. Rebuild the affected range and compare it with a clean full recomputation. Record why unchanged outputs remain outside the invalidation boundary.

Include an unchanged control and a deliberately invalid case. Verify that the checker distinguishes them before testing the complete release.

Exercise the actual preparation path, including later serialization and reload. Limit retained diagnostic content to the evidence required for this comparison.

Evidence needed for acceptance

Retain a dependency-based affected-key report and equality checks against clean recomputation.

Containment and recovery

A dependency graph that omits external lookup versions can underestimate the correction impact.

Quarantine an invalid release candidate or use an explicit partial-release rule. Preserve the last approved artifact and record corrections without silently rewriting historical inputs.

Interpretation and references

Implementation references: Arrow dataset reading and writing; Debezium PostgreSQL change events.

This is a proposed engineering validation, not an executed Retrivium benchmark. Documentation specifies interfaces; dataset acceptance needs its own evidence and must be repeated after relevant dependency changes.

Continue with Feast 0.65 OpenLineage consumer: event identity and graph coverage; Hugging Face Datasets: choose materialized or iterable processing. These guides supply adjacent context; the decision in this article remains the specific example-preservation check above.

Earn rental income from GPUs

Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.

Explore GPU hosting
← All articles