The dream of artificial intelligence has long been the "generalist" model—a single neural network capable of performing any task, from identifying a tumor in an MRI to summarizing a legal brief. However, the path to these foundation models is blocked by a fundamental trade-off: training a monolithic model on dozens of tasks simultaneously is prohibitively expensive, and often, learning one task actively degrades performance on another—a phenomenon known as "negative transfer."
To circumvent these barriers, researchers are moving away from training massive, all-in-one models from scratch. Instead, they are developing techniques to build unified systems by composing, merging, and routing between specialized modules.
The Problem with Monolithic Training
In traditional multi-task learning, a single backbone is trained on a mixture of datasets. As Benyuan Sun and colleagues note in GPPF, this approach is notoriously difficult because different tasks (like object detection vs. pixel segmentation) require different data formats and optimization objectives.
Beyond the engineering headache, the computational cost is staggering. Hao Li highlights in Uni-Perceiver v2 that training these generalists requires massive GPU clusters to manage simultaneous optimization. Furthermore, Baijiong Lin points out in BYOM that the original training data for specialized tasks is often private or lost, making it impossible to retrain everything together even if you had the compute.
Building via Model Merging
One of the most promising shifts is toward Model Merging—the art of combining multiple pre-trained "expert" models into one without any additional training.
In BYOM, Baijiong Lin and his team demonstrate that you can inject compressed, task-specific knowledge into a shared base model. This "data-free" approach achieves near single-task performance at a fraction of the cost. Taking this further, Kehao Zhang introduced PSO-Merging, which uses Particle Swarm Optimization to find the perfect mathematical "blend" of weights between models like Llama-3 and Mistral.
The intuition here is that specialized models often inhabit similar regions of the parameter space. By finding the right interpolation, we can create a multi-tasker that inherits the strengths of its parents without the "catastrophic forgetting" that occurs during sequential fine-tuning.
Sparsity and Intelligent Routing
If merging is about blending weights, Mixture of Experts (MoE) is about choosing which weights to use for a specific input. Instead of activating the entire network for every query, these models use a "gating" mechanism to route data to the most relevant sub-networks.
Hongyang Du and Guangyuan Liu applied this to wireless network optimization in Mixture of Experts for Network Optimization, using a Large Language Model (LLM) as the intelligent gatekeeper. Similarly, Tianxiang Sun developed MP$^2$, which pre-trains "modular prompts" across dozens of tasks. A router then selectively combines these prompts to solve new, unseen tasks with extreme efficiency—sometimes tuning as few as eight parameters.
This modularity solves the "negative transfer" problem: if two tasks are contradictory, the router simply sends them to different experts, preventing their gradients from clashing during training.
Strategic Sharing and Task Affinity
Not all tasks are equally different. Some, like depth estimation and semantic segmentation, share a fundamental understanding of scene geometry. Simon Vandenhende and Stamatios Georgoulis explored this in Branched Multi-Task Networks. They use Representation Similarity Analysis (RSA) to calculate "task affinities."
By grouping similar tasks into shared branches and splitting dissimilar ones into task-specific paths, they create architectures that maximize a fixed parameter budget. This ensures that the model shares features where it helps (synergy) and separates them where it hurts (interference).
Unifying the Task Language
Finally, for these modular systems to work, the tasks themselves must be "spoken" in a common language. Jinlan Fu and Pengfei Liu demonstrated this in Polyglot Prompt by reformulating diverse NLP tasks—from sentiment analysis to question answering—into a single sequence-to-sequence format.
In the vision domain, Hao Li used a similar philosophy in Uni-Perceiver v2, treating every task as a "similarity-matching" problem. When tasks share a common mathematical framing, it becomes much easier for a single set of parameters (or a merged set of experts) to generalize across them.
The Path Forward
The research direction is clear: the future of generalist AI is not a single, massive, monolithic training run. Instead, it is a modular ecosystem where specialized experts are trained independently and then intelligently merged or routed. As Yuanyi Wang shows in Model Merging Scaling Laws, these merging techniques are becoming a predictable engineering discipline, allowing us to build versatile models at a fraction of the traditional cost.