﻿# RLBench identity: task, variation, random placement and description are separate

Preserve RLBench task and variation identities without confusing randomized scene placement or synonymous descriptions with independently held-out tasks.

Author: Retrivium editorial team
Updated: 2026-11-04
Canonical URL: https://retrivium.ai/journal/fg2-rlbench-task-variation-random-placement-description-identity/
Language: en

## Avoid a flattened task identifier

A dataset exporter stores only a variation number and later groups demonstrations by that field. Different tasks can reuse that number, while repeated episodes of one variation can contain different placements. The flattened label therefore merges unrelated instructions and hides meaningful relationships between related samples. Retain task name, variation, demonstration identity and the chosen description as separate fields before constructing a language-conditioned policy dataset or a split intended to measure task generalization.

## Follow the environment’s variation selection

The [RLBench task environment source](https://raw.githubusercontent.com/stepjam/RLBench/master/rlbench/task_environment.py) selects a variation within a task and uses that choice when initializing an episode. Reset can still involve randomized placement. Consequently, setting the same variation does not by itself reconstruct every scene detail. A reproducibility record should retain the demonstration’s stored state or documented replay information as needed, rather than presenting a variation identifier as a complete random seed or simulator snapshot.

## Inspect a task-specific example

In the [ReachTarget implementation](https://raw.githubusercontent.com/stepjam/RLBench/master/rlbench/tasks/reach_target.py), the variation chooses a target color, while distractor choices and placements involve further sampling. The task also returns alternative descriptions of the same requested behavior. These descriptions do not create independent physical demonstrations. If a training pipeline expands each description into another row, keep a link to the underlying episode so a later text split does not send synonymous descriptions of one demonstration to opposite sides of evaluation.

## Match the split to the intended novelty

The [RLBench README](https://raw.githubusercontent.com/stepjam/RLBench/master/README.md) distinguishes task sets for different research settings. Holding out tasks, holding out variations within known tasks and holding out placements answer different questions. A model can encounter a familiar task structure with a changed target color without demonstrating transfer to an entirely new task. State the held-out unit directly and retain the original task-set definition when claiming a published protocol, instead of inferring its meaning from a count of unique text strings.

## Audit identities before interpreting errors

Choose demonstrations that share a task and variation but differ in placement, then compare those with a genuinely different task using the same local variation number. Verify that the exported identities preserve both relationships. [Entity-aware split design](/journal/data-guide-entity-group-split-design/) explains why derived examples should share a group; [software reproducibility](/journal/software-stack-reproducibility/) preserves task and replay code. This audit separates language paraphrase, scene randomness and task novelty, making both success and failure claims more specific than a single flattened identifier allows.
