When generative models process complex data, they often struggle to balance broad, overarching structures with fine-grained variations. In a standard flat latent variable model, a single representation vector must encode everything: the general style of a dataset, the specific task constraints, and the unique noise of an individual data point.
This overloading creates a fundamental tension. If the model focuses too heavily on global patterns, it loses the ability to capture instance-specific nuances. If it overfits to local details, it fails to generalize across related tasks or groups.
Global-local latent decomposition resolves this tension by splitting the latent space into a hierarchy. A global latent variable captures task-wide statistics, group-level traits, or shared context across multiple samples. Meanwhile, local latent variables handle instance-specific variations or component-level details. By separating these factors, the model can share knowledge across an entire ensemble while precisely tailoring its predictions to individual data points.
The Generative Mechanism
Instead of treating global and local factors as independent, hierarchical models structure the generative process so that the global context guides or modulates the local variables.
A foundational realization of this approach is found in the work on the "Neural Statistician" by Edwards et al. in Towards a Neural Statistician. The authors introduce a statistic network that pools information across an entire dataset to infer a global context variable. Individual data points are then generated by conditioning local latent variables on this global summary statistic, creating a coherent hierarchical dependency.
[ Data Group / Task Context ] ──> ( Global Latent Variable )
│
▼
( Local Latent Variables ) ──> [ Individual Data Points ]
Building on this concept, Artés-Rodríguez et al. developed the UG-VAE framework in Unsupervised learning of global factors in deep generative models. Here, the global latent variable directly modulates the parameters of a mixture model prior for the local variables. This allows the global variable to organize local features into distinct, interpretable clusters representing group-level characteristics without requiring explicit labels.
In dialogue systems, a similar hierarchical structure is leveraged by Cai et al. in PCVAE: Generating Prior Context for Dialogue Response Generation, where discrete "prior contexts" act as global switches to guide continuous local variables, preventing the generation of generic responses.
Mitigating Forgetting and Data Scarcity
The separation of global and local factors proves exceptionally powerful in multi-task learning, meta-learning, and continual learning, where data scarcity and interference are persistent challenges.
In Neural Processes (NPs), traditional architectures rely on a single global representation to capture a functional mapping. However, Wang et al. demonstrate in Doubly Stochastic Variational Inference for Neural Processes with Hierarchical Latent Variables that adding auxiliary local latent variables for each target point significantly improves multi-output regression and out-of-distribution detection. The global variable maps the general shape of the function, while the local variables absorb instance-specific noise.
When extending this to multi-task settings, Kim et al. in Multi-Task Processes and Shen et al. in Episodic Multi-Task Learning with Heterogeneous Neural Processes show that a two-level latent structure allows models to effectively transfer knowledge between correlated tasks. The global latent captures shared cross-task correlations, enabling accurate predictions even when a specific task has missing data.
This partitioning also acts as a safeguard against catastrophic forgetting. In NPCL: Neural Processes for Uncertainty-Aware Continual Learning, Jha et al. isolate unique task details within task-specific latent variables while maintaining a shared global variable for common features. This prevents new task updates from overwriting previously learned skills, balancing the transfer of general features with the preservation of task-specific details.
Compositionality and Disentanglement
Real-world data is inherently compositional; complex scenes or systems are built from individual parts influenced by environmental factors. Global-local decomposition provides a natural mathematical framework for parsing these structures.
For instance, Sebag et al. demonstrate in From abstract items to latent spaces to observed data and back: Compositional Variational Auto-Encoder how composite data points can be broken down into a set of local latents for individual components and a single global latent that captures non-linear interactions or external factors affecting the entire ensemble.
Similarly, Sorrenson et al. show in Disentanglement by Nonlinear ICA with General Incompressible-flow Networks (GIN) that volume-preserving networks can automatically partition latent spaces into global factors affecting the entire sample (like stroke thickness in character recognition) and local factors influencing specific regions (like the curvature of a single line segment).
This principle extends to nonstationary physical systems and structured text processing:
- Nonstationary Systems: Bitzer et al. show in Hierarchical-Hyperplane Kernels for Actively Learning Gaussian Process Models of Nonstationary Systems that a global nonstationary model can be constructed as a weighted sum of independent local Gaussian Processes, where gating functions along a hierarchical path determine each local model's contribution.
- Word Sense Induction: Komninos et al. apply this hierarchy to automatically discover word meanings in Structured Generative Models of Continuous Features for Word Sense Induction by organizing global, local, and syntactic contexts into a structured generative process.
- Cross-Lingual Summarization: Liang et al. demonstrate in A Variational Hierarchical Model for Neural Cross-Lingual Summarization that decomposing a complex task into specialized sub-tasks (represented by local latents) and integrating them into a global latent variable yields state-of-the-art performance in data-scarce scenarios.
- Linguistic Typology: Tsai et al. show in Modeling the Relationship among Linguistic Typological Features with Hierarchical Dirichlet Process that a hierarchical distribution sharing mechanism successfully captures both universal global tendencies and localized geographic clusters across languages.
Key Foundational Work
Structured Generative Models of Continuous Features for Word Sense Induction (2016) — contributed 1 concept elements to this direction.
Modeling the Relationship among Linguistic Typological Features with Hierarchical Dirichlet Process (2009) — contributed 1 concept elements to this direction.