Continuous control

Also known as: continuous action control

On this page 7

Continuous control is the class of problems in reinforcement learning where an agent must select real-valued actions from a continuous action space, such as joint torques, motor voltages, throttle positions or steering angles, instead of choosing from a finite list of discrete moves. It is the natural formulation for robotics, autonomous vehicles, process control and physical simulation, and it is also called continuous action control.

The setting matters because many standard algorithms assume a small set of actions. Methods such as Q-learning and the Deep Q-network pick the action with the highest value by enumerating every option, which is impossible over infinitely many actions. Continuous control therefore relies on policy gradient and actor-critic methods that output actions directly.

How continuous control is formulated

A continuous control task is a Markov decision process whose action space is a bounded region of real numbers, typically a box such as [-1, 1] in each of n dimensions. At each time step the agent observes a state, often joint angles, velocities and contact forces, outputs a vector of actions, and receives a reward that encodes the goal, for example forward speed minus an energy penalty.

Control frequencies are usually between 20 and 1,000 hertz, and episodes can contain thousands of steps. Because small action errors compound over time, continuous control is highly sensitive to credit assignment, reward design and the timing of observations. The table below compares the main design dimensions with discrete control.

AspectDiscrete controlContinuous control
Action spaceFinite set of choicesReal-valued vectors in a range
Action selectionArgmax over Q-valuesPolicy network outputs action directly
Typical policySoftmax or epsilon-greedyGaussian or deterministic output
ExplorationRandom action choiceAdded noise or entropy bonus
Typical domainsBoard games, AtariRobotics, locomotion, driving
Continuous control compared with discrete control

Policy representations for real-valued actions

The policy must map states to continuous action vectors, and two representations dominate. A stochastic Gaussian policy outputs a mean and a standard deviation for each action dimension and samples from that distribution, which supports exploration and gives well-defined log-probabilities for policy gradients. A deterministic policy outputs a single action and relies on externally added noise to explore.

Because physical actuators have limits, actions must be bounded. Implementations either clip sampled values or apply a tanh squashing function and correct the log-probability accordingly. Clipping is simple but distorts the gradient near the limits, which is why squashed Gaussian policies became standard in maximum entropy methods.

Main algorithms for continuous control

Most modern continuous control algorithms are actor-critic methods: an actor network proposes actions and a critic network estimates their value to guide improvement. They differ in whether they learn on-policy or off-policy, which determines sample efficiency and stability.

AlgorithmPolicy typeLearning styleKey idea
Deep deterministic policy gradientDeterministicOff-policyCritic gradient guides the actor
TD3DeterministicOff-policyTwin critics reduce overestimation
Soft actor-criticStochastic, squashedOff-policyMaximizes reward plus entropy
Proximal policy optimizationStochastic GaussianOn-policyClipped updates keep steps small
Trust region policy optimizationStochastic GaussianOn-policyKL constraint on each update
Widely used continuous control algorithms

Off-policy methods such as soft actor-critic reuse past transitions through experience replay, which makes them preferred when data is expensive, as on real robots. On-policy methods such as proximal policy optimization discard old data but scale well across thousands of parallel simulators, a common setup for training locomotion policies in GPU-based physics engines.

Model-based reinforcement learning offers a third route. The agent learns a dynamics model of the environment and plans or trains the policy inside it, which can reduce real-world interaction substantially but risks exploiting model errors that do not exist in reality.

Benchmarks and practical setup

Research on continuous control is measured on standardized simulated benchmarks, most of them built on physics engines such as MuJoCo. Typical tasks include running humanoids, robotic arms reaching or grasping objects, and dexterous in-hand manipulation.

Practical success depends on details that papers often treat as secondary. The following decision table summarizes common configuration choices.

SituationRecommended choiceReason
Expensive real-world dataSoft actor-critic or TD3High sample efficiency through replay
Massively parallel simulationProximal policy optimizationStable and easy to scale
Different action unitsNormalize actions to [-1, 1]Balances gradients across dimensions
Varying observation scalesRunning observation normalizationStabilizes network training
Policy for real hardwareDomain randomization in simulationNarrows the sim-to-real gap
Configuration choices in continuous control

Challenges and common mistakes

Continuous control remains difficult because high-dimensional action spaces make exploration expensive and because policies that look excellent in simulation often fail on physical hardware. The most frequent problems are listed below.

  • Sim-to-real gap: friction, latency and sensor noise differ from the simulator, so policies break on transfer.
  • Jerky actions: unconstrained policies switch rapidly between extremes, which can damage motors; action smoothing penalties help.
  • Reward hacking: agents find unintended gaits or exploits of the physics engine that maximize reward.
  • Q-value overestimation: deterministic actor-critic methods overrate actions unless twin critics or target smoothing are used.
  • Seed sensitivity: results vary strongly across random seeds, so reliable comparisons need multiple runs and confidence intervals.

Safety is a further concern on real systems. Safe reinforcement learning adds constraints on joint limits, forces or speeds, and many teams pretrain with behavior cloning from demonstrations before fine-tuning with reinforcement learning, which reduces risky exploration.

In plain words

Some decisions are like choosing a door: left, middle or right. Others are like turning a steering wheel, where any angle is possible. Continuous control is about teaching a computer the second kind of decision.

A robot arm does not just choose to move or stay. It must decide exactly how hard to push each joint, many times per second. The learning system practices, gets feedback, and slowly finds smooth, precise movements. That is how robots learn to walk or grasp objects.

A real-world example

A warehouse robotics team wants a quadruped robot to walk over uneven floors. Each of its 12 joints receives a target position at 50 hertz, so the policy outputs a 12-dimensional continuous action vector at every step. Training on the physical robot would take months and risk damage, so the team trains in simulation instead.

The engineers run 4,096 simulated robots in parallel on one GPU and train with proximal policy optimization for about one day. They randomize friction, body mass and motor delays so the policy does not depend on exact simulator settings. The resulting policy transfers to the real robot without further training, walks over ramps and loose mats, and reduces falls compared with the previous hand-tuned controller.