Affordance-Frame Critics for Layout-Invariant Manipulation under Sparse Rewards

Robots trained with reinforcement learning often fail when the scene is rearranged. A policy that reliably presses a button or pulls a wire on the training layout will reach for the old coordinates once the same button is moved. We propose to fix part of this problem at the critic, the learned evaluator that scores the robot's actions during training. The critic only exists in simulation, so it can be given information the robot will never see at deployment. We propose describing each object to the critic by what it does rather than where it is. For each functional part, the critic gets two things. The first is the part's effect state: how far the button is depressed, the slider moved, or the knob turned. The second is the gripper's pose expressed in that part's own coordinate frame. Parts that respond to force in the same way share one learned embedding. Because this input does not change when the part is moved, the critic judges actions the same way in every layout. Because effect states change gradually before the final binary success, the critic can also assign credit long before the sparse terminal reward arrives.

The setting is the asymmetric actor-critic: the actor (the deployable policy) sees only camera images and joint readings, while the critic gets privileged simulator state. Existing asymmetric systems give the critic raw world-frame poses, velocities and forces. Examples are image-based picking in Asymmetric Actor Critic for Image-Based Robot Learning, dexterous manipulation by OpenAI et al. and Allshire et al., and tactile rotation by Yin et al.. Our claim is that the frame in which privileged state is expressed matters, not only which variables are included. A world-frame critic trained across randomized layouts has to rediscover the gripper-to-part relation separately in every layout. A critic given affordance-frame input gets that relation directly. It should therefore train faster, estimate values more accurately on unseen layouts, and give the actor learning signals that do not reward coordinate memorization.

Core Claim

The claim has three parts. First, among critics given the same information, an affordance-frame critic learns faster than a world-frame critic when training layouts are randomized. Second, its value error is much lower on held-out layouts. Third, and most important, image-based actors trained with it succeed more often on fully shuffled layouts. The comparison policy is one trained with an equally informed world-frame critic.

This differs from the closest work in a specific way. Informed Asymmetric Actor-Critic (Ebi et al.) shows that any state-dependent privileged signal keeps the policy gradient unbiased. It also shows that irrelevant signals act as "structured noise" that hurts learning, and it selects a subset of privileged variables using a dependence test. Absolute part coordinates would pass that test, because reward depends on them jointly with the gripper pose. Subset selection therefore cannot remove the layout dependence. A change of frame can. The two approaches are complementary, and we test both.

The proposal also sits between two results that seem to conflict. Sinha and Mahajan argue that giving the critic the true state is what reduces gradient variance. They also find that auxiliary representation losses add nothing on top and can slow early learning. Ebi et al. argue that full state is often harmful. Our proposal keeps the no-auxiliary-loss lesson and rewrites the state instead, so it tests a third option that neither paper considers.

Research Program

The critic's input

We build the critic's privileged input as follows. Each functional part $k$ in the scene has three components. The first is a scalar effect state $e_k \in [0,1]$, the normalized joint position toward that part's goal. The second is the end-effector pose $T_k$ expressed in the part's actuation frame, together with the relative velocity. The third is a learned embedding $z_{c(k)}$ for the part's functional category $c(k)$.

Functional categories are defined by effect profile, meaning how the part's state responds to force. In simulation we measure this by applying small random pushes, twists and pulls to each part and clustering the resulting joint motions. Push buttons and toggle switches may then land in the same "one-axis push" category even though they look different. This is a continuous-control version of the Action-Category Representations of Nair and Chernova, which grouped objects by shared interactions but only in discrete, symbolically labelled domains. We also build a hand-labelled category version as a control, so that errors in category discovery cannot be confused with the effect of the frame change.

The critic processes these per-part tokens with a small attention network. Its output is the value of state $s$, the full privileged simulator state, under goal $g$:

$$V_\phi(s, g) = f_\phi\big(\{(e_k, T_k, z_{c(k)}, \mathbb{1}[k \in g])\}_{k=1}^{K}\big).$$

Here $\phi$ are the critic weights. $K$ is the number of parts. The indicator marks which parts the goal instruction refers to. Because the critic sees the parts as an unordered set, its value cannot change when layout is changed alone.

The actor

The actor sees two RGB views and proprioception, meaning joint angles and gripper state. The first view is a third-person camera. The second is a wrist camera, following Hsu et al.. The actor also receives a language goal such as "press the red button, then slide the green slider to the end." Actor and critic are trained with a standard off-policy asymmetric actor-critic under the task's binary success reward, as in Pinto et al.

Using effect states against sparse rewards

The sparse-reward direction enters through effect-space hindsight relabeling. Pinto et al. relabel failed episodes with whatever object location was reached. We instead relabel with whatever functional effect was produced ("the switch you actually toggled"). A failed attempt at one task then becomes a successful example of another task in the same category.

We also add an optional term: a potential-based shaping reward built from the summed effect progress of goal parts. This form of shaping is known to leave the optimal policy unchanged. It is kept in a separate experimental arm so that its contribution can be measured apart from the critic's input representation. This effect-based progress signal differs from the frame-pair progress critic of VLAC in two ways. It is measured from simulator state, not inferred from pixels. It also does not assume that progress rises steadily with time, and that assumption is exactly the limitation VLAC's authors report for hesitations and cyclic motions.

Environments

We build a simulated replica of the BusyBox board. The replica has six articulated modules: buttons, sliders, a knob, switches, wires and a display. They are arranged on the canonical, semi-shuffled and fully shuffled layouts that Mishra et al. define. We will not model the wire-insertion task, because deformable wires are hard to simulate. Wire pulling is kept as a rigid, jointed module.

