A training-free safety filter called CSF checks text-generated whole-body motions against natural-language rules and the current scene, then changes only motion that violates an active rule. Tested with four pretrained motion generators and a Unitree G1 humanoid, it redirected punches and kicks when a person was a target or entered view, while allowing the same skills when the scene contained only an object.
What did the researchers build?
CSF, short for Contextual Safety Filtering, is a safety layer for robots that generate motion from text. A motion generator might turn “kick the ball” into a smooth, physically possible kick. But the same body movement could be unsafe if a person is standing where the ball would be. CSF addresses that gap by checking both the requested movement and what the robot’s scene description says is present.
The filter uses natural-language safety rules and scene entities to decide when a restriction applies. If a rule is active and the generated movement conflicts with it, CSF modifies the motion. If no rule applies—or the motion already satisfies the active rules—the filter passes the motion through. It does not retrain the generator or add a separate learned safety model.
The researchers tested the approach with four pretrained motion generators. They also connected an ARDY-based generator, CSF, camera-based scene perception, and a pretrained SONIC tracking policy into a real-world pipeline on a Unitree G1 humanoid. The generator and tracker stayed the same in both filtered and unfiltered trials, allowing the test to focus on the safety layer.

What were the key results?
The paper reports a benchmark designed to separate two questions: does the scene activate the right rule, and does CSF correct the motion when that rule applies? The researchers created 28 unsafe–benign command pairs covering six concepts. Each pair used three random seeds, and comparisons held the command and seed fixed while changing the scene or whether filtering was enabled.
| Benchmark detail | Reported result |
|---|---|
| Pretrained motion generators evaluated | 4 |
| Unsafe–benign command pairs | 28 |
| Concepts covered | 6 |
| Random seeds per pair | 3 |
| Clips per generator | 672 |
| Total clips across generators | 2,688 |
| Filtered and unfiltered clips | 1,344 each |
On the Unitree G1, CSF redirected person-directed punches and kicks, including cases where the command sounded object-directed but the scene contained a person. When only the object was present, the rule stayed inactive and the requested movement was preserved. In a separate runtime-shield test, a person entered view after the robot had begun an object-directed strike; CSF redirected the remaining motion rather than allowing the strike to finish.
The available paper text describes these outcomes but does not provide numerical safety rates, motion-quality scores, or timing measurements. The results therefore support a qualitative demonstration of contextual intervention, not a numerical claim that CSF achieves a particular success rate.
How does CSF work?
A text-conditioned motion generator produces a motion through a sequence of refinement steps. Instead of waiting for a finished motion and checking it only once, CSF can inspect the generator’s current motion estimate during that process. This gives the filter an opportunity to correct a developing motion while it is still being generated.
For each active rule, CSF sets a mathematical constraint based on the motion and its semantic context. The paper describes this as an affine semantic margin: in plain terms, a numerical measure of whether the current motion satisfies a rule. A control barrier function (CBF) encodes the requirement that the motion remain on the safe side of that constraint. A quadratic program (QP)—an optimization problem that finds the best adjustment under specified limits—then balances satisfying the constraint against staying close to the generator’s reference motion.
That balance is important. A filter that changes every motion could make a robot less useful or disrupt skills that are already permitted. CSF is designed to intervene only when an active rule is violated; an empty set of active constraints means pass-through. The paper states that the optimization is feasible at each step and provides invariance and optimality guarantees under its formulation. It also characterizes the residual associated with the deployed ridge-based optimization.
Scene context can change after a motion has been generated. In the hardware runtime-shield test, perception updated the scene entity list when a person entered view. That update activated the person-protection rule, and CSF altered the remaining reference for the same unchanged tracker to follow.

Why does contextual filtering matter for robotics?
Motion quality and permission are different problems. A robot can execute a movement smoothly and still direct it at the wrong object or person. CSF’s central practical idea is to make safety depend on what the robot is doing and what is around it, rather than treating a motion as safe simply because it is physically feasible.
That distinction matters wherever a robot shares space with people or handles tasks whose meaning depends on the target. A humanoid could be asked to punch a training pad, kick a ball, or perform a similar action near a person. A context-aware filter gives the system a way to preserve an allowed skill in one scene while blocking or redirecting it in another.
The runtime-shield demonstration is particularly relevant to deployment: a scene can change after a robot has committed to a task. A system that checks only the original command or the original scene can miss that change. CSF’s test shows a path toward responding to updated perception without replacing the motion generator or tracker.
For buyers assessing platforms that could use such a layer, browse humanoid robots on Robot Overflow. The approach also points to a broader design need: robot capabilities and safety controls must be evaluated together, not as separate features.
What are the limitations and open questions?
The reported hardware trials focus on a narrow set of actions—punches and kicks—and person-versus-object scene context on one Unitree G1 pipeline. They demonstrate useful cases, but do not establish performance across different robot bodies, complex workspaces, varied human behavior, or a broad range of tasks.
The supplied paper text does not include quantitative benchmark success rates, motion-quality comparisons, intervention frequency, or runtime latency. Those measurements would help operators judge whether filtering is reliable and fast enough for particular deployments. The mathematical guarantees also depend on the paper’s constraint formulation; they should not be read as a blanket guarantee against every physical hazard or perception error.
Important deployment questions remain: how accurately does perception identify scene entities, how does the system handle ambiguous rules, and what happens when the scene changes faster than it can update? The results show a promising safety layer, not a replacement for robust perception, testing, or operational safeguards.
What are the frequently asked questions about CSF?
Does CSF require retraining a motion generator? No. CSF is designed as a training-free filter and leaves the pretrained generator unchanged.
Does CSF block every generated punch or kick? No. In the reported test, the filter redirected strikes when a person activated the rule and preserved the requested skill when only an object was present.
Can CSF react if a person appears after motion generation? Yes. The Unitree G1 runtime-shield test updated the scene during execution and redirected the remaining motion.
Does the study provide a numerical safety success rate? The supplied text reports benchmark sizes and qualitative hardware outcomes, but no numerical safety rate or motion-quality score.
What is the practical takeaway?
CSF adds a context-aware safety check between text-driven motion generation and robot execution. Its tests show how a humanoid can preserve an allowed movement while redirecting a similar movement when a person becomes the target or enters the scene.
