Knowledge Freshness and Temporal Updates › Update Propagation: Getting the New Fact Everywhere

Michael BrenndoerferDecember 1, 20263 min read
Language AI HandbookAll chapters
Part 45 of 67Knowledge, Memory, Editing, and Unlearning
Chapter 348Knowledge Freshness and Temporal Updates › Update Propagation: Getting the New Fact Everywhere
Reading section 5 of 12 · Update Propagation: Getting the New Fact Everywhere · 3 minSection 5 of 12 · 3 min

Section 5 of 12 · 3 min read

Reading settings

Definitions

Choose how many terms have tooltips.

Article links

Make inline references clickable

Notes & comments

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.

  1. Time-sensitive fact classes (personnel, prices, versions, schedules, sports results) are marked as index-authoritative.
  2. At inference, prompts first retrieve from the (freshly maintained) index.
  3. 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]
CollapseExpand
@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]
CollapseExpand
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!

Newsletter

Stay up to date

Get new articles, book updates, and notes on AI and technology.

Unsubscribe at any time. Privacy policy