Knowledge Freshness and Temporal Updates › Update Propagation: Getting the New Fact Everywhere
Language AI HandbookAll chapters Identify each surface on which the changed fact can influence a response. A cache can preserve an older value after the underlying source changes.
The update surfaces
For a given fact change, consider where the stale knowledge lives:
- Weights (parametric memory). The model's learned association.
- Retrieval index (external memory). The documents that state the fact.
- Caches and derived artifacts. Summaries, pre-computed embeddings, cached answers, prompt-injected context.
- Downstream consumers. Agents or services that stored a copy.
Update the surfaces that are authoritative for the fact and invalidate affected derived copies. An index-only change can suffice when the serving policy reliably uses the index for that fact. Closed-book queries need a different update path if they must answer from weights alone.
Propagating updates through retrieval
When a serving path can consult trusted sources, maintain volatile facts in an external store and evaluate whether responses follow the retrieved evidence.
- Time-sensitive fact classes (personnel, prices, versions, schedules, sports results) are marked as index-authoritative.
- At inference, prompts first retrieve from the (freshly maintained) index.
- The model is instructed (and, ideally, evaluated) to prefer retrieved current context over its priors.
A retrieval refresh can avoid weight updates. It may still require ingestion, re-embedding, index publication, and cache invalidation. Test that the model uses the dated evidence it retrieves.
Propagating edits into weights
Methods such as ROME and MEMIT update model parameters. An external memory update changes a separate store. If both paths can answer the question, evaluate their interaction.
- Ripple effects. Changing Acme's CEO should affect paraphrases and some dependent facts. RippleEdits found inconsistent propagation among the tested editing methods. Include both related and unrelated probes to catch missed updates and unintended changes.
- Editing in the presence of retrieval. Stale retrieved evidence can compete with an edited association. Test the deployed serving path and state which evidence is authoritative for that fact class.
A minimal propagation ledger
Record the update time, the affected surfaces, and the source. The log can compare planned work with what was recorded. A rollback also needs a retained snapshot.
PythonIn [9]Expand
@dataclass
class UpdateEvent:
fact_id: str
surfaces: list[str] # which stores were touched
at: datetime
source: str
note: str = ""
class UpdateLedger:
def __init__(self):
self.events: list[UpdateEvent] = []
def log(self, fact_id, surfaces, source, note="", at=None):
ev = UpdateEvent(
fact_id=fact_id,
surfaces=list(surfaces),
at=at or datetime.now(timezone.utc),
source=source,
note=note,
)
self.events.append(ev)
return ev
def since(self, t: datetime):
return [e for e in self.events if e.at >= t]
def surfaces_touched(self):
out = set()
for e in self.events:
out.update(e.surfaces)
return out
ledger = UpdateLedger()
ledger.log(
"bob-ceo-1",
["index", "cache"],
"press-release-2023",
note="Bob replaces Alice",
at=utc(2024, 6, 15),
)
ledger.log(
"bob-ceo-2",
["index", "cache"],
"corrected-filing",
note="Backdated effective date",
at=utc(2024, 9, 1),
)ConsoleOut [10]Expand
Update events: 2024-06-15 fact=bob-ceo-1 surfaces=['index', 'cache'] Bob replaces Alice 2024-09-01 fact=bob-ceo-2 surfaces=['index', 'cache'] Backdated effective date Distinct surfaces touched: ['cache', 'index']
The log prints update events and the union of their named surfaces. In a deployment, compare each event with the surfaces its fact class requires and retain the content version separately.
Comments
Add to the conversation
A question, a correction, or an example from your own work.
No comments yet. Be the first to share your thoughts!