Formalizing Task-Space Complexity for Zero-Shot Generalization

Jung-Hoon Cho, Heling Zhang, Siqi Du, Roy Dong, Cathy WuarXiv 2026

TL;DR

Instead of relying on a single conservative controller or complex adaptive schemes, this paper introduces a framework to find the minimum number of simple, specialized controllers needed to cover a diverse task space. By defining a performance-based "signed divergence," the authors map zero-shot generalization to a classic set-cover problem, proving that a greedy selection strategy efficiently guarantees bounded performance loss across all environments.

What Problem Does This Paper Address?

Modern control systems and robots frequently encounter changing environments—such as a vehicle driving from dry asphalt to icy roads, or a robotic arm lifting objects of varying masses. In these "contextual dynamical systems," designing a single controller that works everywhere often leads to highly conservative, sub-optimal performance. Conversely, fully adaptive controllers that adjust online can be overly complex and difficult to tune.

A common engineering alternative is gain scheduling: training a library of simple, context-independent controllers and switching between them as conditions change. However, until now, there has been no rigorous theoretical framework to answer two fundamental questions:

  1. How many controllers are actually needed to safely cover a space of diverse environments?
  2. Which specific environments should we choose as training grounds to guarantee that our controllers will generalize zero-shot to any unseen target environment?

Standard heuristics typically use geometric distances (like Euclidean distance) in the parameter space to guess task similarity, assuming that nearby environments behave similarly. However, this assumption can be highly misleading because system performance can be incredibly sensitive to some parameters while completely ignoring others.

Methods

The authors formalize zero-shot generalization by introducing three core concepts:

  1. Signed Divergence: A novel, performance-centric, directional dissimilarity measure. Instead of measuring parameter distance, it quantifies the worst-case performance drop when a policy optimized for a source context ($\theta_1$) is deployed in a target context ($\theta_2$). Because it is directional, it correctly captures the asymmetric reality that transferring a policy from Task A to Task B might succeed, while transferring from B to A might fail.
  2. $\varepsilon$-Tolerance Sets: Induced by the signed divergence, this set defines a certified "region of competence" around a source environment where its trained policies are guaranteed to incur at most an $\varepsilon$ performance loss.
  3. Task-Space Complexity: This is defined as the minimum number of source environments needed such that their combined $\varepsilon$-tolerance sets completely cover the entire context space.

By framing the problem this way, the authors elegantly reduce the challenge of optimal policy selection to the classic Set Cover problem. They propose a Greedy Meta-Algorithm for Set Cover that iteratively selects the source environment providing the largest marginal coverage of currently uncovered contexts. Thanks to this formulation, the strategy inherits a standard $H(n)$ harmonic approximation guarantee. Additionally, they derive local upper and lower loss rates to provide geometric inner/outer ball certificates for these tolerance sets.

Datasets & Environments

The paper evaluates the framework using simulated contextual dynamical systems rather than static datasets:

  • Mass-Spring-Damper (MSD) System: A continuous-time linear system controlled via Linear-Quadratic Regulators (LQR). The context space is a $100 \times 100$ grid where spring stiffness ($k$) and damping coefficient ($c$) vary.
  • CartPole System: A nonlinear system utilizing Deep Reinforcement Learning (Proximal Policy Optimization, or PPO) via the CARL benchmark (a Contextual Markov Decision Process variant of OpenAI Gym). The context space is a $20 \times 20$ grid varying pole length and cart mass.

Key Insights and Ideas

  • Performance Smoothness $\neq$ Model Smoothness: Traditional approaches assume that the underlying system dynamics vary smoothly (model smoothness). The authors prove that model smoothness is not a necessary condition for performance generalization. A system's dynamics can change drastically in regions of the state-space that a good policy never visits, meaning model-based bounds are often overly pessimistic.
  • Generalization is Asymmetric: The "signed divergence" embraces directionality. If Environment A is highly demanding and Environment B is easy, a policy trained on A will likely generalize to B, but not vice versa.
  • Geometry of Competence: By analyzing local loss rates, the paper shows how to draw certified inner and outer balls around a training environment, giving engineers a clear geometric picture of where a controller can be safely deployed.

Key Results

  • Fewer Policies, Better Coverage: In both linear (MSD) and nonlinear (CartPole) control tasks, the greedy selection algorithm achieved full $\varepsilon$-coverage using significantly fewer trained policies than uniform grid or random baselines.
  • Anisotropic Efficiency: The greedy approach shines brightest in anisotropic landscapes (where performance is highly sensitive to changes in one parameter but resilient to another), avoiding redundant training and focusing computational budget strictly on critical transition zones.
  Coverage Area
   1.0 |         /-- Greedy
   0.8 |       / 
   0.6 |     /---- Uniform Grid
   0.4 |   /------ Random
   0.2 | /
   0.0 ------------------------
       0                      Training Compute

(Simplified conceptual visualization of Figure 1: Greedy reaches near-total coverage much faster than baselines).

Limitations and Future Work

The primary limitation acknowledged by the authors is oracle dependency. To run the exact greedy selection, one must exhaustively evaluate or have oracle access to the tolerance sets beforehand, which requires $O(n^2 m)$ performance evaluations for a grid of size $n$ with $m$ policies.

Future Directions: * Developing statistically efficient estimators for local loss rates to bypass exhaustive grid evaluation. * Applying the framework to multi-task and meta-learning settings to train single adaptable policies rather than discrete sets. * Formulating geometric set-covers using linear programming (LP) relaxations and VC-dimension-based guarantees.

Summary updated

Abstract

Policies must operate across diverse conditions, yet a single policy is often conservative while fully adaptive schemes can be complex. We study zero-shot generalization in contextual dynamical systems and introduce a performance-centric, directional task dissimilarity--the signed divergence--that upper bounds the generalization gap from a source context to a target context. The signed divergence induces $\varepsilon$-tolerance sets that certify when a source policy class generalizes, and it yields a concrete notion of task-space complexity: the minimum number of source contexts needed so that every target context incurs at most $\varepsilon$ generalization gap. Under a mild local smoothness assumption on performance, the induced tolerance sets admit certified inner/outer balls and instance-dependent volume bounds on task-space complexity. In the finite-oracle setting, source selection reduces to set cover; a greedy strategy inherits the standard $H(n)$ approximation guarantee. Using a Mass-Spring-Damper system with linear-quadratic regulator (LQR) controllers and a nonlinear CartPole system with deep reinforcement learning controllers, we show that greedy selection achieves the same $\varepsilon$-coverage with fewer policies than uniform or random baselines. Our approach delivers a performance-based task similarity measure and practical certificates for building generalizable control with simple policies.
BibTeX
@misc{cho2026formalizing,
  author = {Jung-Hoon Cho and Heling Zhang and Siqi Du and Roy Dong and Cathy Wu},
  title = {{Formalizing Task-Space Complexity for Zero-Shot Generalization}},
  year = {2026},
  eprint = {2606.20967},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2606.20967},
}
Figure