# Ring

A filter that adds the same number to every candidate is not a filter. It only changes how many you keep.

Pilot results · d/rksci research · Published 2026-10-08 · Tags: Agent Memory, Retrieval, MemoryAgentBench, LongMemEval, Engram, Working Memory, Re-ranking

Can a candidate be tested before it is trusted?

The idea comes from how a short-lived memory is stabilised: recent items sit in a bounded zone where they reinforce, compete or fade before anything becomes durable. For retrieval, that means candidates must earn their place.

## 1. Idea

Experiment 3 of 10 in the Engram series. [← Pheromone](/engram/pheromone) · [Engram overview](/engram) · [Web →](/engram/web)

A normal retriever scores each item against the query once and takes the top k. Ring takes twice as many candidates and puts them in a ring. On each lap every candidate is re-scored against the query and against the others in the ring, and the weakest fall out. What is left after the last lap is the answer. A candidate that matches the query but is isolated from everything else in the ring is the sort of item that should go.

**Ring · laps.** The candidates are re-scored against the query and each other lap after lap; the lowest scorers fall out until exactly k remain.

## 2. Where it came from

The archived ring took the top 2k by cosine, ran three laps that each added 0.02 to every candidate’s score, and kept k+2. It scored 44% against cosine’s 39% in the first round’s one-feature-at-a-time test. The theory note behind it describes the ring as the zone of plasticity, where recent excitations stay unstable until they reinforce, compete or dissipate.

The audit read the code. Adding the same constant to every candidate on every lap cannot change the order of anything, so the “survival” did no work. The only thing the ring changed was the size of the result: seven chunks against cosine’s five. A bigger set scores higher on a substring-in-any-chunk metric whatever is inside it. The gain was the extra two, one seed, about 180 questions, no interval.

## 3. Hypothesis

Stated before running. A re-scoring rule that depends on the other candidates, applied at exactly k, beats Dense on the multi-hop set, where the facts that answer a question support each other, and is neutral on the single-hop set, where one fact is enough.

The worry is the other direction: re-scoring against neighbours rewards redundancy, and a pile of near-duplicates will survive together. Conflict sets are full of near-duplicates, an old fact and its replacement, so the ring may keep both and drop the one fact that is different. That would be a clean negative result.

## 4. Design

**Candidates.** The top 2k by cosine, as archived. The ring starts at twice the size of the answer.

**Survival rule.** On each lap an item is re-scored against the query and against the mean of its neighbours in the ring, and the lowest scorers are dropped. Only the final k are returned. The mixing weight and the lap count are fitted on a seeded split that is disjoint from the pilot sets.

**Equal k.** The result is k items, never k+2. This is the fix that matters most, and the runner asserts it.

**Seeds.** Ties between equal scores are broken with a seeded choice, so the run uses five seeds and reports mean and range.

**Ablation.** The archived rule, a constant bump per lap, at k. It should reproduce Dense exactly, and if it does not, the harness has a bug that has to be found.

## 5. How it is tested

Tier 0 on LongMemEval_S and tier 1 on both FactConsolidation sets, with paired tests against Dense. The constant-bump ablation is a check on the harness as much as on the idea: any difference from Dense there is a measurement error, and it is the first number to check.

The standing rules for every Engram experiment apply here unchanged.

## 6. Results

## 7. What would change the conclusion

- If the constant-bump ablation differs from Dense at all, the harness is fixed before anything else is read.
- If Ring at equal k does not beat Dense on the multi-hop set, the “+5 points” of the first round was the two extra chunks, and the ring has nothing to add.
- If Ring hurts on the single-hop set because it keeps old and new versions together, that is a finding about re-scoring conflict sets, and it goes in the write-up.

## Sources

Experiment 3 of 10 in the Engram series. [← Pheromone](/engram/pheromone) · [Engram overview](/engram) · [Web →](/engram/web)

Ring is one of ten experiments in Engram. Its rows come from one run on the pilot sets.