Parallel Decision-Making yields Disentangled World Models: Impact and Implications

Pantelis Vafidis, Aman Bhargava, Antonio RangelNeuroAI @ NeurIPS 2024

TL;DR

This paper proposes that disentangled, interpretable representations—crucial for out-of-distribution generalization—emerge naturally when agents (biological or artificial) solve multiple decision-making tasks in parallel. By framing these tasks through the lens of Bayesian filtering and demonstrating their effectiveness in both RNNs and Transformers, the authors offer a compelling explanation for how the brain might learn such representations and suggest implications for building more robust AI.

What Problem Does This Paper Address?

The core challenge this paper tackles is understanding how systems, particularly the brain, achieve robust out-of-distribution (OOD) generalization. Humans and animals effortlessly adapt to new situations by leveraging past experiences and internal "world models." Modern AI, especially foundation models, also exhibit emergent OOD capabilities. A key hypothesis for this generalization ability is the use of "disentangled" or "abstract" representations, where different underlying factors of variation in the world are represented independently. However, the precise mechanisms by which these disentangled representations arise, especially in complex, noisy environments, remain an open question. The paper aims to bridge this gap by showing how solving multiple, parallel decision-making tasks can mathematically and empirically lead to such representations.

Methods

The authors build upon theoretical work (Vafidis et al., 2024) that establishes mathematical conditions for disentanglement. The core idea is that when an agent must solve multiple classification tasks simultaneously, each based on a subset of underlying latent variables, and these tasks require aggregating noisy evidence over time, the resulting internal representations tend to become disentangled.

Specifically, they consider canonical cognitive neuroscience tasks where a ground truth vector $x^*$ (representing different options or attributes) is sampled. The agent receives a noisy, non-linearly transformed version of $x^*$ and must predict binary outcomes for several classification boundaries. The key is that these tasks are solved in parallel, meaning the agent's internal state must integrate information relevant to all tasks simultaneously.

They then experimentally validate these ideas using:

  • Recurrent Neural Networks (RNNs) and LSTMs: These architectures are well-suited for processing sequential, noisy data.
  • GPT-2 Transformers: These models are also tested to see if they exhibit similar disentanglement properties, given their success in various domains.

The evaluation of disentanglement involves training linear decoders on a subset of the learned representations to predict the ground truth, and then testing their performance on unseen data (OOD generalization). They also analyze the orthogonality of the learned latent factors, a key indicator of disentanglement.

Datasets

The paper does not rely on standard, large-scale datasets in the typical machine learning sense. Instead, it uses synthetically generated data based on the described canonical cognitive neuroscience tasks. These tasks involve sampling ground truth vectors $x^*$ and generating noisy inputs $X(t)$ to train and evaluate the models. The "dataset" is thus constructed to specifically test the hypothesis about disentanglement arising from multi-task learning and evidence aggregation.

Key Insights and Ideas

  • Disentanglement as a Natural Consequence of Parallel Decision-Making: The most significant insight is that disentangled representations aren't necessarily explicitly engineered but can emerge as an optimal solution to the problem of making multiple, related decisions under uncertainty, especially when those decisions are processed in parallel.
  • The Crucial Role of Noise: Counter-intuitively, the paper highlights that noise in the input observations is necessary for guaranteeing the emergence of optimal, disentangled representations. This suggests that noise forces the system to learn more robust and separated representations to overcome ambiguity.
  • Topology Preservation: The learned representations not only disentangle factors but also preserve the "topology" of the real world. This means that similar underlying states in the world map to similar representations, even without explicit training for this property.
  • Transformers Excel at Disentanglement: GPT-2 models show a remarkable ability to achieve disentanglement with fewer tasks ($N_{task} \ge D$) compared to RNNs ($N_{task} \gg D$), suggesting their architecture is particularly well-suited for learning abstract world models.
  • Consistency Across Individuals: The theoretical framework implies that if agents face similar problems and aggregate evidence in parallel, they are likely to converge on similar, aligned representations, offering a potential explanation for the consistency of representations across individuals.

Key Results

  • Mathematical Conditions for Disentanglement: The paper provides theoretical conditions under which optimal multi-task classifiers learn abstract and disentangled representations, particularly when the number of tasks ($N_{task}$) significantly exceeds the dimensionality of the latent factors ($D$).
  • Empirical Validation: Both RNNs and GPT-2 models trained on multi-task learning paradigms demonstrated improved OOD generalization. This improvement correlated with the number of tasks, with the generalization gap decreasing as $N_{task}$ increased.
  • Orthogonal Latent Factors: For RNNs, latent factors become approximately orthogonal when $N_{task} \gg D$. For GPT-2 models, this orthogonality is achieved much earlier, with $N_{task} \ge D$.
  • Topology Preservation Demonstrated: Figure 1d visually shows how RNN activity forms a continuous attractor that preserves the topology of the state space, with nearby trials mapping to nearby trajectories.
  • Multi-task Learning Advantage: The study shows that multi-task learning scales linearly with the dimensionality of the latent variables ($D$), offering a significant advantage over previous mechanisms that scaled exponentially with $D$.

Limitations and Future Work

  • Synthetic Tasks: The experiments are conducted on synthetic, canonical tasks. While these are designed to be representative, extending the findings to more complex, real-world datasets and tasks is a natural next step.
  • Definition of Disentanglement: The paper discusses the broader definition of disentanglement, moving beyond strict axis-alignment, and suggests that the community should adopt this more holistic view. Future work could explore the implications of this broader definition further.
  • Transformer Architectures: While GPT-2 shows promise, exploring other transformer variants and their specific contributions to disentanglement is an area for future research.
  • Path-Integration vs. Abstract Representations: The paper notes a distinction between the toroidal attractors used in path integration and the 2D sheet attractors learned here, suggesting that understanding the conditions under which each emerges is an open research question.
  • Interleaved Learning: The authors briefly mention exploring "slow, interleaved learning" as an alternative to multi-task learning, which could be a fruitful direction for future work.

Summary updated

BibTeX
@inproceedings{vafidis2024parallel,
  author = {Pantelis Vafidis and Aman Bhargava and Antonio Rangel},
  title = {{Parallel Decision-Making yields Disentangled World Models: Impact and Implications}},
  booktitle = {NeuroAI @ NeurIPS},
  year = {2024},
  url = {https://openreview.net/forum?id=LWPoA68TFT},
}
Figure