The World Is Not a Function: Why AI Needs Latent Modeling
中文版:世界不是一个函数:为什么人工智能需要潜变量建模 - 知乎
Much of modern artificial intelligence is built around a simple mathematical idea: learning a function that maps an input to an output. This approach has been remarkably successful in many applications, from image recognition to language generation. Yet it does not fully capture how variables in the real world relate to one another.
In many real-world problems, the same input can correspond to multiple distinct and equally valid outputs. This diversity is not necessarily noise or an imperfection in the data. It is often an intrinsic property of the problem itself.
Learning from such data requires more than finding an accurate deterministic mapping between observed variables. It requires a way to represent the unobserved dimensions along which these variables can vary. This is the central motivation for latent modeling, and why solving the general latent modeling problem could be the next major step in artificial intelligence.
1. The Fundamental Limitation of Functional Modeling
1.1. The Fundamental Assumption Behind Machine Learning
The conventional formulation of machine learning is to learn a function:
y = f(x)
Given a collection of input-output pairs, we optimize the parameters of a model so that its predictions approximate the observed outputs. Regardless of whether the model is a linear regression, a convolutional neural network or a Transformer, a deterministic prediction under this formulation assigns a single output to each input.
This formulation works well when the relationship between input and output is unambiguous. However, when the same input corresponds to multiple valid outputs, the model faces a fundamental limitation.
Consider a dataset in which a particular input x corresponds with equal probability to two outputs, −1 and 1. A model trained to minimize squared error will predict 0. This prediction minimizes the average error, yet it is not a valid output in the original data.
More generally, minimizing mean squared error leads to an estimate of the conditional expectation:
f*(x) = E[Y | X = x]
When the conditional distribution contains multiple distinct modes, its expectation may not belong to any of them. This limitation was discussed by Christopher Bishop as early as 1994 in his work on Mixture Density Networks, which demonstrated the problem in robot inverse kinematics.
The difficulty is not necessarily that the model lacks parameters, training data or computational resources. It is that a deterministic function is mathematically incapable of representing multiple outputs for the same input.
1.2. Output Diversity as an Intrinsic Property of the World
One-to-many relationships are common across both the digital and physical worlds.
Consider a robot arm that needs to reach a particular position. Depending on its configuration, there may be several combinations of joint angles that allow it to reach the same position. All of these configurations can be correct. Averaging them, however, may produce a configuration that fails to reach the target.
Similar examples exist across many domains:
- Language generation: The same question can have several correct answers expressed through different reasoning processes and linguistic structures.
- Engineering design: The same product requirements can be satisfied by different mechanical structures, materials and component arrangements.
- Industrial control: The same initial state and target state can be connected by different sequences of control signals, each with different energy consumption and execution time.
- Scientific modeling: Different configurations of a physical system may produce the same observable measurements.
In each example, output diversity carries information about the structure of the problem. It reflects different possibilities permitted by the relationships between variables.
Treating such diversity as noise means discarding information. Selecting only the most common output means learning only part of the problem. Averaging different outputs may produce something that is not valid at all.
The world is not always a function of the variables we observe.
1.3. How Human Scientists and Engineers Resolve Output Ambiguity
Human scientists and engineers have long dealt with this problem, although often without explicitly describing it as a modeling limitation.
A common approach is to introduce additional assumptions, constraints and preferences until an ambiguous relationship becomes a well-defined mathematical problem. A particular mode of the possible outputs is then selected and represented in functional form.
Consider the design of a bridge. Given a required span and load capacity, there are many possible structural designs. An engineer may select a particular structural form, specify the materials, impose construction constraints and establish a cost objective. These decisions reduce the original design space to a much narrower mathematical problem.
Similarly, a control engineer may construct a controller by specifying a system model, a control strategy and an objective function. Among the many possible control trajectories, the resulting controller favors those that satisfy the engineer's mathematical formulation.
This process can be expressed as:
f(x) = arg miny ∈ 𝒴(x) J(y, x)
where 𝒴(x) represents the set of feasible outputs and J(y, x) represents a human-defined objective. With an appropriate selection rule, a diverse set of possibilities can be reduced to a single output.
The resulting function does not necessarily describe the entirety of the original relationship. It describes a particular resolution of its ambiguity.
Much of traditional engineering can therefore be understood as a process in which humans organize the diversity of the world into mathematically tractable problems. Human knowledge is embedded in the choice of variables, assumptions, constraints and objectives.
This approach has been highly successful. However, it also raises an important question for artificial intelligence: can a machine learn the diverse relationships directly from data, rather than requiring humans to resolve their ambiguity beforehand?
Answering this question requires a different approach to modeling.
2. Latent Modeling: Learning Beyond Observed Variables
2.1. Reformulating the Input-Output Relationship
A natural way to address output diversity is to introduce an additional variable into the mathematical formulation:
y = f(x, z), z ∼ 𝒟
Here, z is a latent variable sampled from a distribution 𝒟. Unlike x and y, the value of z is not directly provided by the observed data.
For the same input x, different values of z can produce different outputs. The original one-to-many relationship becomes a functional relationship in an expanded variable space.
| Conventional functional modeling | Latent modeling |
|---|---|
| x → f(x) → y | (x, z) → f(x, z) → yz z ∼ 𝒟 |
| One input, one output | One observed input, multiple possible outputs |
Returning to the robot arm example, the latent variable could encode different configurations of the arm. Instead of averaging these configurations or selecting one during training, the model can learn to generate multiple valid configurations for the same target position.
The purpose of introducing a latent variable is not simply to introduce randomness. It is to provide a mathematical space in which the model can represent the diversity observed in the data.
Probabilistic models without explicit latent variables can also learn conditional output distributions. Autoregressive language models are an example. However, representing the probability of different outputs is not the same as explicitly learning a latent space through which their variations can be represented, explored and controlled.
Latent modeling should therefore be understood as a modeling paradigm rather than a particular neural network architecture. A neural network architecture describes how a computation is performed. A modeling paradigm describes what mathematical relationships the model is intended to learn.
2.2. The Unsolved Challenges of Latent Modeling
Introducing a latent variable into a mathematical formulation is simple. Developing an algorithm that learns to use it effectively is much more difficult.
The first challenge is that latent variables are not directly observed. We have training data containing x and y, but we generally do not know which value of z should correspond to each observation. The model must organize the latent space through its training process.
Moreover, a meaningful latent representation cannot always be uniquely determined from observations alone. Locatello et al. (2019) demonstrated that learning disentangled latent representations without supervision requires additional assumptions about the model or the data.
The second challenge is preserving diversity. A model may learn to generate a subset of the training distribution while ignoring other possibilities. In extreme cases, different latent variables produce nearly identical outputs. This phenomenon is commonly known as mode collapse.
The third challenge is balancing diversity and quality. A model that generates highly diverse but invalid outputs is of little practical use. Conversely, a model that repeatedly generates the same high-quality output fails to capture the diversity of the original problem.
Consider an AI model for mechanical design. Generating hundreds of geometrically different structures is not useful if most of them violate physical constraints. Generating hundreds of nearly identical structures is equally limiting, even if every structure is valid.
The fourth challenge is scalability. A latent modeling algorithm that works on small datasets or low-dimensional variables does not necessarily work on complex systems involving millions of dimensions, large datasets or multiple data modalities.
An effective latent modeling method must address these challenges together. It must learn meaningful representations, preserve diversity, maintain output quality and scale to increasingly complex problems without making inference prohibitively expensive.
2.3. From Learning Functions to Modeling Problems
Once we introduce latent variables, we can reconsider another conventional assumption in machine learning: the separation between inputs and outputs.
In traditional functional modeling, the direction of inference is determined before training. A model learns to predict y from x. If we want to infer x from y, we generally need a different model or an additional optimization process.
However, the relationships between variables in the real world do not necessarily have a predetermined direction of inference.
Consider an air-conditioning system. We can identify three groups of variables:
- x: environmental conditions and initial system states.
- w: equipment settings and sequences of control signals.
- v: resulting energy consumption and temperature-control error.
A conventional predictive model might learn to predict v from x and w. A conventional control model might learn to produce w from x. These are treated as separate modeling tasks, even though they describe the same physical system.
An alternative is to model all three groups of variables jointly through a latent variable:
[v, w, x] = g(z), z ∼ 𝒟
This formulation, which we call Latent Problem Modeling (LPM), represents the relationships between the objective, solution and input of a problem within a common latent space.
| Latent variable: z ∼ 𝒟 ↓ Joint model: g(z) ↓ | ||
| v — Objective | w — Solution | x — Input |
|---|---|---|
| Energy / error | Control signals | System states |
With suitable inference algorithms, different tasks can then be performed within the same problem representation. Given environmental conditions and equipment settings, the model can predict energy consumption. Given environmental conditions and a desired outcome, it can search for suitable control signals. Given an optimization objective, it can explore multiple possible solutions.
The difference is that the model is no longer trained exclusively to perform a predefined input-output mapping. It is trained to represent the underlying relationships between variables that constitute a problem.
This approach has potential applications in engineering design, robotics, manufacturing and scientific discovery, where problem-solving often involves searching through a diverse space of possibilities.
3. Why Existing AI Paradigms Fall Short
3.1. The Limitations of Explicit Probabilistic Modeling
A natural response to the one-to-many problem is to replace a deterministic function with a conditional probability distribution:
p(y | x)
Instead of predicting a single output, the model learns to assign probabilities to different possible outputs given the same input. Although mathematically valid, this formulation introduces two fundamental concerns.
The first is computational tractability. As the dimensionality of the output increases, the space of possible outputs can grow exponentially. Explicitly modeling a normalized probability distribution over this space can quickly become computationally intractable.
Consider a robot that needs to execute a sequence of 100 actions, each with 10 possible choices. There are 10100 possible action sequences. Directly assigning and normalizing probabilities over all these sequences is computationally infeasible.
One way to address this problem is to decompose the joint probability into a sequence of conditional probabilities:
p(y | x) = ∏i=1n p(yi | x, y<i)
This is the approach adopted by autoregressive language models. While it makes probability modeling tractable, it introduces sequential dependencies into the generation process, limiting inference parallelism.
The second concern is more fundamental: intelligence does not necessarily require explicit probability estimation.
An engineer designing a mechanical structure does not need to enumerate every possible design and assign a normalized probability to each one before proposing a valid solution. Instead, the engineer uses accumulated knowledge to construct a candidate, evaluate its quality and explore alternatives when necessary.
Similarly, when a mathematician attempts to prove a theorem, the objective is to discover a valid proof, not to establish a probability distribution over all possible proofs.
This distinction is also reflected in the study of energy-based models (LeCun et al., 2006), which use unnormalized energy functions to represent compatibility between variables without necessarily constructing explicit probability distributions.
Probability is a useful mathematical tool for describing uncertainty and diversity. However, explicitly estimating a normalized probability distribution over the output space need not be a prerequisite for learning or problem-solving.
An alternative is to learn a mechanism that directly generates diverse and valid outputs without explicitly calculating their probabilities. Such a mechanism can implicitly represent a probability distribution while avoiding the need to evaluate or normalize it over the entire output space.
This shifts the modeling objective from estimating the probabilities of possible solutions to learning how to construct them.
3.2. The Limitations of Existing Generative Models
Latent modeling is not a new research direction. Several important approaches have been developed over the past decade, including:
- Variational Autoencoders (VAEs) — Kingma and Welling, 2013.
- Generative Adversarial Networks (GANs) — Goodfellow et al., 2014.
- Denoising Diffusion Probabilistic Models — Ho et al., 2020.
These approaches have demonstrated that complex data distributions can be learned through latent variables. However, two fundamental problems remain insufficiently resolved.
Scalability. Existing generative architectures have different limitations when applied to increasingly complex problems. GANs can suffer from training instability and mode collapse. VAEs can struggle to make effective use of their latent variables. Conventional diffusion models require iterative inference, which introduces computational costs.
There has been considerable progress in scaling individual architectures. For example, Scalable Diffusion Models with Transformers (Peebles and Xie, 2023) demonstrated that increasing computational capacity can systematically improve image generation. However, scaling a model within a particular data modality is different from establishing a general latent modeling method that scales across different types of data and problems.
The success of image generation does not automatically translate into the ability to model complex manufacturing systems, scientific experiments or industrial optimization problems.
Controllable diversity-quality balance. Another unresolved problem is how to reliably control the diversity of generated outputs while maintaining their quality.
In language models, sampling temperature and nucleus sampling are commonly used to adjust output diversity. Holtzman et al. (2020) demonstrated how different sampling strategies affect the diversity and coherence of generated text. In diffusion models, classifier-free guidance (Ho and Salimans, 2022) provides another mechanism for adjusting the trade-off between diversity and sample fidelity.
The relationship between diversity and quality has also been explored in non-autoregressive text generation. In Zhang and LeCun (2018), an adversarially trained autoencoder was developed to address mode collapse, alongside an evaluation method that accounts for both the quality and diversity of generated text.
These methods represent important progress. However, adjusting a sampling parameter is not equivalent to achieving precise control over the diversity and quality of outputs.
In engineering applications, we may want to generate solutions that are highly diverse in their structures but consistently satisfy physical constraints. In industrial control, we may want to explore substantially different control strategies while keeping energy consumption below a specified threshold.
A general latent modeling method should allow us to explore different regions of the solution space while maintaining explicit control over the quality of the solutions.
Existing AI paradigms have yet to demonstrate these capabilities together at a general and scalable level. Increasing model size, training data and computational resources alone does not establish a solution to this problem.
3.3. Why JEPA and Reinforcement Learning Miss the Fundamental Problem
Two other research directions often associated with the future of artificial intelligence are the Joint Embedding Predictive Architecture (JEPA) and reinforcement learning. Both address important problems, but neither directly resolves the fundamental latent modeling problem discussed in this article.
JEPA: Avoiding diversity rather than learning it.
In A Path Towards Autonomous Machine Intelligence (LeCun, 2022), JEPA was proposed as a framework for learning world models by making predictions in an abstract representation space rather than directly in the observed data space.
Its basic formulation can be expressed as:
sy = h(sx, z)
where sx and sy are learned representations of the observed variables, and z is an optional latent variable representing uncertainty.
One motivation behind JEPA is that information that is difficult to predict can be discarded through abstraction. For example, when predicting a future video frame, a model need not predict every pixel. It can instead predict the abstract states of the objects in the scene. The principle of prediction in representation space is demonstrated in I-JEPA (Assran et al., 2023).
However, there is a fundamental difference between eliminating unpredictable information and learning the diversity of possible outcomes.
Consider an AI system learning to design mechanical structures. Multiple structures can satisfy the same engineering requirements. A learned representation may remove the differences between these structures and retain only their common properties. This makes prediction easier, but the discarded differences may contain precisely the information needed to construct alternative solutions.
In many problem-solving scenarios, the information that is difficult to predict is not irrelevant. It is the information that describes the space of possible solutions.
JEPA's general formulation does accommodate latent variables to represent multiple plausible predictions. However, introducing these variables into the architecture does not itself solve the problem of learning them at scale, preserving diversity or controlling output quality.
From this perspective, making representations more predictable is not the right primary direction for solving the general latent modeling problem. The objective should be to learn and preserve meaningful diversity, rather than simplify prediction by removing it.
Abstraction is useful, but it cannot substitute for latent modeling.
Reinforcement learning: Optimizing rewards rather than learning feasibility.
Reinforcement learning formulates problem-solving as maximizing an expected cumulative reward:
maxπ Eπ[∑t=0T γt rt]
The central difficulty with this formulation is that the reward function becomes the primary criterion for evaluating possible solutions.
For reinforcement learning to reliably solve a problem, the reward function and environment together must adequately account for the consequences of the actions that the learning algorithm may explore. This creates a strong dependence on completeness in reward specification and environment modeling.
Consider an AI system designing a mechanical component. A reward function may encourage low weight, high strength and low manufacturing cost. However, there may be many additional constraints involving material properties, geometric compatibility, manufacturing processes and operating conditions.
Unless these constraints are explicitly enforced by the environment or the optimization process, the algorithm may explore and favor solutions that receive high rewards but are physically infeasible.
A related problem occurs in offline reinforcement learning. Fujimoto et al. (2019) demonstrated how maximizing estimated rewards can lead to the selection of actions that are poorly supported by the observed data, motivating the introduction of constraints on the action space.
This reveals a fundamental distinction between reward optimization and problem modeling. A reward function describes how desirable a solution is, but it does not necessarily describe whether the solution is feasible.
In latent problem modeling, the primary objective is to learn the relationships between objectives, solutions and inputs:
[v, w, x] = g(z)
Optimization can then be performed within the learned space of possible solutions. If the model accurately captures the relationships and constraints represented in the data, this can substantially reduce the exploration of infeasible solutions, although additional validation may still be necessary.
Rather than constructing a sufficiently comprehensive reward system and asking an algorithm to explore a broad action space, we can first learn the structure of the feasible solution space and subsequently search within it.
This is also closer to how human experts solve problems. An experienced engineer does not begin by randomly exploring all possible structures and rejecting those that fail. Previous knowledge provides a structured space of potentially feasible solutions, within which optimization and exploration take place.
Reinforcement learning remains useful for improving decisions through interaction and feedback. However, reward optimization is not a substitute for learning the underlying structure of a problem.
The three discussions in this section point toward the same conclusion. Explicit probabilistic modeling attempts to quantify diversity, JEPA can simplify prediction by abstracting away diversity, and reinforcement learning searches for desirable outcomes through reward optimization. None of these mechanisms, by itself, solves the general problem of learning, preserving and controlling the diversity of feasible solutions.
The fundamental challenge is to learn the space of possibilities itself.
4. Conclusion: The Next Fundamental Problem in AI
The success of modern artificial intelligence has demonstrated how much can be achieved by learning mathematical relationships from large amounts of data. However, the conventional formulation of these relationships as deterministic functions captures only part of the information contained in real-world observations.
Human scientists and engineers have traditionally resolved ambiguity by introducing assumptions, selecting preferred solutions and constructing functional mathematical systems. Artificial intelligence offers the possibility of learning these diverse relationships directly from data.
Latent modeling provides a mathematical foundation for doing so. It allows a model to represent multiple possibilities under identical observed conditions and provides a space in which these possibilities can be explored.
The next challenge is to develop latent modeling methods that are scalable, computationally efficient and capable of controlling the balance between diversity and quality. Solving this problem could expand the applications of AI well beyond the domains in which current models have been successful.
The next frontier of artificial intelligence may not be learning larger functions, but learning the diversity of the world that individual functions cannot express.
Comments
Post a Comment