The Big Picture
Predicting which internal modules an agent will use from its system and task prompts lets you keep far fewer model parts per request while preserving or improving accuracy—especially when many different agents share one model.
ON THIS PAGE
Key Findings
A tiny predictor reads only an agent’s system prompt and task input and emits a per-request mask that keeps the right subset of model components for that turn. Those masks generalize to agents and workflows unseen in training and outperform traditional, one-size-fits-all pruning methods across benchmarks, model sizes, and MoE families. The benefit grows as you cut more components: where a fixed subset fails, per-request masks concentrate the budget on exactly what the agent needs and avoid degenerate failures. [The predictor is supervised from model transcripts (which experts actually contributed and how masking moves the output distribution)…] and is cheap at serving time—a single forward pass that lets the system hold a bounded set of experts resident for the turn. Evaluated at 50% and 25% retention on multiple discovered multi-agent workflows and across model scales (30B and 480B) and an alternate MoE family, the predictor outperformed static calibration and merging baselines, with the largest advantage at tight budgets. The takeaway for deployments is practical: a small upfront training cost yields request-specific specialization that reduces resident memory needs and preserves or improves accuracy when one backbone serves many different agent roles. MCP Pattern
Data Highlights
1Evaluated at two retention budgets: 50% (64 of 128 experts kept) and 25% (32 of 128 experts kept), showing DEP works across moderate and aggressive pruning levels.
2Tested across model scales and architectures, including 30B and 480B backbones and a different MoE family (DeepSeek-V2.5-236B), with consistent accuracy gains over static pruning.
3The mask predictor is small (0.5B encoder) and predicts masks in one forward pass; predicted masks show strong specialization (mask overlap near chance ≈ 0.33), confirming per-agent differences.
What This Means
ML engineers and infrastructure teams running multi-agent systems will get lower memory pressure without re-calibrating for every new agent or prompt. Product and platform leads evaluating agent reliability and orchestration can preserve accuracy while shrinking the active model footprint per request, enabling larger models to serve more agents. Researchers building sparse, modular models can use prompt-conditioned masking to study specialization and delegation effects. multi-agent systems
Avoid common pitfallsLearn what failures to watch for
Key Figures

Fig 1: Figure 1: Static masks that track the dense model for a single agent lose much of that accuracy on a multi-agent workload. Left: identical pruning methods, backbone, retention ( ρ = 50 % \rho{=}50\% ), and calibration data; only the serving setting changes. Right: the resulting accuracy–memory frontier.

Fig 2: Figure 2: Agents differ in what they do, and therefore in the experts they use. (a) Per-role and (b) per-operator expert usage (HumanEval+, layer 24; deviation from the row mean over the top-64 experts, percentage points); (c) share of each role’s segments per operator, across three tasks.

Fig 3: Figure 3: Predicted masks organize themselves by task and by role. Jaccard overlap of predicted kept-expert masks at ρ = 50 % \rho{=}50\% (chance = = 0.33). (a) Between benchmarks; (b, c) between the agents of the MATH and HumanEval+ teams. Diagonals: the same row on different problems. Measured on hand-crafted agent teams, not the discovered workflows of Table 1 .
Ready to evaluate your AI agents?
Learn how ReputAgent helps teams build trustworthy AI through systematic evaluation.
Learn MoreConsiderations
A one-time predictor training run and representative workflow transcripts are required; predictor quality depends on that data. How aggressively you can prune still depends on the backbone: some models tolerate more removal than others and must be measured. Results were validated across several backbones and discovered workflows, but extreme domain shifts or radically different architectures may need additional testing. Context Drift
Deep Dive
Modern sparse models replace a single feed-forward block with many internal modules ("experts") and pick a few to run per token; that saves compute but not memory because any expert might be needed at any time. Serving many different agents from one backbone breaks the assumption behind static pruning: agents in different roles and tasks recruit different subsets of experts, so a single averaged subset is a poor fit and can even cause degenerate outputs. Predicting a specialized subset per request fixes that mismatch without re-running calibration for every new agent or prompt. The proposed method, called Dynamic Expert Pruning, trains a compact predictor that reads only the agent’s system prompt and task input and emits a per-layer mask of which experts to keep for the entire turn. The predictor is supervised from model transcripts (which experts actually contributed and how masking moves the output distribution) and is cheap at serving time—a single forward pass that lets the system hold a bounded set of experts resident for the turn. Evaluated at 50% and 25% retention on multiple discovered multi-agent workflows and across model scales (30B and 480B) and an alternate MoE family, the predictor outperformed static calibration and merging baselines, with the largest advantage at tight budgets. The takeaway for deployments is practical: a small upfront training cost yields request-specific specialization that reduces resident memory needs and preserves or improves accuracy when one backbone serves many different agent roles. Handoff Pattern
Need expert guidance?We can help implement this
Credibility Assessment:
Authors from POSTECH (a recognized university); one author with h-index 17 but others low and it's an arXiv preprint — solid but not top-tier.