AI Glossary / Probabilistic machine learning / Intermediate
Control as inference
Definition
Control as inference is a framework that expresses action selection as probabilistic inference in a model linking states, actions, dynamics, and preferences. In a common formulation, rewards become factors favoring desirable trajectories, connecting control with entropy-regularized reinforcement learning.
What it means
Ordinary control asks which actions achieve a goal. Probabilistic inference asks which unknown quantities are plausible given a model and information. Control as inference constructs a model in which desirable outcomes serve as the information being conditioned on, allowing inference tools to help choose actions.
This is a mathematical reformulation, not a claim that an agent has observed future success. The framework can produce a distribution over actions rather than a single choice. Its relation to ordinary expected-reward control depends on the formulation, the dynamics, and any entropy or prior-policy terms.
How it works
Describe how actions affect state transitions and define a reward or cost. Introduce factors that weight desirable state-action combinations, commonly using an exponential of a scaled reward. Some presentations express these through artificial binary “optimality” variables.
Infer action or trajectory distributions under the resulting model. A temperature parameter controls the balance between concentrating on high reward and retaining a broader action distribution. With a uniform action reference, familiar formulations lead to expected reward plus an entropy term.
Stochastic dynamics require care. Naively conditioning on desirable futures can reweight uncontrollable outcomes and produce unrealistic optimism. A structured variational formulation can hold the environment dynamics fixed while optimizing the policy. Thus exact posterior inference in an arbitrary reward-weighted model is not automatically the desired control solution.
Three practical examples
- Robot motion planning: rank or sample candidate action sequences under modeled dynamics and task preferences, while separately enforcing necessary physical constraints.
- Resource allocation research: formulate a distribution over feasible schedules that trades off performance and diversity, then evaluate the resulting policy in simulation.
- Reinforcement-learning algorithm design: derive soft value updates and stochastic policies by connecting reward optimization with probabilistic inference and entropy regularization.
Think of it this way
Think of a planner tracing backward from a desired destination to the routes that could reach it. The destination helps organize the possibilities. The analogy stops where chance intervenes: wanting a green traffic light cannot make it more likely. A control-as-inference formulation must avoid treating favorable random events as if the decision maker could choose them.
Worked example
Consider an original one-step problem with two available actions and a uniform action prior. Action A has reward 0; action B has reward −log(3). Use a temperature of 1 and an artificial likelihood P(O = 1 | action) = exp(reward).
The likelihoods are 1 for A and 1 / 3 for B. Multiplying by the equal priors and normalizing gives P(A | O = 1) = 3 / 4 and P(B | O = 1) = 1 / 4.
These are action probabilities induced by the constructed model. They are not claims that A has a 75% chance of being objectively optimal in the world. Both rewards are already specified in this toy problem.
At temperature 0.5, the factors become exp(reward / 0.5): 1 and 1 / 9. The normalized policy becomes 0.9 for A and 0.1 for B. Lower temperature concentrates the policy more strongly on the higher-reward action. A pure reward-maximizing decision would choose A, illustrating that the finite-temperature objective differs.
Illustrative case study
Fictional case: Maple Robotics tests a controller for moving a simulated cart through a warehouse. The initial inference formulation gives high weight to paths that succeed only when random obstacles conveniently disappear.
The team recognizes that obstacle behavior is not controllable. It revises the policy optimization so the environment dynamics remain fixed, then tests expected performance across repeated simulated conditions. It also retains explicit collision constraints. The case illustrates a modeling issue that a probabilistic reformulation must address; it does not claim a deployed robot result.
Common misconceptions and mistakes
An “optimality” variable is a modeling device, not a sensor reading or proof of successful behavior. Exponentiated rewards are unnormalized preference factors unless the construction ensures they form valid probabilities. A binary-likelihood interpretation needs appropriate bounds or shifts.
Control as inference is not merely using a Bayesian model to predict the next state. It reformulates the decision objective itself. Nor does entropy automatically represent uncertainty about the true best action: it can be part of the chosen control objective. Risk, constraints, and imperfect dynamics still require explicit treatment.
Business use
The framework is useful for understanding and designing decision systems that connect learned models, uncertain outcomes, and action preferences. It can help technical teams see which assumptions are implicit in an optimization algorithm.
For review, ask what distribution is being inferred, how rewards are encoded, and which quantities the agent is allowed to change. Compare performance against the actual business objective rather than only an inference loss. If randomness in actions is intended, explain its purpose and ensure it remains compatible with operating constraints.
People also ask
Is control as inference the same as ordinary reinforcement learning?
It provides a related formulation, often for an entropy-regularized objective. Equivalence requires specific assumptions and constructions.
Does it require knowing future outcomes?
No. It reasons within a model using specified preferences; it does not observe the future.
Why is stochastic dynamics a special concern?
Conditioning on success can favor lucky transitions. A suitable formulation must preserve the distinction between choosing actions and controlling environmental randomness.
Check your understanding
In the one-step example, both actions receive the same reward and have equal prior probability. What action distribution results?
Answer: Their preference factors are equal, so normalization gives probability 0.5 to each. This reflects the constructed model's symmetry, not evidence that either action is safe or suitable in every setting.
Related terms
- Maximum entropy reinforcement learning
- Probabilistic Graphical Model
- Policy
- reward function
- variational inference
- soft Bellman equation
- trajectory distribution
- optimal control
Learn next
Learn Markov decision processes and Bayesian conditioning, then reproduce the one-step example with different rewards and action priors. Next, compare deterministic and stochastic dynamics. Study the structured variational derivation to understand why the policy can change while environment transitions remain fixed.
More in Probabilistic machine learning
- Continuous-time normalizing flow - A continuous-time normalizing flow is a generative density model that transforms a simple probability distribution through an ordinary differential equation.
- Contractive autoencoder - A contractive autoencoder is an autoencoder trained to reconstruct its inputs while discouraging its encoded representation from changing sharply under...
- Contrastive divergence - Contrastive divergence, often abbreviated CD, is an approximate learning method for certain probabilistic models, especially energy-based models such as...
- Correlated topic model - A correlated topic model, or CTM, is a probabilistic topic model that uses a logistic-normal distribution for a document's topic proportions.
- Coupling flow - A coupling flow is a normalizing flow built from invertible coupling transformations.
- Covariance graph - A covariance graph is a graphical representation of marginal independence assumptions, commonly expressed through zeros in a Gaussian covariance matrix.
Sources
Sergey Levine, “Reinforcement Learning and Control as Probabilistic Inference: Tutorial and Review,” original tutorial, graphical-model formulation and stochastic-dynamics correction: https://arxiv.org/pdf/1805.00909 Independent source review: Levine sections 2–3 were read for optimality factors, entropy objective, stochastic optimism and fixed-dynamics correction.
Previous: Contrastive search Next: Control break