In machine learning, we often face a "monolith problem." When we want a robot to see, hear, and speak, or when we want an image generator to render multiple specific objects, our instinct is to build one massive, end-to-end model. But these monolithic architectures are brittle: they are difficult to train, impossible to debug, and require starting from scratch every time a new sensor or concept is added.
A growing body of research suggests a more scalable alternative: building complex systems by composing independent, specialized generative modules. Instead of one "uber-model," researchers are creating frameworks where heterogeneous models—ranging from classical Bayesian networks to modern diffusion models—can be plugged together like LEGO bricks.
The Problem with Monoliths
Traditionally, if you wanted a robot to understand the world, you might use a large-scale Bayesian model. However, as Tomoaki Nakamura, Tadahiro Taniguchi, and Takayuki Nagai point out in SERKET: An Architecture for Connecting Stochastic Models to Realize a Large-Scale Cognitive Model, the math for these models becomes exponentially harder to derive as you add more sensors. If you change one part of the model, the global equations for the entire system often break.
This isn't just a robotics problem. In image generation, if you try to merge two different fine-tuned models (like one for a specific cat and one for a specific chair), the concepts often "bleed" together, resulting in a cat-chair hybrid rather than a cat sitting on a chair.
Composition via Probabilistic Interfaces
The core insight of this research direction is to treat each model as a module with a probabilistic interface. Instead of sharing internal weights, modules share information through the language of probability distributions.
In the SERKET framework, individual modules are programmatically independent. You can develop a vision module and a language module separately; as long as they can pass messages about their uncertainty to one another, they can be optimized together. Tadahiro Taniguchi and colleagues extended this in Neuro-SERKET, showing that you can even mix "deep" models like Variational Autoencoders (VAEs) with "classical" statistical models. This allows a robot to use neural networks for messy visual data while using structured Bayesian models for high-level reasoning.
Mixing Heterogeneous Architectures
One of the most powerful aspects of modular composition is the ability to use the "right tool for the job." Not every data type is best served by the same architecture.
In Decision Stacks, Siyan Zhao and Aditya Grover demonstrate this for reinforcement learning. Instead of one policy network, they decompose the agent into a chain of modules:
- A Diffusion model to predict complex, continuous future observations.
- A Transformer to handle discrete action sequences.
- A specialized estimator for rewards.
By chaining these different architectures, the system outperforms monolithic agents that struggle to represent continuous and discrete data simultaneously. Similarly, Noah Goodman and Mike Wu showed in Multimodal Generative Models for Compositional Representation Learning that combining VAEs (for discrete data) and GANs (for continuous data) within a single framework forces the model to learn more abstract, "compositional" representations of the world.
Inference-Time Integration
Perhaps the most practical application of this idea is in the world of personalized AI. Users today have access to thousands of "mini-models" (like LoRAs or DreamBooth weights) that teach a generator a specific person, style, or object.
The $MC^2$ framework, developed by Jiaxiu Jiang, Yabo Zhang, and others in MC2: Multi-concept Guidance for Customized Multi-concept Generation, allows these heterogeneous assets to run in parallel during a single image generation. Instead of retraining a model to know both "Concept A" and "Concept B," the framework uses inference-time optimization to "disentangle" the attention maps of the different modules. This ensures that each concept stays in its own lane, enabling the seamless combination of community-sourced assets without any joint training.
Why It Works: Decoupling and Robustness
The reason this approach works is fundamentally about decoupling.
In pandemic modeling, George Nicholson and colleagues argue in Interoperability of statistical models in pandemic preparedness that modularity provides a "middle ground" between isolated models and fragile "uber-models." By "cutting the feedback" between modules, researchers can prevent errors in one part of the system (like messy hospital data) from contaminating the entire model (like national policy forecasts).
Whether it is Feras Saad and Vikash Mansinghka using composite networks to combine structure learning with domain knowledge in A Probabilistic Programming Approach To Probabilistic Data Analysis, or Raunak Sinha creating a drag-and-drop interface for GAN components in AuthorGAN, the goal is the same: to move away from rigid, monolithic engineering and toward a flexible, interoperable ecosystem of generative parts.