08 · Robot RL, sim-to-real and deployment evidence
Design rewards and evaluations that reveal failure before making claims about real robots.
Prerequisites: MDPs, PPO, control constraints and statistical evaluation.
Technical posts currently have English and Chinese editions. This locale displays the English article with localized navigation.
Understand the mechanism
RL optimizes a reward in the training environment; it does not know whether the reward matches the intended task. Domain randomization exposes a policy or perception system to variation, but variation must cover meaningful real-world uncertainty. The original domain-randomization paper studies simulated visual variation; randomizing dynamics is a broader experiment, not the same claim. Separate simulation success, hardware transfer, recovery and safety evidence. Evaluate held-out parameter combinations and record every reset and human intervention.
Text / 原始公式
J(θ) = E[Σₜ γᵗ rₜ] rₜ = progressₜ − λ·effortₜ − μ·violationₜ SE(p̂) ≈ √[p̂(1−p̂)/n] [rough large-sample diagnostic] zero events: one-sided 95% upper bound = 1 − 0.05^(1/n)
Study guide & lesson outline
LEARNING CONTRACTUnderstand → implement → investigate
Goal: explain the mechanism in this lesson, reproduce one example and test a failure case. Reading alone does not mark mastery.
- Understand: state assumptions, shapes/units and a counterexample.
- Implement: reproduce a numerical example and inspect boundaries.
- Investigate: compare one alternative under a matched budget.
Mechanism map & worked derivation
| Symbol | Meaning |
|---|---|
| γ, λ, μ | Discount and explicit reward weights |
| n, p̂ | Independent trials and observed success fraction |
- Suppose a policy earns +1 for approaching an object and −0.01 for effort but has no completion term. It may hover nearby instead of grasping. Add task checks, not merely larger weights.
- 18 successes in 20 trials give 90% observed success but a rough SE of 6.7 percentage points. Small-sample interval methods and task stratification are preferable for reporting.
- With zero failures in 20 independent identical trials, the one-sided 95% upper bound on failure probability is about 13.9%. Zero observed failures is weak safety evidence at this sample size.
Create an evaluation matrix crossing objects, lighting, mass, friction and delay. Hold out combinations, not only seeds. Report success, intervention rate, p95 latency and violation counts with denominators. Hardware work needs a separate validated control/safety setup.
Original interview exercises & analysis
Answer aloud before revealing the analysis. Add assumptions, a counterexample and a test you would run.
Why can more randomization reduce transfer?
Unrealistic ranges can overwhelm useful training signals or force overly conservative behavior. Measure sensitivity, calibrate ranges and test unseen combinations.
What evidence belongs in an interview project?
A versioned dataset and configuration, baselines, ablations, failure videos or traces, latency distributions and a candid limits section. Clearly distinguish simulated, offline and hardware results.
Read the primary sources
Domain Randomization ↗ · arXiv PDF ↗
Underactuated Robotics — Russ Tedrake ↗
Original Token Lab explanations and synthetic calculations; not measured robot performance. Source links checked 2026-10-25. Unversioned arXiv links may change; record a version for reproduction.