Long-Horizon Agents Keynote
Keynote · Long-horizon agents

Long-horizon agents: what to remember and when to stop

δ-mem keeps a small memory that changes with every step. RLVB teaches the agent to act on what it believes.

Soujanya Poria · Nanyang Technological University
Long-horizon agents

Long tasks ask two things of an agent

Ability 1 · δ-mem

Keep what it has seen

Pro-Worlds: one picture per turn, all kept in the prompt

Keeping the whole history as text makes attention cost grow with the square of its length, and long contexts are used less well.

Ability 2 · RLVB

Know when it has seen enough

Its beliefPossible: cups 2, 4Its actionSUBMIT 4

HiddenGames: two cups still possible

With 150 moves, agents still answer after a few steps, while their own belief names several answers.

An agent needs both: it must keep the evidence, and wait until the evidence is enough.

δ-mem · The problem

Keeping the whole history in context does not scale

Longer contextcosts more and is used less well Text memoryretrieval and compression lose detail Adaptersfixed once written
δ-mem · Training

Training is a closed-book exam with an 8 × 8 note

1

Read the paper, take notes

Every token writes a key and a value, 8 numbers each, made from what the LLM understood at that token.

2

Hide the paper, answer from the note

The question goes in alone. Each of its tokens reads the note, and the reading steers the LLM.

3

Grade the answer, fix the note-taking

The error changes only how δ-mem writes and reads: 4.87M parameters. The LLM never changes.

δ-mem · Test time

At test time: text in the cache, a summary in the state

1

Every token is written, twice

Context, question and each generated word go to the KV cache as exact text, and to S as a key and a value.

2

The cache grows, the state does not

The cache must fit the window: longer text is cut, and what is cut is never written. S stays 64 numbers per layer.

3

Without the text, S still answers

With the history text removed and only S kept, the model still answers part of the questions.

δ-mem · The delta rule

It writes only what it did not predict

1 · Predict

v̂ₜ = St−1 kₜ

→

2 · Compare

eₜ = vₜ − v̂ₜ

→

3 · Write

Sₜ = λₜ ⊙ St−1 + βₜ ⊙ eₜ kₜ⊤

Pairs it already predicts barely change the state. New pairs change it most.

Illustration

δ-mem · Steering

The same weights steer differently under different histories

The steering weights are fixed after training; the state carries the history. A LoRA adapter gives one fixed change for every history.

Illustration

δ-mem · Writing

Three ways to write the state

TSW

Every token

SSW

Every message

MSW

Four states, read together

On Qwen3-4B, writing every token gives the best average. Four states do best on the memory-heavy benchmarks.

δ-mem · Results

δ-mem has the best average of all memory methods

Average score · Qwen3-4B-Instruct

IFEval · GPQA-Diamond · HotpotQA · LoCoMo · MemoryAgentBench

1.10×the frozen backbone
1.15×the best other memory
δ-mem · Results

The gain is largest where memory matters

Score · Qwen3-4B-Instruct · δ-mem with four states (MSW)

Frozen backboneWith δ-mem
δ-mem · Results

It carries over to other backbones

Average score

Frozen backboneContext2LoRAδ-mem SSWTSWMSW
δ-mem · Cost

Same GPU memory as the frozen model, slower decoding

Qwen3-4B-Instruct · 32K-token prompt · 256 decoded tokens

GPU memory (GB)

Decoding speed (tokens per second)

Trained parameters4.87M δ-mem46.2M MemGen3,078M MLP Memory
δ-mem · Reception

The community picked it up within days

DAIR.AI on X: one of the more elegant memory mechanisms this monthHacker News comment on δ-memalphaXiv on X about δ-mem
VentureBeat on X: working memory at 0.12% parameter costAndriy Burkov on X explaining δ-mem
AlphaSignal: RAG and long context aren't enough for agent memory; δ-mem is a third optionSciTech Era on X about δ-mem
δ-mem · Follow-up work

Others now build on δ-mem and test against it

δ-mem · Physical AI · MemBodied

The same memory helps a robot remember

Real robot · two arms

Simulation · 5 memory tasks · success (%)

Real robot · 3 tasks · success (%)

From remembering to deciding

Memory keeps the evidence. The agent still has to decide when it is enough.

Pro-Worlds · base model · every picture kept in its prompt

Its beliefPossible: 5, 6, 7, 8Its actionSUBMIT 5✕ Four candles still possible, 18 moves left

It kept all 18 pictures and still answered early. Deciding when the evidence is enough is the second ability.

RLVB · The problem

On long tasks, agents stop too soon

Post by Dan Shipper on the launch of Astra 6.2 and Sol 6.2, 17 Nov 2026

“…in real coding tasks Astra 6.2 seemed to stop too early frequently”

Dan Shipper, X · Astra 6.2 · Nov 2026

GitHub issue 8408 in google-gemini/gemini-cli: Agent terminating early

