Provable General Function Class Representation Learning in Multitask Bandits and MDP

Rui Lu, Andrew Zhao, Simon S. Du, Gao Huang

Presented at NeurIPS 2022, this research provides a rigorous theoretical foundation for a ubiquitous practice in modern Artificial Intelligence: sharing a neural network "backbone" across multiple tasks to accelerate learning. While empirical results have long demonstrated the efficacy of multitask learning, proving why it works for general, non-linear functions has remained a significant challenge in reinforcement learning theory.

The Theory Gap in Multitask RL

In Reinforcement Learning (RL), agents frequently struggle with high "sample complexity"—requiring massive amounts of data to learn effective policies. Multitask representation learning addresses this by assuming that multiple related tasks share a common, low-dimensional underlying structure (a representation, $\phi$).

Historically, theoretical guarantees for this approach were largely confined to linear representations. However, real-world applications rely heavily on non-linear representations, such as deep neural networks. Analyzing these non-linear spaces is notoriously difficult because standard mathematical tools for linear settings (like ellipsoidal confidence sets) do not translate to abstract function spaces. This created a substantial "theory gap": the community knew multitask neural networks worked in practice, but lacked the mathematical framework to prove they were sample-efficient under general conditions.

Introducing GFUCB

To bridge this gap, the authors introduce the Generalized Functional Upper Confidence Bound (GFUCB) algorithm. This represents the first algorithm with provable sample efficiency for multitask representation learning utilizing general (non-linear) function classes.

Algorithm 1: Generalized Functional UCB Algorithm

Key components of the GFUCB approach include:

  • Multihead Function Class ($F^{\otimes M}$): Rather than treating tasks in isolation, the framework defines a function class where all $M$ tasks share a single backbone $\phi \in \Phi$, but each task maintains its own linear "head" $w_i$. This architectural constraint forces the agent to discover a universal representation.
  • Eluder Dimension: To manage the complexity of non-linear functions, the authors leverage the "Eluder dimension." This metric quantifies how many samples are required to effectively "pin down" a function's values within a general space, bypassing the need for linear assumptions.
  • Functional Confidence Sets: The algorithm maintains a set of all possible functions consistent with the historical data. It then selects the most "optimistic" function (the one predicting the highest reward) to drive exploration.
  • Joint Training: As seen in the algorithm's pseudocode, GFUCB updates the shared backbone using data from all tasks simultaneously. This joint optimization is the engine that accelerates the convergence of the representation.

Key Insights and Theoretical Results

The core insight of this work is the power of shared samples. Because the shared backbone $\phi$ receives training signals from all $M$ tasks concurrently, the representation converges $M$ times faster than if it were learned for a single isolated task. By utilizing the Eluder dimension and covering numbers, the authors successfully moved past the "linear representation" crutch, making the theory applicable to modern deep learning architectures.

Regret Bounds: The authors mathematically prove a regret bound of $\tilde{O}(\sqrt{M dT(Mk + \log \mathcal{N}(\Phi))})$ for contextual bandits. In practical terms, this means that as you add more tasks ($M$), the "cost" of learning the complex shared representation is distributed, leading to vastly improved per-task performance. The total regret scales with the complexity of the shared class, rather than simply summing the independent complexities of $M$ tasks.

Extension to MDPs: The paper successfully extends this analysis to episodic Reinforcement Learning (Markov Decision Processes), proving that these multitask benefits hold for complex, sequential decision-making environments.

Experimental Validation

The paper validates its theoretical claims using a proof-of-concept experiment based on MNIST Contextual Bandits. The environment requires an agent to recognize handwritten digits, but different tasks assign different reward values to specific digits. To succeed, the agent must learn a shared Convolutional Neural Network (CNN) backbone capable of identifying digits across all tasks.

Empirically, the GFUCB algorithm training on 10 tasks simultaneously significantly outperformed agents learning only 1 or 5 tasks, confirming that multitask training actively accelerates the learning of the CNN backbone.

Limitations and Future Work

While a major theoretical step forward, the framework has limitations that pave the way for future research:

  • Computational Intractability: The theoretical formulation of GFUCB requires searching over an abstract function space, an operation that is NP-hard for neural networks. While the authors utilized gradient-based approximations (like Adam/SGD) for their experiments, the strict provable guarantees assume access to a computational oracle.
  • Linear Heads: Although the representation $\phi$ is general and non-linear, the task-specific "heads" are still assumed to be linear. Future work could investigate settings where these heads are also complex non-linear functions.
  • Inherent Bellman Error: In the MDP setting, the theoretical results rely on a "low inherent Bellman error" assumption, implying the function class is sufficiently expressive to capture the environment's dynamics. Exploring the algorithm's robustness when this assumption is violated remains an open question.

Summary updated

BibTeX
@inproceedings{lu2022provable,
  author = {Rui Lu and Andrew Zhao and Simon S. Du and Gao Huang},
  title = {{Provable General Function Class Representation Learning in Multitask Bandits and MDP}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2022},
  url = {https://openreview.net/forum?id=cGvdIxwAcJX},
}
Figure