Term
latent variable
Meaning
An unobserved variable, usually denoted z, that a generative model samples from a simple prior before generating an observation. It captures the hidden structure behind a datapoint, so that the model can settle high-level choices before it assigns values to individual dimensions.
How papers use it 6 papers
Tutorial on Variational Autoencoders
Use In the VAE, the latent variable z is drawn from a standard normal distribution N(0, I) and mapped through the decoder to produce the observed data. The paper gives handwritten digits as an example, where a latent value could encode digit identity, angle, or stroke width. The paper does not require these meanings to be assigned by hand, and the network is left to learn whatever latent structure helps reproduce the training data.
Social GAN: Socially Acceptable Trajectories with Generative Adversarial Networks
Use Each generated trajectory is conditioned on a latent variable z sampled from a standard normal distribution.
Meaning An input noise vector that a generator maps to an output sample.
Generating Sentences from a Continuous Space
Use Denoted z in the VAE, it is the hidden code that the LSTM decoder is conditioned on. Word dropout pushes the decoder to rely on z for predictions, and the KL term measures how much information z carries. Samples drawn from the Gaussian prior are decoded greedily to produce sentences in the generation experiments.
Meaning A continuous global variable attached to a sentence-level model, which carries a distributed summary of a whole sentence. The decoder conditions on it, so it can hold holistic features such as topic and syntax.
Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks
Use In RAG, the retrieved document is the latent variable. Because no supervision is given on which document should be retrieved, the model marginalizes over the top-K retrieved documents. RAG-Sequence uses one document for the whole output, while RAG-Token allows a different document for each target token.
Meaning A hidden variable that is not observed in the training data and is summed out, or marginalized, to obtain the probability of an observed output. Its distribution is computed over the possible values, weighted by their probabilities.
Self-Consistency Improves Chain of Thought Reasoning in Language Models
Use Introduced by self-consistency as the reasoning path ri of the i-th sampled output, which is coupled to the final answer ai. Because ri is latent, it is marginalized out and the answer selection depends only on the ai values.
Meaning A variable that is not observed directly but is inferred from the model output and influences another variable. In a probabilistic model it is integrated or summed out when the observed quantity is computed.
Glow: Generative Flow with Invertible 1x1 Convolutions
Use Serves as the latent code of images in the qualitative experiments. Real images are encoded into latent codes, and linear interpolation between these codes produces intermediate faces that stay realistic. The same latent space is used for attribute manipulation by shifting codes along attribute directions.
Meaning The unobserved variable z of a flow-based generative model. It has a simple tractable prior density, for example a spherical Gaussian. Samples are drawn from this prior and mapped to data by the invertible transformation, while inference maps a datapoint back to its latent code through the inverse transformation.