Abstract
In pursuit of reinforcement learning systems that could train in physical environments, we investigate multi-task approaches as a means to alleviate the need for massive data acquisition. In a tabular scenario where the Q-functions are collected across tasks, we model our learning problem as optimizing a higher order tensor structure. Recognizing that close-related tasks may require similar actions, our proposed method imposes a low-rank condition on this aggregated Q-tensor. The rationale behind this approach to multi-task learning is that the low-rank structure enforces the notion of similarity, without the need to explicitly prescribe which tasks are similar, but inferring this information from a reduced amount of data simultaneously with the stochastic optimization of the Q-tensor. The efficiency of our low-rank tensor approach to multi-task learning is demonstrated in two numerical experiments, first in a benchmark environment formed by a collection of inverted pendulums, and then into a practical scenario involving multiple wireless communication devices.
Introduction
Reinforcement Learning (RL) has achieved remarkable success in virtual domains, such as gaming and large language model fine-tuning. However, its application to physical systems remains constrained by high sample complexity. Training agents on physical hardware often requires millions of interactions, which is frequently cost-prohibitive or physically impossible.
Multi-task learning (MTL) offers a pathway to mitigate this bottleneck by enabling agents to learn from multiple related scenarios simultaneously. Traditional MTL approaches often rely on manually defined task similarities or complex, opaque neural architectures. This work addresses the challenge of sharing information across tasks "on the fly" without explicit prior knowledge of task relationships, focusing on tabular RL where state-action spaces are discrete.
Methods
The proposed approach models the state-action value function (Q-function) as a three-dimensional tensor $\mathcal{Q} \in \mathbb{R}^{|S| \times |A| \times M}$, where the dimensions correspond to States ($S$), Actions ($A$), and Tasks ($M$). To exploit task similarities, we apply PARAFAC (Parallel Factors) decomposition, representing the large Q-tensor through three smaller factor matrices:
- $Q_1$ (State Embeddings): Latent features representing the states.
- $Q_2$ (Action Embeddings): Latent features representing the actions.
- $Q_3$ (Task Coefficients): Weights determining how each task utilizes specific state-action latent features.
By imposing a low-rank constraint (rank $K$), the model is forced to discover a compressed, shared representation. We introduce the Stochastic Tensor Low-Rank Q-Estimation (S-TLR-Q) algorithm, which utilizes block coordinate descent to update these factor matrices iteratively as transitions are sampled.
Experiments
The S-TLR-Q algorithm was evaluated in two simulated environments designed to reflect physical system dynamics:
- Inverted Pendulum Benchmark: A classic control task where the goal is to balance a pole. Four tasks were created by varying the physical properties (mass and length) of the pendulum.
- Wireless Communication Setup: A practical scenario involving packet transmission management. Four tasks were defined with varying packet arrival rates and energy harvesting probabilities.
Results and Discussion
The experiments demonstrate that S-TLR-Q consistently outperforms independent learning and fully shared models.
Implicit Similarity and Interpretability: The low-rank structure inherently enforces similarity. If the rank $K$ is small, tasks must share latent state-action features ($Q_1$ and $Q_2$). This decomposition also enhances interpretability, as task relationships can be inferred by analyzing the rows of the task matrix $Q_3$.
Performance Gains: S-TLR-Q achieves faster convergence compared to independent learning (LR-Q) by leveraging shared information. While a fully shared model (C-LR-Q) may learn quickly initially, it often fails to capture task-specific nuances, leading to suboptimal final performance. S-TLR-Q effectively finds the "sweet spot," sharing underlying "physics" while allowing for task-specific "flavors."
Efficiency: By transitioning from a full tensor to factor matrices, the model's degrees of freedom are reduced from $|S||A|M$ to $(|S|+|A|+M)K$. This reduction is the primary driver behind the observed decrease in sample complexity.
Conclusion
This work demonstrates the utility of low-rank tensor approximations for multi-task reinforcement learning in tabular settings. By modeling Q-functions as a decomposed tensor, S-TLR-Q automatically exploits task similarities to improve sample efficiency and performance. Future research will explore extending this framework to higher-order tensors for multi-dimensional state spaces and integrating these low-rank constraints into deep RL architectures to handle continuous, high-dimensional environments.
Summary updated