liveBook · Manning

Generation

As explained in Causal AI

A generative model is a model that represents a process for generating observations, typically by specifying a joint or conditional probability distribution.

Generation models a process for producing observations by representing a joint or conditional probability distribution. In a structural causal model, latent exogenous variables represent unmodeled causes, while assignment functions generate endogenous variables from their parents. section 6.1.6

Causal generation extends ordinary prediction by preserving a shared latent explanation of an observed case. Counterfactual generation first infers exogenous variables from factual observations, intervenes on the desired condition, and predicts the resulting outcome. section 9.1 section 9.5

A practical generation workflow follows three steps:

  • Abduction: infer the distribution of latent exogenous variables from observed endogenous variables. section 9.5
  • Action: implement the hypothetical condition as an ideal intervention or graph surgery. section 9.1
  • Prediction: sample hypothetical outcomes using the intervention and the latent distribution learned from the actual world. section 9.3.4

Semantic image editing

Given an image of a pirate-captain interpretation of Harriet Tubman, infer its latent representation, intervene to remove the concept of glasses, and generate a revised image. A causal representation aims to preserve features unaffected by that intervention while propagating downstream changes. section 9.4

Figure 9.16 Given the generated image on the left, the user might prompt the generative AI with the counterfactual question, “What would this image look like without the glasses?” They would expect something like the image on the right, where conceptual elements of the image not causally downstream of glasses removal should be unaffected.
figure

Compare the original generated image with its counterfactual edit and inspect which conceptual elements should remain unchanged. section 9.4

How Causal AI covers it

How deep it goes
Explains latent variables, assignment functions, and abduction-action-prediction, then demonstrates sampling without deriving model identification.
Examples
Demonstrates gaming outcomes, femur-length height inference, and semantic image editing with generated counterfactual artifacts.
What it assumes
Assumes structural causal models, directed acyclic graphs, interventions, and probability distributions while making the workflow explicit.
What you can do after
Builds counterfactual generators with Pyro or graphical models and evaluates generated outcomes against interventional distributions.
How it connects
Connects generation to structural causal models, latent variables, interventions, counterfactuals, variational inference, and deep learning.

Also explained in

Compare how 20 books explain generation →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Causal AI. The section links point to the parts of the book it draws on.