Predicate Hindsight: Training Object-Centric World-Model Agents on Every Relation They Stumble Into

Agents that learn by trial and error from pixels need huge amounts of experience. The problem is worst when the goal is relational, such as "touch the block whose color differs from the others" or "put red left of blue." Success is rare, so the reward almost never arrives. Model-based reinforcement learning helps by training the policy inside a learned simulator, the "world model," instead of the real environment. Recent object-centric versions, which represent a scene as a handful of per-object vectors called "slots," clearly beat whole-image world models on relational tasks. On the relational ("Distinct") tasks of the SOLD benchmark, SOLD reports 74.6% average success against 33.1% for DreamerV3 and 17.3% for TD-MPC2. Even these agents still learn each relational goal from a sparse reward signal. They also treat the reward as a black-box prediction, entangled with perception.

We propose that the world model also predict a small symbolic scene graph at every step. Its nodes are objects. Its edges are typed predicates such as left-of, touching, above, and same-color. Instructions become logical formulas over these predicates, and the reward is computed by evaluating the formula rather than by a learned reward network. This change has a large consequence. Any trajectory, real or imagined, can be relabeled after the fact with every relational goal it happened to satisfy. A single failed attempt at "red left of blue" becomes a successful example of "blue touching green" and dozens of other goals. We call this predicate hindsight. It extends hindsight relabeling from goal states to goal relations, and it runs inside the world model's imagination. We also ask how far into an imagined future each predicate can be trusted, and we measure that trust directly on real data.

Core Claim

The claim is that separating which relations hold (perception, handled by a readout from slots to predicates) from whether the goal is met (a symbolic check) produces two gains that current object-centric world models lack. The first is sample efficiency on relational goals, because relabeling in imagination turns each episode into combinatorially many rewarded ones. The second is generalization to unseen compositions of relations and attributes, because a formula such as "odd-one-out AND touching" is evaluated rather than memorized.

The design follows directly from the multimodal reasoning literature. MATH-Vision and GeoSQA find that models fail at deduction even when the percepts are correct. EVPV finds that 74% of step errors in vision-language reasoning come from visual misinterpretation, mostly structural misunderstandings. These are two failure modes that end-to-end systems conflate. Our agent keeps them apart by construction: predicate errors are measurable, and the logic is exact. This lets us attribute each failure to one side or the other.

A goal is a formula $\varphi$ over predicted predicates. The reward at step $t$ is $r_t = \mathbb{1}[\varphi(\hat{G}_t)]$, where $\hat{G}_t$ is the world model's predicted predicate graph at step $t$. Relabeling replaces $\varphi$ with any formula from a goal grammar that $\hat{G}_t$ satisfies.

Research Program

Backbone. We build on SOLD's slot world model, which uses Slot Attention for Video to extract slots and a transformer to predict slot dynamics. We keep its online fine-tuning of the perception encoder. SOLD shows that frozen object encoders break when the agent reaches new states, such as a block lifted for the first time, while OC-STORM argues for frozen foundation segmenters. We side with SOLD for the encoder. We borrow OC-STORM's few-shot idea only for predicate supervision.

Predicate head. On top of the slots we add a pairwise predicate head, an edge network in the style of Interaction Networks. It outputs probabilities for roughly ten typed predicates. Geometric predicates (left-of, above, near, touching) are supervised without labels from slot mask centroids and overlaps, following the geometry-guided idea of HSGG. Attribute and identity predicates (same-color, same-shape) are supervised from a few dozen labeled frames. This keeps the approach honest about the long-tail and labeling problems of scene-graph extractors noted in the file.

Goal grammar and relabeling. Goals are conjunctions of up to three predicates over object references. References may be relational descriptions such as "the odd-one-out" as well as fixed attributes. After each real episode, and for each batch of imagined rollouts, we enumerate the satisfied formulas and add relabeled copies to the policy's training data. The policy and value function are conditioned on an embedding of the formula's parse tree. Natural-language instructions in Language-Table are mapped to formulas by a fixed parser; we do not claim contributions on the language side.

Per-predicate trust horizons. Compounding model error is the known weakness of long imagined rollouts (L³P). Our response borrows EVPV's idea of checking premises, moved from static reranking into control. On replayed real trajectories, we roll the world model forward from step $t$. We then measure, for each predicate type $p$ and horizon $k$, how often the predicted predicate matches the one perceived at $t+k$. The trust horizon $H_p$ is the largest $k$ where agreement stays above a threshold. A relabeled imagined reward is used only if every predicate in its formula lies within its trust horizon. The expectation is that fast-changing contact predicates get short horizons and static attribute predicates get long ones. This per-relation gate is what separates our approach from a single global rollout length.

