Karen Liu: Robotics & Graphics
Simulating Realistic Human Motion: Notes from Karen Liu's Talk
The Challenge of Virtual Humans
Creating photorealistic virtual humans has been achievable in computer graphics for over a decade. The Siren demo from AGDC showcases a digital human rendered in real-time at 60 frames per second, with impressive visual fidelity. However, there is something fundamentally missing from these virtual humans: natural, autonomous motion. In the Siren demo, all movements come from a real actress performing motion capture in real-time — the digital human is essentially a sophisticated puppet. This reveals a critical gap: computer graphics has mastered appearance but not behavior.
Key insight: The field still lacks the ability to generate unscripted, natural-looking motion without a live performer providing the movement data.
The Human Motion Generation Pipeline
The biological process of human movement follows a specific chain:
Thought — a high-level intention (e.g., "pick up that coffee cup")
Neural excitation — the thought converts to signals
Muscle activation — neurons activate muscles
Muscle contraction — muscles generate torque around joints
Physics simulation — torques combine with external forces (gravity, contacts) to produce joint configurations over time
In computer animation, this raises two fundamental questions:
Where to control?
At one extreme, one could control the excitation of billions of neurons — computationally intractable. At the other extreme, one could bypass physics entirely and directly control joint configurations (kinematic control), but this fails in dynamic environments.
How to represent the thought?
The intention could be represented as a detailed trajectory (state at every millisecond) or as an abstract goal without specifying how to achieve it.
The Control Space for Virtual Humans
The upper-right corner (muscle activation + no trajectories)
State-of-the-art techniques can control at the muscle activation level to create complex motion without reference trajectories
This is the hardest region to achieve
The lower-left corner (joint torque + trajectories)
Most entertainment industry applications fall here
Motion is designed by artists or captured from real humans
Produces high-quality, natural-looking motion
Cost: no responsiveness to physics changes in the environment; agents cannot do anything beyond the prescribed trajectory
The region of interest (joint torque + no trajectories)
This is where Karen Liu's lab focuses its research
Agents plan their own movements based on abstract goals
Motion emerges through physics constraints
Enables:
Responding to unplanned physical perturbations
Transferring skills to different environments (e.g., training a bicycle-riding agent on flat terrain, then transferring to different conditions)
Autonomous behavior — the agent solves an optimization problem to plan movements from an abstract goal (e.g., "don't die" when falling from mid-air)
Generating motions where reference trajectories are hard to obtain (e.g., putting on clothes — occlusion makes motion capture difficult)
The Naturalness Problem
Naturalness of motion should be an emergent property of the task and physics, not something that must be explicitly tracked. Most virtual agents are actuated by independent rotary motors (like robots), directly controlling joint angles and torques. This makes simulation easier but produces robot-like motion.
Hypothesis: Naturalness of motion will emerge if muscle activation is used as the actuator instead of direct joint torque control.
Why is muscle-based control difficult?
The muscular system is highly redundant — human legs have over 90 muscles controlling just 6 degrees of freedom. Each muscle adds complexity to the dynamic system.
The proposed approach
Instead of using full muscle models, the goal is to find a task-agnostic approach that generates natural motion comparable to muscle models but using only joint torque (which is simpler to model and faster to compute). The key is making the actuation space defined by anatomical model rather than the task being performed.
Transforming Muscle Control to Joint Torque Control
Formulating the optimal control problems
Muscle space problem:
Control variable: muscle activation trajectory a
State variable: joint configuration trajectory q
Minimize: muscle usage + task-relevant penalty
Subject to: articulated rigid body dynamics, muscle dynamics, muscle activation bounds, joint bounds
Joint torque space problem:
Control variable: joint torque τ
Minimize: torque usage + same task-relevant penalty
Subject to: articulated rigid body dynamics, torque bounds, joint bounds
These two problems produce different solutions because they have different constraints. The question is whether the muscle problem can be transformed into an equivalent joint torque problem — solving in the simpler torque space while still getting the benefits of muscle modeling.
Identifying the differences
All terms that are identical between the two problems can be crossed off:
Task term
Articulated rigid body dynamics
Joint limits
What remains different:
Torque bounds — The joint torque formulation uses simple box constraints that don't account for muscle capabilities. Some torque patterns achievable with box constraints are impossible for real muscles.
Energy assignment — The torque formulation uses sum of squared torques, which doesn't reflect muscle-based energy expenditure.
Learned Joint Torque Limits
Observations about human torque production
Observation 1: Joint torque limits are state-dependent. For example, when someone's arm is locked behind their back, they cannot generate much torque. This contrasts with the constant upper/lower bounds used in standard box constraints.
Observation 2: Joint torque limits also depend on other torques being generated simultaneously. Muscles span multiple joints, and activating one part of the body affects torque limits elsewhere.
The solution
Instead of a box constraint with constant bounds, use an implicit function C(q,q˙,τ) that defines the range of human joint torque limits. This function captures muscle capability using only information available in the joint torque formulation.
C(q,q˙,τ)≤0 evaluates to true if there exists a muscle activation a such that the desired torque τ can be generated at state q,q˙.
Training the neural network
OpenSim — a biomechanically realistic simulation tool widely used in biomechanics — is used to evaluate the feasibility function
One million optimization problems are solved using OpenSim with a detailed muscle model
A neural network classifier is trained to approximate the function C, making it efficient to evaluate and differentiate
The training is task-agnostic because the space is uniformly sampled
Results comparison
Jumping as high as possible:
Green agent (standard box constraints) — hyper-flexes its ankles to get lower and accelerate longer, generating more torque before leaving the ground
Blue agent (learned joint torque limits) — this hyper-flexed ankle position is impossible for real humans; no one can generate torque from that position
The learned constraints prevent anatomically impossible motions
Standing long jump:
Green agent overbends its knees and hips
Blue agent uses the learned constraints to prevent impossible positions
Both compare favorably with the full muscle model (ground truth)
Computation time saved: approximately half for simple problems (much more significant for reinforcement learning)
Learned Energy Function
Motivation
Different muscle activations produce the same joint torque but require different amounts of effort. Example: pull-up (palms facing outward) is significantly harder than chin-up (palms facing inward), yet standard torque-squared energy functions give them identical scores.
The energy function should also be state-dependent and reflect muscle-based effort.
Implementation
Another neural network is trained as a regressor using OpenSim
Inputs: state q,q˙ and torque τ
Output: energy expenditure
The network learns from a biomechanically realistic model
Results
Using the learned energy function produces more subtle differences but noticeable improvements. The blue agent shows more passive movements in its knees, confirming the biomechanical hypothesis that animals use elastic elements in their bodies to save energy.
Key contribution: The paper proves that any muscle problem formulated this way can be transformed into an equivalent joint torque problem, producing motions q with the same minimal value as the original muscle problem.
Learned Joint Limits
Problems with box constraints for joint limits
Human range of motion does not look like a box (e.g., the human shoulder's range of motion is a complex shape)
Joint limits are state-dependent — bending the elbow with the arm in front of the torso allows nearly 180 degrees, but moving the arm behind the back severely restricts elbow range
Learning function D
Function D(q)≤0 is an implicit function defining the range of human motion.
Training data: Real-world data from the MPI database (Michael Black's lab), containing extensive poses captured from human athletes.
Enforcing constraints in physics simulation: A linear complementarity program computes constraint forces to keep q satisfying the D constraints at the next time step.
Results
Passive ragdoll (no control, just gravity):
Standard box constraints produce the typical ragdoll look
Learned joint limits produce much more human-like motion — purely from better constraint definition, not from any control policy
Inverse kinematics (IK):
Without constraints, solutions can produce anatomically impossible poses
With learned joint limits, the solver correctly fails to reach targets that would require impossible poses
Unexpected benefit: Self-collision avoidance comes for free because no real-world pose in the training data has body parts passing through the torso
Summary of the biomechanical framework
Three functions in a generic optimal control problem are identified and replaced with learned neural networks:
Joint torque limits — learned from OpenSim (muscle model)
Energy function — learned from OpenSim (muscle model)
Joint limits — learned from real-world motion capture data
Sim-to-Real Transfer for Robot Control
The reality gap
Training policies in simulation and deploying them to real robots fails when the dynamic model parameters in simulation differ from reality. Two common approaches:
Robust policy — train to handle noise, hope the real world is close enough to simulation
System identification — train a dynamic model using real-world data, bring simulation closer to reality (limiting factor: requires many real-world trials)
Universal Policy approach
A universal policy takes model parameters μ as part of its input, in addition to the state. The policy is trained under a distribution of model parameters, so it can adapt to different dynamics.
An online system identification network predicts the model parameters from a short history of state-action pairs. This is trained jointly with the policy.
Limitation: This only works for simple cases. When the system identification sees unseen history, it makes mistakes, confusing the universal policy.
Reverse system identification
Instead of identifying the system first and then learning a policy, the order is reversed:
Learn the policy first (as a universal policy conditioned on μ)
During deployment, find the μ that maximizes the policy's performance on the real task
Key insight: The identified μ does not need to be the true model parameters. It only needs to make the policy work well for the task. Multiple μ values may work, making the optimization easier than finding the true parameters.
Projected universal policy
Problem: optimizing μ directly works only when μ is low-dimensional (fewer than 5 dimensions).
Solution: Train a projected network that maps model parameters to a low-dimensional compact space c. During testing, optimize c directly using real-world data.
Result on Darwin OP2 robot:
Initial attempt with universal policy trained in simulation fails (reality gap)
After 20 iterations (15-20 minutes of walking trials), the robot begins walking forward
Also achieved backward walking and sideways walking
Meta-learning for faster adaptation
Problem: The mapping from model parameters to compact space c is trained without using real-world data, but during testing it must work with real-world data.
Solution: Use a meta-learning approach where the training process mimics the testing process:
Sample a distribution of model parameters (like tasks in meta-learning)
For each sample, find the optimal c for the current policy
Collect pairs of (μ,c) and use them to update the policy gradients
Repeat
This makes training and testing processes consistent.
Results:
A robot learns to move after just 13 iterations
Can handle altered environments (e.g., weakening one motor to simulate a three-legged dog)
Can walk uphill
Virtual Humans for Assistive Robotics
Robot-assisted dressing
This application involves humans in the loop with physical contact. The problem is multifaceted because it requires joint optimization of humans and robots through a highly nonlinear and deformable dynamic system — the cloth.
Why virtual humans matter: A bad robot can use a garment to hurt a human in unpredictable ways. Early-stage reinforcement learning policies produce dangerous motions that no one would want applied to a real person.
Benefits of virtual humans for training:
Safe training without risk to real humans
Can model and modulate the kinematic and dynamic capability of humans
Train one robot policy to interact with a wide range of human behaviors
Capability modulation
The same robot policy can adapt to different human capabilities:
Weaker person: The robot ends up doing most of the work
Dyskinesia (tremor): The robot adapts to the unsteady motion
Limited range of motion: The robot adjusts its actions accordingly
Haptic perception for dressing
Vision is limited in dressing tasks due to occlusion. Haptic perception can be enhanced by teaching robots how human feels when the robot applies certain actions.
Approach: Use cloth simulation to generate large amounts of training data. Train a neural network to predict the pressure applied on human limbs from force/torque sensed at the robot's end effector.
Input: Past three force vectors from the end effector Output: Pressure map on the human arm Validation: Follow-up work compares with real pressure data from real-world measurements
Extending to other activities of daily living
The simulation framework extends to:
Drinking assistance
Bed bathing
Feeding
General manipulation of human limbs
Exoskeleton control for fall prevention
Goal: Use exoskeletons (assistive walking devices) to predict and prevent falls using on-board sensors and actuators.
Steps:
Build walking policy — Create a virtual human that walks with the exoskeleton device, validated against biomechanical data
Train fall detector — Use the virtual human to collect training data, including many fall examples (impossible with real humans)
Train recovery policy — Use the virtual human to find optimal actions for the exoskeleton to modify gait when a fall is detected (make gait wider, quicker steps)
Exoskeleton constraints:
Maximum torque: approximately 25-30 Newton-meters (capped for safety)
Control frequency: limited to 15 Hz (cannot change torque too quickly)
Status: This work is still in simulation; real-world testing is the next step.
Conclusion
Computer graphics has achieved impressive results in creating virtual life visually, but generating realistic and naturally intelligent human behavior remains challenging. To move beyond having a real person behind every digital human (the "Wizard of Oz" problem), virtual humans must be reimagined as autonomous agents that can perceive and interact with the world on their own, not as digital puppets.

Ask anything
We've read this whole study set, so questions about it get the best answers.