T3S: Improving Multi-Task Reinforcement Learning with Task-Specific Feature Selector and Scheduler
Analyze & explore related research in Conceptio
Connect this record directly into your research workflow or AI agent. Explore citations across open repositories, query full text, and export structured proof bundles.
arXiv:2608.30765v1 [cs.LG] 31 Aug 2026
T3S: Improving Multi-Task Reinforcement Learning with Task-Specific Feature Selector and Scheduler Yuanqiang Yu
Tianpei Yang∗
College of Intelligence and Computing Tianjin University Tianjin, China yuyuanqiang@tju.edu.cn
Department of Computing Science University of Alberta and Alberta Machine Intelligence Institute Edmonton, Canada tpyang@tju.edu.cn
Yongliang Lv
Yan Zheng
Jianye Hao∗
College of Intelligence and Computing Tianjin University Tianjin, China lvyongliang@tju.edu.cn
College of Intelligence and Computing Tianjin University Tianjin, China yanzheng@tju.edu.cn
College of Intelligence and Computing Tianjin University Tianjin, China jianye.hao@tju.edu.cn
Abstract—Multi-task reinforcement learning (MTRL) is a technique to train multiple tasks simultaneously, where previous works usually train a single model to solve different tasks by sharing parameters across various tasks. However, these methods are faced with inter-task interference since what parameters should be shared across tasks is not addressed, dramatically reducing learning efficiency. To solve these problems, we propose a novel MTRL framework called Task-Specific feature Selector and Scheduler (T3S), which consists of two components: a feature selector and a task scheduler. Specifically, the feature selectors employ hypernetworks to construct task-specific soft masks, which can be applied by globally shared representation to construct task-specific features. The task scheduler selects tasks for learning through two metrics, where the selection probability is inversely proportional to task progress (e.g., success rate) and task learning speed. Experimental results show that T3S consistently outperforms the state-of-the-art MTRL algorithms on various robotics manipulation tasks. Index Terms—reinforcement learning; multi-task learning; knowledge sharing; task scheduler
Feature Selector
𝒂𝒕
Feature Selector
𝒂𝒕
Task Scheduler
Shared features
Fig. 1. Overview of our framework T3S. To balance the task difficulty, the task scheduler first selects challenging tasks for the multi-task agent from the whole task set based on the performance metric. Then the feature selector learns which features to be shared between tasks and which not, by filtering task-specific features from globally shared features in an end-to-end manner.
I. I NTRODUCTION Deep reinforcement learning (DRL) has been applied to solve various decision-making problems, including games [1]– [5], robot control [6], [7], and autonomous driving [8]–[11]. Despite significant success in single-task learning, it was achieved one task at a time, with each task requiring the training of a new agent from scratch. This typically results in high memory usage, high computational cost, and, more importantly, knowledge cannot transfer between tasks during the training process, leading to low learning efficiency. One promising way to improve learning efficiency is multi-task reinforcement learning (MTRL), which uses shared representations between a collection of related tasks. However, MTRL is still challenging, since different tasks usually interfere during training, dramatically reducing the learning efficiency [12]. Training with many tasks at the same time, for example, using ∗ Corresponding author.
a shared network trunk and several task-specific layers may impair overall performance as compared to independent training in each task [13]. This phenomenon is called destructive interference, since we do not know how the tasks will affect one another when training together in a single model. One major branch of MTRL focuses on the network architecture design to resolve destructive interference. For example, Cross-Stitch Network [14] learns static linear combinations to fuse features of different tasks. However, the magnitude of network parameters increases as the number of tasks increases, which is computationally expensive. Multi-gate Mixture-ofExperts (MMoE) [15] applies gating networks to combine experts (feed-forward networks) based on the input to handle task differences. However, all outputs from the experts are weighted according to the gating networks without discriminating between shared and specific ones, leading to destructive
Author’s accepted manuscript. Published version: Y. Yu, T. Yang, Y. Lv, Y. Zheng, and J. Hao, “T3S: Improving Multi-Task Reinforcement Learning with Task-Specific Feature Selector and Scheduler,” 2023 International Joint Conference on Neural Networks (IJCNN), 2023, pp. 1–8. DOI: 10.1109/IJCNN54540.2023.10191536. © 2023 IEEE. Personal use of this material is permitted. Permission from IEEE must be obtained for all other uses, in any current or future media, including reprinting/republishing this material for advertising or promotional purposes, creating new collective works, for resale or redistribution to servers or lists, or reuse of any copyrighted component of this work in other works.
interference. Recently, MTAN [16] consists of a shared network along with an attention module for each task to obtain task-specific features. However, MTAN is mainly designed to extract image features, while our network focuses on the state input in vector form, so it is more suitable for multi-task learning on RL settings. Furthermore, our network employs hypernetworks to construct task-specific layers, which can decouple the task context from the state and achieve better learning performance. Soft Modularization [17] performs routing in a shared policy network that contains many modules (sub-networks) to learn different policies for different tasks. However, the sharing mechanism is still coarse-grained due to using modules as basic sharing units. Another branch of MTRL focuses on optimization strategies to address destructive interference. From an optimization view, interference occurs as the existence of conflicting task gradients, which is based on the finding: when the angle between the gradient directions of two tasks is large, using one task gradient to update may reduces the performance of another task. For example, PCGrad [18] addresses the conflicts by gradient projection. More recently, CAGrad [19] reduces conflicting gradients between tasks by exploiting the worst local improvement of tasks. However, it requires many optimization steps during the training process, which are computationally expensive. To solve the above problems, we propose a novel MTRL framework called Task-Specific feature Selector and Scheduler (T3S). Figure 1 illustrates the overall framework, which consists of two components to promote knowledge sharing between tasks. The first component is a feature selector, which employs hypernetworks and takes the task ID as input to construct a task-specific soft mask, enabling inter-task parameter sharing at the feature level, which is fine-grained. The second component is a task scheduler, which is based on the fact that task difficulty disparities can lead to an inappropriate focus on easy tasks, slowing learning progress on challenging tasks [20]. In summary, our contributions are three-fold: • Our novel MTRL framework T3S comprises a feature selector and a task scheduler. Those two components are designed to work in a fine-grained manner to promote knowledge flow between similar tasks. • Our task scheduler efficiently schedules tasks for learning through two task metrics: task progress and task learning speed, where the selection probability is inversely proportional to task progress and task learning speed. • Our framework can be easily combined with existing offpolicy DRL algorithms. Experimental results show that T3S significantly outperforms the state-of-the-art MTRL algorithms on various robotics manipulation tasks. II. BACKGROUND Problem Settings. Typically, we model the RL problem as a finite Markov Decision Process (MDP) for each task, which can be described by (S, A, P, R, H, γ), where S and A are the space of states and actions. P (st+1 | st , at ) denotes the state transition function. R(st , at ) denotes the reward function, H is
the horizon, and γ represents the discount factor. The goal of ∗ the agent is to learn an optimal policy that maximizes the PT π i−t expected discounted return R = i=t γ ri . In this paper, we follow a common MTRL setting [17]–[19], where a set of tasks are treated equally, each of which may have a different MDP. For example, the multi-task environment Meta-World contains a variety of object manipulation tasks such as opening a door and closing a window, Soft Actor-Critic. Soft Actor-Critic (SAC) [21] is one of the most efficient off-policy algorithms, where the actor aims to accomplish the task while acting as randomly as possible. The policy πθ is trained to maximize a trade-off between expected return and action distribution entropy: LθSAC = Eτ min Qϕi (st , at ) − α log πθ (at | st ) , i=1,2
where α is the temperature parameter to maintain the entropy level of policy, controlling the stochasticity of the policy πθ . The target value function can be calculated by the Bellman equation: ′ ′ ′ ′ ′ y (r, s ) = r + γ min Q̄ϕi (s , ã ) − α log πθ (ã | s ) , i=1,2
where ã′ ∼ πθ (· | s′ ) and Q̄ϕi is target network. The value i network Qϕi can be updated using the TD error: LϕSAC = ′ 2 Eτ [Qϕi (s, a) − y(r, s )] . Thus, the overall SAC optimization objective is: 1 2 LSAC = LθSAC + LϕSAC + LϕSAC .
(1)
Note that different tasks may have different learning statuses, we assign a separate temperature α for each task. The approach for optimizing policy and critic networks stays the same as in the standard SAC algorithm. III. M ETHODOLOGY In this section, we propose a MTRL framework T3S, which consists of a novel network architecture and a task scheduler. In Section III-A, we describe the network architecture based on feature selectors and hypernetworks to learn soft masks for different tasks, enabling inter-task parameter sharing at the feature level. In Section III-B, we introduce a scheduling mechanism where the task scheduler can focus on complex tasks, improving sample efficiency and reducing inter-task interference. Finally, in Section III-C, we describe how T3S combines with a specific DRL algorithm SAC [21]. A. Task-Specific Feature Selector In this section, we describe how we design the MTRL network architecture. We propose to perform MTRL using soft masks applied to the globally shared network. Figure 2 illustrates our proposed network architecture in detail, which consists of two parts: a globally shared network and several feature selectors. Specifically, the globally shared network is used to extract the shared features from all tasks, while feature selectors are designed to learn the soft masks from the globally
𝑺𝒕
෩ (𝟏) 𝑮
෩ (𝟐) 𝑮
𝑮(𝟏) (𝟏) 𝒑
(𝟐) 𝒑
𝒑(𝟏) (𝟏)
(𝟏) 𝝍𝒊
(𝟏) 𝝍𝒊
𝑯(𝟏)
𝑯(𝟏)
𝒁𝓣
𝒎𝒊
(𝟏)
ෝ𝒊 𝒎
𝑮(𝟐) 𝒑(𝟐) (𝟐)
(𝟏)
(𝟏) 𝝍 𝒊 𝑯(𝟏)
𝒊 𝒎
𝝍𝒊
(𝟐)
(𝟐) 𝝍𝒊
𝑯(𝟐)
𝑯(𝟐)
Feature Selector
(𝟐)
ෝ𝒊 𝒎
𝒎𝒊
(𝟐) 𝝍 𝒊
𝒂𝒕
𝑯(𝟐)
Feature Selector
Global Shared Layer
Task-specific Layer
Hypernetwork
Dot Product
Fig. 2. Visualisation of our network architecture, showing the globally shared network and feature selectors respectively. The role of the feature selectors is to extract task-specific features from the globally shared network using the soft masks. The number of feature selectors can be defined according to the task complexity. Here the solid line (black) denotes the data flow, and the dashed line (black) denotes the weights flow.
shared network. The soft masks are then used to extract the task-specific features in a fine-grained manner. Firstly, we need to generate soft masks for each task based on the task context. Previous works [22]–[25] demonstrate that using a primary feed-forward network to generate weights for a dynamic network is appropriate for this type of contextdependent function. Thus we generate soft masks using hypernetwork [26]. The hypernetwork takes the task context zT (e.g., task ID one-hot) as input and outputs the weights of the mask generator. Then, the mask generator takes the shared (j) features as input and outputs the soft mask mi for task i at the j th feature selector. The gradient flows through the mask generator to the weights of hypernetwork. We denote the output feature in the j th feature selector of (j) the globally shared layer Gj as p(j) , and denote p̃(j) as the output feature of the globally shared layer G̃(j) to generate (j) the soft mask. The soft mask mi in the first feature selector can be computed by: (1)
mi
(1)
= σ(ψi (p̃(1) )),
where: p̃(1) = G̃(1) (St ) , (j)
ψi
= H (j) (zT ) .
Here hi denotes the hypernetwork for task i, and ψi denotes the soft mask generator. The sigmoid activation function σ is used to control the degree of sharing. When an element in (j) mi tends to 1, it can be assumed that this feature is shared by all tasks, while 0 tends to be task-specific. After get the soft
(j)
mask mi for task i, we can obtain the task-specific features (j) m̂i as follows: (j)
m̂i
(j)
= mi ⊙ p(j) ,
where ⊙ denotes the dot product multiplication. Then, the (j) task-specific features m̂i will be input to the feature extractor (j) ψ̂i for passing to the next feature selector: (j)
mi
(j)
(j−1)
= σ(ψi (Concat(p̃(j) ; ψ̂i
(j−1)
(m̂i
)))),
j≥2
where concat represents feature concatenation. Therefore, the shared network features and soft masks can be trained together to optimize task-specific performance, while mitigating intertask interference in a fine-grained manner. B. Task Scheduler This section focuses on how our framework T3S performs task scheduling. The task scheduler selects which tasks to sample and learn during each training step. Most MTRL algorithms only consider the most straightforward method, sampling from all tasks evenly, which is typically inefficient because simple tasks converge early during the training process and should not be continuously sampled and learned. Previous work also has shown that optimized task scheduling instead of uniform sampling can significantly improve model performance [27]. However, they only consider task progress rather than learning speed. Thus, the difficult task of slow learning speed is ignored to some extent, resulting in imbalanced learning. To this end, we propose a new task scheduler concerning both task progress and learning speed. The intuition behind
Algorithm 1 T3S-SAC 1: Input: initial actor network parameters θ, critic network parameters ϕ1 , ϕ2 and its target parameters ϕ¯1 , ϕ¯2 , task set T , task sampling distribution P, task sample number K, evaluation interval e, replay buffer D. 2: Set target network parameters ϕ̄1 ← ϕ1 , ϕ̄2 ← ϕ2 . 3: for i ∈ 1, ..., N do ▷ Uniform distribution 4: Pi ← N1 5: for step = 1, 2, ..., maximum steps do 6: if step%e = 0 then 7: // Time to evaluate.
Fig. 3. Illustration of the 10 robotic arm manipulation tasks on MT10.
for each task t ∈ T do Evaluate each task t and calculate the task (1) (2) metric ci , ci . ▷ Eq. (2)(3) 10: Update task sampling distribution P. ▷ Eq. (4) 11: else 12: // Time to training. 13: Sample task subset S ∼ P (|S| = K). 14: for each task t ∈ S do 15: Collect trajectories for task t and save to D. 16: for minibatch m ∼ D do 17: Update θ, ϕ1 , ϕ2 with LSAC . ▷ Eq. (1) 18: Update target network ϕ¯1 , ϕ¯2 . 8: 9:
our task scheduler is to assign task sample probabilities based on the relative progress and learning speed between tasks: the slower the task progress and the learning speed, the more likely it is that these tasks will be sampled. We always maintain a task sampling probabilities P in T3S. The task sampling decision steps occur at the end of every update. We define task progress metrics as follows [20]: (1)
ci
= 1 − ρi ,
(2)
where ρi denotes the performance of the task i (e.g., normalized total reward or success rate). Furthermore, we define the task learning speed metric as: (2)
ci
= −∆ρi ,
(3)
where ∆ρi denotes the increment performance of task i at time interval ∆t. Specifically, we increase the task’s sample probability when the learning speed is slow to focus on (k) this task. Thus, the sample probability Pi for task i is (k) proportional to the exponential of metric ci : ! (k) ci (k) Pi = softmax , τ where τ is used to shape the sample distribution. In order to consider the above factors jointly, a weighted average is applied to compute the sampling probability: X X (k) αk = 1 (4) Pi = αk Pi , s.t. k
k
where αk represents the weight of task metric c(k) .
C. T3S-SAC Our framework is easily combined with existing DRL algorithms. Algorithm 1 presents our framework T3S combined with one sota DRL algorithm SAC [21]. T3S-SAC first initializes the task distribution P, e.g., a uniform distribution (Lines 5-6). During the evaluation, we update P according to (j) task metrics ci , making it more focused on solving complex tasks (Lines 9-12). During the training, the task set S is first sampled according to task sampling distribution P (Lines 1416). Then collect trajectories from the task set S in parallel and save them to the buffer D. Finally, the agent computes the RL loss and updates the target networks (Lines 17-19). It is worth noting that the samples taken from the buffer D usually contain all tasks, which can avoid catastrophic forgetting for welllearned tasks. However, because tasks are well chosen in the collection phase, the proportion of tasks sampled for update varies during training, with more complex tasks containing more samples. IV. E XPERIEMENTS A. Experimental Results In this section, we conduct extensive experiments to verify the effectiveness of our proposed framework T3S compared with previous multi-task methods. We introduce the environment and baselines and then compare our framework with baselines. Further, we conduct a few ablation studies to demonstrate the effectiveness of the task scheduler. Environments. We evaluate our framework T3S on the MTRL representative benchmark: Meta-World [13]. In this environment, we need to solve many robotics continuous control and manipulation tasks with a robotic arm. In particular, the original MT10 and MT50 contain 10 and 50 robot manipulation tasks with fixed goals. We also consider more challenging settings where the tasks have random initial goals, as in [17]. MTn-FIXED and MTn-RAND denote the environment of n tasks with fixed goals and random goals respectively. Figure 3 shows an illustration of all the MT10 tasks. Baselines. We compare T3S with representative MTRL algorithms, all baselines except MMoE are following their official source code, and MMoE is implemented following the configuration of the paper: • Multi-task SAC (MT-SAC) [13]: Using a concatenation of task ID one-hot and the state as input, and all tasks share the same network.