Baselines

The naive reference point is DreamerV3 trained on the task's sparse success reward with no relabeling. SOLD reports DreamerV3 at 33.1% on Distinct tasks. We rerun it under our budget rather than quoting that figure.

The strongest existing method is SOLD itself, the slot world model with a learned reward head. On Distinct tasks it reports 74.6% average success. That is the number to beat. Beating it means higher final success on Distinct tasks at the same interaction budget, or reaching SOLD's final success with at most half its environment steps. We run SOLD with its released configuration and give both methods the same number of environment steps, the same world-model size, and the same hyperparameter search budget. The only differences are the predicate head, the relabeling, and the gating. The predicate head's few labeled frames are also given to SOLD, as auxiliary supervision on its reward head, so our method has no extra information.

On Language-Table, the reference is LSlotFormer. It is an offline imitation learner with frozen T5 instruction embeddings, and it reports 50.0% success on seen tasks and 38% on unseen shape-color combinations. Because it learns from demonstrations rather than online interaction, we report it as a reference, not a head-to-head comparison. We also add an online variant that uses its language-conditioned slot model with a learned reward head, trained with our budget.

The ablation that isolates the key ingredient is SOLD plus hindsight relabeling through a learned, language-conditioned reward head. Here the relabeled goals are drawn from the same grammar, but satisfaction is judged by a neural network rather than by logic over predicates. If this matches our method, the symbolic readout is unnecessary. We further ablate relabeling on real data only versus real plus imagined data, and trust horizons versus a single tuned global rollout length.

Why not just…?

Why not just use hindsight relabeling with a whole-image world model? Goal-image relabeling in the spirit of imagined goals relabels states, not relations. A relational goal like "odd-one-out" corresponds to many visually different states, and whole-image latents underperform on exactly these tasks according to SOLD's numbers. We include a DreamerV3-plus-goal-image-relabeling run. The prediction is that it narrows but does not close the gap on Distinct tasks, and it fails on held-out compositions.

Why not just ask a vision-language model whether the instruction is satisfied and use that as the reward? The file's evidence argues against VLMs as fine-grained relational judges. Plot Twist shows they miss elementary details while scoring well on high-level questions. EVPV attributes most of their step errors to structural misreadings. Querying one per imagined step would also cost far more than MSRL's already expensive judge-based rewards. We test this directly by scoring a VLM judge's predicate accuracy on held-out real frames against our predicate head. We run the judge-rewarded agent only on real transitions, which is the only affordable setting.

Why not just add a language-conditioned learned reward head to SOLD and relabel with that? This is the real threat, and it is the main ablation. A neural reward head may learn the grammar well enough within the training distribution. Our advantage should show up in two places. The first is held-out compositions, where the formula is new but its predicates are familiar. The second is the error breakdown, where our design lets us say whether a failure was perceptual or logical. If the learned head matches us on held-out compositions, we will conclude that the explicit predicates buy interpretability but not performance, and report that.

Why not just shorten all imagined rollouts or use ensemble disagreement to decide when to stop? A global rollout length is a strong and simple control, and we tune it with the same search budget. Ensemble disagreement measures uncertainty in the latent state, not in the specific relations the reward depends on. The trust-horizon ablation shows whether gating each predicate separately adds anything beyond a well-tuned global cutoff.

Proposed Experiments

The primary experiment is the SOLD benchmark. We report success rate against environment steps on both Specific and Distinct tasks, with at least five seeds. The headline comparison is against SOLD's reported 74.6% Distinct success. No specific-task number was reported on Lacuna for SOLD, so we will produce our own.

The second experiment uses online Language-Table, where we measure both seen tasks and the unseen shape-color split. LSlotFormer's 50.0% and 38% serve as offline references. The compositional test adds a held-out split of formulas: pairs of predicates never seen together as goals during training, although each predicate was seen individually.

The diagnostic experiment measures predicate accuracy on real frames and trust horizons per predicate. We then decompose failed episodes into perceptual failures, where a predicate was mispredicted, and policy failures, where predicates were correct but the goal was not reached. This mirrors EVPV's error taxonomy and tests whether the perception/reasoning split observed in static multimodal benchmarks also appears in control.

Two outcomes would decide the question. The first is whether the logic-based relabeling beats the learned-reward relabeling ablation on held-out compositions by a margin larger than the seed variance. The second is whether imagined relabeling cuts the steps needed to reach SOLD's final Distinct success by at least half. If neither holds, the symbolic predicate layer is not earning its cost.