Training uses a subset of layouts. Evaluation uses held-out semi-shuffled and fully shuffled layouts. We add a stricter context test in which the target stays at its exact training position and only its neighbours change, which is the failure mode Mishra et al. highlight. A second environment is the spatial-configuration axis of LIBERO-Gen. It is simulated, so privileged state is available, and it offers ten discrete target locations with defined in-distribution and compositional splits.

Baselines

Naive reference. The simplest baseline is a symmetric image actor-critic trained with sparse reward, the same cameras and layout randomization. Pinto et al. report that the symmetric pixel critic stayed below 40% success on Fetch Pick. That establishes how weak this reference can be, and our replication on BusyBox-sim will show where it lands.

World-frame asymmetric critic. The strongest competitor is the asymmetric actor-critic of Pinto et al. with hindsight relabeling. Its critic receives the full world-frame simulator state (all part poses, joint states and gripper pose), and it is trained with the same layout randomization. This is the method our claim directly challenges. It has access to strictly the same information, since the affordance-frame input is a deterministic function of world state. Pinto et al. report near-perfect in-distribution Fetch Pick success and 5/5 physical transfer. However, no reported result found on Lacuna for it on BusyBox layouts or LIBERO-Gen spatial shifts.

Information-selected critic. An IAAC-style critic whose privileged variables are chosen by Ebi et al.'s residual-informativeness criterion from the same world-frame pool. Ebi et al. report faster convergence and higher final return than full-state critics on Car-Flag and Memory-Four-Rooms, but they give no absolute numbers in the file.

Dense visual progress reward. A VLAC-style frame-pair progress model used as a dense reward with the world-frame asymmetric critic. VLAC reports lifting real-robot success from 30% to 90% within 200 episodes. We use the released model if available. Otherwise we train a frame-pair progress head on our demonstrations, and say plainly that this is a reimplementation.

Imitation-learned models, as references only. For context we report π0.5 and GR00T-N1.6 as published, not as matched competitors, since they are trained differently. On BusyBox they reach 80–100% on canonical layouts, while GR00T-N1.6 wire pulling drops to 0% when fully shuffled (Mishra et al.). On LIBERO-Gen, π0.5 reaches 64.0% on the spatial compositional split with Stair sampling, and OpenVLA falls to 0.0% (Zhou et al.).

Fairness controls. All RL arms share the actor network, environment-step budget, replay settings and random seeds. Each gets the same number of hyperparameter trials, tuned on held-out training-distribution layouts only. Critics are matched in parameter count.

Ablations. Three ablations isolate the key ingredient. The first gives the critic world-frame coordinates with the same set-structured attention network, to separate the frame change from the architecture. The second uses affordance frames but no effect-state inputs. The third replaces discovered categories with per-module identities, removing the functional grouping. Beating the world-frame baseline means a gain of at least 15 absolute points in fully shuffled success, with overlapping in-distribution success. It also requires the frame-only ablation to recover most of that gain.

Why not just…?

Why not just use the full world state and randomize layouts harder? This is the main threat. With enough layout diversity and steps, a world-frame critic can in principle learn the relative geometry itself. We address it directly by plotting shuffled-layout success against both the number of training layouts and the step budget, for both critics. If the gap closes at modest budgets, the proposal reduces to a sample-efficiency trick, and we will report it as such. The fact that π0.5 reaches only 52.3% on LIBERO-Gen spatial shifts under random sampling (Zhou et al.) suggests randomization alone leaves a gap. That result is from imitation learning, though, so it motivates the question rather than settling it.

Why not just add a wrist camera? Hsu et al. show wrist views cut out-of-distribution failures by 92–100% in simulated grasping. Every arm of our study already includes one. But Hsu et al. also find that wrist views lose the target when it is out of frame, and that the third-person view brings the coordinate trap back unless it is regularized with an information bottleneck (64% failure reduction on Meta-World). We run their information-bottleneck dual-view actor with the world-frame critic. This tests whether fixing the actor's input already makes the critic's frame irrelevant.

Why not just select privileged variables, as IAAC does? Selection keeps or drops variables but cannot turn a layout-dependent variable into an invariant one. Our prediction is that the IAAC-selected set keeps absolute part poses and behaves like the world-frame critic under shuffling. Measuring which variables it keeps, and its shuffled-layout value error, tests this directly.

Why not distil a state-based expert into the image actor? One could train a privileged affordance-frame policy and imitate it from images. Pinto et al. found the asymmetric critic outperformed DAgger baselines on hardware. We nonetheless include a DAgger student distilled from an affordance-frame teacher. This checks whether the benefit comes from the representation or from the actor-critic coupling.

Decisive Checks

Five measurements decide the claim. The first is success on fully shuffled BusyBox-sim layouts and on the LIBERO-Gen spatial split. The second is critic value error on held-out layouts, which should stay flat for the affordance-frame critic and rise for the world-frame critic. The third is a relocation probe: we move only the target module and record whether the actor's reach follows it or returns to the old training location. The fourth is the neighbour-only perturbation test. The fifth is a held-out module type, such as a lever whose effect profile falls into an existing category, which tests whether functional grouping transfers at all. If the frame-only ablation matches the full method, the category machinery is unnecessary. If shuffled-layout success improves while the relocation probe still shows reaches to training coordinates, then the critic's frame is not what fixes the actor. Either outcome would redirect the work.

If simulation results hold, we will also run a small sim-to-real test on a physical BusyBox, reporting shuffled-layout success over a fixed number of trials.