The agent stops before the task is done, with no comment.

gemini-cli issue #8408 · Gemini 2.5 Pro

Post by Theo on Gemini at agentic work, 26 Oct 2026

It reports results it never checked.

Theo, X · Gemini · Oct 2026

We study this behaviour in tasks where the simulator can measure how much evidence the agent has at every step.

RLVB · The problem · RoboQuest

A kitchen robot that submits before it has found the can

A robot arm in a simulated kitchen

Task. Collect the blue mug and the red can, then submit. They may be anywhere in the kitchen.

Base model, stating its beliefbefore each action it writes what is still possible

✕ It never saw the red can
RLVB, same kitchen

✓ Both objects found, then it submits
RLVB · The problem · Pro-Worlds

In Pro-Worlds the agent sees one cell of a picture at a time

What it sees now: one site

The Candle world, hidden except the current site

Its history: the picture of each turn

Which of eight candles is hidden?

The agent moves the window and decides when it has seen enough.

MOVE 0STANDARD BUDGET 35

Its belief

Its action
✕ Four candles still possible, 18 moves left. The answer was candle 8.
RLVB · The problem · Is it the budget?

With 150 moves, they still stop after a few

Base model, stating its belief, on Pro-Worlds. Moves used out of 150.

accuracy with 35 → 150 moves
050100150 moves
0% of plays reach sufficient evidence on the two Qwen3-VL models, that is, enough to settle the answer.
RLVB · The problem · Belief and action

They list several possible answers, and answer anyway

Find the red cylinder under one of four cups.

Its belief
Its actiona guess, right half the time
Evidencewhat it has seen

Belief follows the evidenceexact on 45–84% of turns

BeliefPossible: cups 2, 4

3–79%of the turns with insufficient evidence and several answers on its belief, it answers

ActionSUBMIT 4

Base model, stating its belief · Tabletop, MiniGrid, MineSweeper, Pro-Worlds · 150 moves

RLVB · The problem · What has been tried · standard budget

Three fixes that do not stop early answers

Prompt

State a belief before each action

Possible: cups 2, 4→SUBMIT 4
+3.7

points of accuracy on average. It still answers while several answers remain.

Harness

Reject the first answer and ask again

SUBMIT 4↺ check →SUBMIT 4
≤1.9

points on HiddenGames and Pro-Worlds, and 6–11 on RoboQuest. The harness cannot read the observations.

Training

RL on the final outcome

LIFT 1LIFT 3SUBMIT 4→ 1 or 0
−1.0GRPO−5.1PPO

points against the base model on average, for GRPO and PPO with the outcome reward.

With 150 moves, 65–100% of the base model’s answers on HiddenGames and Pro-Worlds still come too early.

RLVB · The problem · Why outcome RL cannot teach this

The outcome reward gives the same steps opposite credit

RLVB · The method · The idea

The simulator knows more than the final answer

It knows the hidden target, so at every step it can work out which answers are still possible.

RLVB · The method · The verifiable belief

The exact posterior gives the answers still possible

bt(θ) ∝ p0(θ) ∏s<t p(os | θ, a1:s)

θ is the hidden target, a is an action and o is what it showed. The simulator lists every possible target and drops those that disagree with what was seen.

LIFT 1a green cylinder
LIFT 3empty
LIFT 2empty
Sufficient evidence

one answer has probability of at least 0.95

RLVB · The method · The posterior teacher

The teacher compares answering now with one more step

Answer now

SUBMIT 4

cups 2 and 4 are equally likely

Q(b, y) = log( c(t)discount for the time useda small cost per step b(y)chance that cup 4 is right at this state1/2 )

−0.69the log of 1/2

One more step

LIFT 2
empty: it is cup 4red cylinder: it is cup 2

Q(b, a) = Σo p(o | b, a)each thing the lift can show1/2 and 1/2 V(b′)value of the best action after it−0.02

−0.02a sure answer, minus one step of time
RLVB · The method · What the reward pays for

RLVB rewards waiting for the evidence

Three episodes in the cups game
Outcome reward
RLVB reward
Lucky guess
Possible: cups 2, 4→SUBMIT 4✓ right
+1
−7.42
Unlucky guess
Possible: cups 2, 4→SUBMIT 2✗ wrong
0
−7.42
Waits for the evidence
Possible: cups 2, 4→LIFT 2→Possible: cup 4→SUBMIT 4✓ right
+1
0.000.00at each step
Same +1 for luck and for waiting
Same −7.42 for any guess

Outcome reward: 1 if the final answer is right, else 0. RLVB reward: the log of the teacher's probability for each action.

RLVB · The method · The update

Compare several turns sampled at the same state

Cups 2 and 4 remain. Four turns are sampled at this state.

wi ∝ Ri − meanj≠i Rj

The reward looks only at the action. The update raises or lowers the whole turn, so the belief is trained together with the action.

