Crowork Book a free audit

One mention is not a fact

Binary AI memory treats every row as true with confidence 1.0. Model facts as Beta beliefs instead: they start unsure, earn trust through repetition and fade over time.

Most AI memory layers have an assumption baked so deep that nobody states it out loud: everything in the store is true with confidence 1.0. A user says something once, it gets written, and from then on the agent treats it as certain fact, forever, with no way to express doubt and no way to forget.

That assumption holds until the first wrong thing gets in, and in any real system wrong things get in: a misheard transcript, a sarcastic remark taken literally, a preference the user has since changed. The moment one of those lands in a store that only knows the value 1.0, you have a confidently stated lie that the agent will repeat until someone deletes the row by hand. Nothing degrades gracefully, because the model has no concept of how sure it is.

The two failure modes of binary memory

Treating memory as a set of true/false rows produces two opposite failures, and you will hit both.

Over-confidence. A single mention becomes gospel. "I'm thinking about going vegetarian" gets stored as "user is vegetarian", and three months later the agent still refuses to suggest a steakhouse. The system cannot tell "the user told me this five times" from "the user mentioned it once, hedged".

Permanence. Facts never expire. People change jobs, cities, partners and preferences. A store with no decay keeps asserting an old truth with full confidence. The longer your agent runs, the more of its "knowledge" goes stale, and nothing in the data tells you which parts.

Both failures share a root: a fact is not a boolean. A fact is a belief with a confidence that should move as evidence arrives and fade when evidence stops.

Model each fact as a Beta distribution

There is a clean, cheap way to represent "how sure am I" that has been standard in statistics for a century: the Beta distribution. You track two numbers per fact, alpha and beta, loosely "evidence for" and "evidence against". The confidence is alpha / (alpha + beta). A new belief starts at Beta(2, 2):

import { newBelief, confidence } from "speech-act-memory-gate";

let b = newBelief();   // confidence 0.5 — genuinely unsure, NOT 1.0
confidence(b);         // 0.5

That starting value of 0.5 is the whole philosophy in one number. A fact mentioned exactly once is a coin flip, not a certainty. Compare it with the model hidden in extract-then-store systems, where the first observation pegs confidence at 1.0 and leaves nowhere to go.

Evidence moves the number

When the user restates a fact, you confirm it. When they deny or correct it, you contradict it. The numbers shift accordingly:

import { newBelief, confirm, contradict, confidence } from "speech-act-memory-gate";

let b = newBelief();      // 0.5
b = confirm(b);           // user restated it
confidence(b);            // 0.75 — more sure

b = contradict(b);        // user denied it
confidence(b);            // drops sharply

A contradiction counts more than a confirmation, and that asymmetry is deliberate. Being told "no, that's wrong" is much stronger evidence than another casual agreement. A memory system that weighs them equally is slow to correct its own mistakes, which is exactly when speed matters most. When a user bothers to correct your agent, the system should believe them fast. We built the same idea into the memory layer for a client's AI product, where new facts start with low trust that grows as other mentions back them up.

Decay: old facts should lose certainty

The second half of the model is time. Beliefs that nobody reinforces should drift back towards the prior instead of sitting at full confidence forever:

import { decay } from "speech-act-memory-gate";

b = decay(b, { halfLifeMs: 90 * 864e5 });  // ~90-day half-life

A fact you have not heard about in months is less trustworthy than one the user mentioned yesterday, and the data should say so. Decay encodes "I used to be sure about this" without forcing a binary delete. The exception is facts a person has verified: mark a belief as pinned and it never decays, while everything inferred from passing conversation is allowed to fade. Muninn, Kirill's family assistant and our co-founder, ranks what he remembers by importance and by age in the same spirit.

Let confidence drive how you speak

This is where a confidence model goes beyond statistical hygiene and changes the user experience. Once every fact carries a number, you can choose how to phrase recall based on how sure you are:

import { stance } from "speech-act-memory-gate";

stance(b);   // "assert" | "hedge" | "withhold"

Three tiers, three voices. Assert the facts you trust ("You're allergic to hazelnuts, so I skipped that recipe"). Hedge the ones you are unsure about ("I think you mentioned preferring window seats?"). Withhold the ones below threshold entirely, instead of stating a coin flip as fact. This one mechanism is the difference between an agent that feels attentive and one that feels like it is making things up.

What this costs to adopt

Almost nothing. If you already have a facts table, you add three columns, alpha, beta and last_updated, plus an optional pinned flag. No new infrastructure, no model calls and no vector index changes: it is arithmetic on two integers.

// schema delta:
// facts(user_id, text, alpha, beta, last_updated, pinned)

const d = gate(userMsg);
if (d.action === "store") {
  const b = d.belief;   // fresh Beta(2,2)
  db.run(
    "INSERT INTO facts (user_id, text, alpha, beta, last_updated) VALUES (?,?,?,?,?)",
    userId, userMsg.trim(), b.alpha, b.beta, b.lastUpdated
  );
}

The takeaway

Binary memory is why long-running agents drift from helpful to unreliable. They pile up single-mention "facts" they treat as certain and never let any of them fade. A confidence model fixes both ends at once: new facts start unsure and earn trust through repetition, old facts lose trust through silence, and corrections land hard and fast. Represent each fact as a Beta belief, let the number decide whether you assert, hedge or withhold, and your agent starts to sound like it knows the difference between what it knows and what it once heard.

Read next: Why your AI's memory stores your questions as facts (and how to stop it)

Questions about confidence in AI memory

What is a confidence model for AI memory?

A confidence model gives each fact in AI memory a number for how sure the agent is, instead of treating every row as true. Each fact tracks two counts, evidence for and evidence against, as a Beta distribution, and its confidence is alpha divided by alpha plus beta. A new fact starts at Beta(2, 2), which is a confidence of 0.5.

Should old facts in AI memory expire?

Old facts in AI memory should lose certainty rather than expire outright. Apply decay, for example with a 90-day half-life, so beliefs that nobody reinforces drift back towards unsure without a hard delete. Facts a person has verified can be pinned so they never decay, while anything inferred from passing conversation is allowed to fade.

How hard is it to add confidence scores to an existing memory store?

Adding confidence scores to an existing memory store is cheap. If you already have a facts table, you add three columns, alpha, beta and last_updated, plus an optional pinned flag. There is no new infrastructure, no extra model call and no change to the vector index, because the confidence is arithmetic on two numbers.

Want this in your stack?

The trust model and the ingest gate are free under Apache-2.0 on our GitHub. We adapt them to your store and domain, starting with a free audit.