RLVB · The method · At test time, the agent alone

RLVB keeps working until its belief names one answer

Pro-WorldsWhich of the eight barns is it?
turn 0 / 19
1 · jace2 · kira3 · lyle4 · maeve5 · nils6 · opal7 · penn8 · rhys
Belief 
Action…
TurnsBase7✕GRPO9✕RLVB19✓
HiddenGamesWhich cup hides the pink cylinder?
turn 0 / 4
Belief 
Action…
TurnsBase2✕GRPO2✕RLVB4✓
RoboQuestWhich colour is under each mug?
turn 0 / 5
Belief 
Action…
TurnsBase3✕GRPO3✕RLVB5✓

Played by Qwen3-VL-8B. Base and GRPO (outcome reward) play the same games, action only.

RLVB · Results · Setup

Trained on one benchmark, tested on three

CupsLampsBlocks

HiddenGames

Seven training tasks, tested on unseen games: Tabletop, MiniGrid and more.

BeliefPossible: cups 2, 4
CandleBellBarn

Pro-Worlds NEW

Fifteen visual puzzles seen through a small window. Never seen in training.

BeliefPossible: 2, 4, 6, 7
KitchenPuzzle boxPainted cubes

RoboQuest OPEN BELIEF

Ten kitchen tasks. Never seen in training. No list of answers, as in real tasks.

BeliefPossible: The red can may be in cabinet 3 or drawer 2, but not yet confirmed.
Models
Qwen3.5-4BQwen3-VL-4BQwen3-VL-8BLoRA adapters · up to 50 updates · three test seeds
Compared
BaseBase, stating its beliefGRPO, outcome rewardPPO, judged belief rewardRLVB
Budget
150 moves for the three agents that state a belief. Base and GRPO were tested at the standard budget only.
RLVB · Results · Accuracy with 150 moves

With 150 moves, RLVB is best in all nine settings

Accuracy (%) · 150 moves · three seeds

Base, stating its beliefPPO, judged belief rewardRLVB
+21.4points over the base model
stating its belief
+16.5points over PPO,
judged belief reward
OPEN BELIEFAlso best on RoboQuest,
trained only on lists of answers
RLVB · Results · From 35 to 150 moves

RLVB gains most from a larger budget

Pro-Worlds accuracy (%)

Base, stating its beliefPPO, judged belief rewardRLVB
30.2 → 50.6

RLVB accuracy on Pro-Worlds, average of three models.

Moves taken out of 150

Base and PPO
3.7–30 RLVB
70–88
RLVB · Results · The teacher without the reward

Imitating the teacher matches RLVB only on Tabletop

Accuracy (%) · Qwen3-VL-4B · 150 moves · three seeds

Base, stating its beliefPPO, judged belief rewardRLVB (SFT)RLVB

Other HiddenGames: MiniGrid, MineSweeper, FrozenLake, Sokoban.

Same teacher and states, no reward

RLVB (SFT)

copies the teacher's best action

RLVB

rewards its own turn by the teacher's score of its own action

Answers its own line rules out (%)

RLVB · Why it works

Does it act on its belief?

Turns with insufficient evidence and several answers on its belief, where it answers (%) · 150 moves

Base, stating its beliefRLVB
Yes

When its belief lists several answers and the evidence is insufficient, RLVB answers on at most 1.0% of turns. The base model stating its belief answers on 3–79%.

RLVB · Why it works · Early answers

Fewer answers before the evidence is sufficient

Answers given before the evidence is sufficient (%) · 150 moves

Base, stating its beliefPPO, judged belief rewardRLVB

RLVB gives the fewest early answers (lower is better) and takes the most steps in all nine settings.

Summary

Two abilities of a long-horizon agent

δ-mem · remember

An 8 × 8 online state, written by the delta rule, steers a frozen model

1.10×average score of the frozen backbone
1.31×on MemoryAgentBench
0.12%of the backbone's parameters trained

RLVB · decide when to stop

Each action is rewarded against the exact posterior of a simulator

9 / 9settings best with 150 moves
+21.4points over the base model stating its belief
≤1.0%answers while its belief is open
Next

One agent with both abilities

Memory in the RL loop

Learn what to keep for the decision

Train the memory state with the RLVB reward, so the agent keeps what tells it whether the evidence is enough.

Check the memory

Score what the state holds

The simulator's posterior can score the belief line. It could also score what the memory recalls.

Unknown rules

Estimate the posterior

Where no simulator gives the exact posterior, it must be estimated.

Full history

Close the gap to the full context

The compact state recovers part of the history. More of it is needed for exact recall.

Thank you

Questions

δ-mem

δ-mem: Efficient Online Memory for Large Language Models

arXiv 2605.12357 · github.com/declare-lab/delta-Mem

RLVB

Lazy Agents Answer Against Their Own Beliefs

declare-lab.github.io/RLVB