Next Article in Journal
Pre-Sale Strategies Considering Consumer Anticipated Regret
Previous Article in Journal
Signal Processing and Machine Learning for the Sustainability of the Italian Social Security System: Evidence from ISTAT Pension Data
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Adversarial Distributed Multi-Task Meta-Inverse Reinforcement Learning with Theory of Mind and Mean-Field Method

1
School of Computer and Computing Science, Hangzhou City University, Hangzhou 310015, China
2
College of Computer Science and Technology, Zhejiang University, Hangzhou 310027, China
3
College of Mechanical Engineering, Taiyuan University of Technology, Taiyuan 030600, China
4
College of Materials Science and Engineering, Taiyuan University of Technology, Taiyuan 030600, China
*
Author to whom correspondence should be addressed.
Mathematics 2026, 14(4), 691; https://doi.org/10.3390/math14040691
Submission received: 10 January 2026 / Revised: 10 February 2026 / Accepted: 13 February 2026 / Published: 15 February 2026

Abstract

Maximum entropy adversarial inverse reinforcement learning (ME-AIRL) has garnered widespread attention for its ability to learn rewards and optimize policies from expert demonstrations. In complex multi-task environments, applying meta-learning ME-AIRL to acquire rewards requires a substantial volume of homogeneous expert demonstrations across all tasks, which is often impractical in real-world scenarios. Moreover, interference between tasks further escalates computational complexity. To solve these challenges, this paper proposes a distributed multi-task meta ME-AIRL framework based on theory of mind and mean field, referred to as TMMF-MTAIRL. In TMMF-MTAIRL, the theory of mind is used to capture the relationships and representational information among multiple tasks. Furthermore, TMMF-MTAIRL integrates mean-field theory to transform interactions between complex tasks into interactions between the main task and the average of the remaining tasks. Furthermore, additional latent variables are introduced to enhance adaptation to novel tasks. We evaluate the proposed TMMF-MTAIRL on point-maze benchmarks and a real-world rolling bearing fault diagnosis dataset using metrics such as classification accuracy, mean rewards or cumulative rewards. TMMF-MTAIRL achieves the best performance across all tasks, with an average improvement of 0.16 in accuracy of fault classification over the strongest baseline.

1. Introduction

In the field of artificial intelligence, reinforcement learning (RL) has become one of the core technologies for solving complex decision-making problems by enabling interactive exploration between agents and their environments [1,2,3,4,5]. Traditional RL largely depends on pre-designed reward functions. However, crafting a reward function that both accurately captures task objectives and maintains generalization capability often proves highly challenging [6,7,8]. Therefore, inverse reinforcement learning (IRL) has been proposed to infer implicit reward functions and optimize policies by observing expert demonstrations, thereby avoiding the subjectivity and high costs associated with manual reward design [9,10,11,12]. As real-world scenarios become increasingly complex, single-task IRL has begun to reveal significant limitations. In domains such as autonomous driving, medical robotics, and industrial automation, agents must simultaneously handle multiple interrelated tasks. However, conventional single-task IRL models struggle to capture shared knowledge among tasks and to resolve conflicting objectives [13,14]. These challenges have spurred the emergence of multi-task inverse reinforcement learning (MT-IRL), which integrates IRL’s reward inference capability with knowledge-sharing mechanisms derived from multi-task learning, making it a prominent research focus in recent years [15,16,17].
The core objective of MT-IRLs is to infer either shared or task-specific latent reward functions across multiple tasks. Researchers have enabled cross-task knowledge transfer by introducing hierarchical Bayesian models and meta-learning framework [18,19,20]. For instance, IRL approaches based on probabilistic graphical models can map expert demonstrations from different tasks into a unified latent space, thereby extracting shared reward features [21,22]. By integrating deep neural networks (e.g., Transformer), researchers have proposed end-to-end multi-task IRL models that can automatically extract inter-task correlations from high-dimensional, homogeneous expert data [23,24,25]. For example, the dynamic properties of different tasks can be captured through multi-head attention mechanisms, and adaptive reward functions can be generated [26]. To solve the black box problem of traditional IRL in complex tasks, the causal graph models have been integrated into the multi-task framework. By analyzing causal relationships in expert demonstrations, the models can not only infer reward functions but also identify causal dependencies between tasks, thereby enhancing both policy interpretability and generalization performance [27]. Despite these advances, a significant challenge remains: limited or suboptimal expert demonstrations can adversely affect both reward learning and policy optimization.
To address this challenge in MT-IRLs, generative adversarial networks (GANs) have been integrated into MT-IRLs, aiming to resolve large-scale task problems in complex environments [28,29,30]. To tackle the challenge of autonomous reward acquisition in large-scale, high-dimensional environments with unknown dynamics, Finn et al. incorporated GANs into guided cost learning to learn reward functions that are robust to dynamic changes [31]. To address the poor transferability and robustness of recoverable rewards in varying environments, an adversarial IRL algorithm was proposed to learn hierarchically disentangled rewards through policy learning [32]. Additionally, semantic rewards were incorporated into the adversarial IRL to further enhance and stabilize its performance [33]. To make the graph computation end-to-end microscopic, the model-based adversarial IRL employed a dynamic self-attention model to optimize low-variance policies [34]. Moreover, to improve the adaptability of both adversarial IRL and multi-task adversarial IRL, meta-adversarial inverse reinforcement learning (Meta-AIRL) integrated meta-learning with adversarial IRL to learn adaptive policies [21,35].
However, existing adversarial IRL methods are often designed under the assumption of homogeneous expert presentations [35]. In real-world reward learning scenarios, however, updated mixed expert demonstrations for different tasks may include both human-generated experience data and algorithm-generated data, where state-action visitation frequencies can vary significantly across tasks. Such variations lead to heterogeneous modalities and distinct distribution frequencies. Moreover, these partially heterogeneous multi-task settings require a large number of expert demonstrations to learn rewards, which increases the computational complexity. To address these challenges, researchers have developed a mean-field RL model and a multi-agent IRL framework based on the mean-field game, which effectively mitigate high-dimensional state spaces and heavy computational burdens through simplified modeling approaches [36,37,38,39,40]. Moreover, prior studies in RL and IRL have incorporated the theory of mind (ToM) to enhance information interaction, thus improving the understanding and prediction of other other agents’ behaviors and the intentions of others [41,42,43,44]. Inspired by the application of mean-field theory and ToM, and aiming to improve joint reward learning and knowledge transfer in multi-task IRL under complex partially heterogeneous environments, this paper proposes a meta-adversarial distributed multi-task inverse reinforcement learning based on the theory of mind (TMMF-MTAIRL). Given updated and mixed expert demonstrations, the proposed algorithm constructs the adversarial mean-field inverse reinforcement learning based on ToM and deep latent variables to enable explicit modeling of relationships between multiple tasks, enhancing information utilization among tasks, and facilitating rapid adaptation to novel tasks. Therefore, by simultaneously improving task interpretability and adaptability, TMMF-MTAIRL can more effectively infer potential reward functions, and optimize agents’ policies.
In summary, the main contributions of this paper are as follows:
(1)
To enhance knowledge transfer between tasks, this paper proposes a meta-adversarial IRL framework based on theory of mind, which uses the theory of mind to make better use of the relationships between partially heterogeneous tasks and capture the representational information between tasks.
(2)
To reduce the computational complexity of reward and strategy optimization, the mean-field theory is introduced into TMMF-MTAIRL, which can transform interactions between complex tasks into the interaction between the main task and the rest of the average tasks.
(3)
By introducing additional latent variables to characterize modal information within mixed expert demonstrations, the TMMF-MTAIRL enables rapid adaptation to novel tasks during meta-adversarial training of the discriminator and generator, even with limited expert demonstration data.
(4)
The effectiveness of TMMF-MTAIRL is evaluated on both the maze-point benchmark and rolling bearing fault diagnosis tasks. Experimental results indicate that TMMF-MTAIRL outperforms conventional multi-task IRL methods, achieving state-of-the-art performance in both reward learning and policy optimization.

2. Related Works

Adversarial IRL and multi-task adversarial IRL: Adversarial IRL represents a state-of-the-art research direction that combines GANs with IRL, aiming to efficiently infer latent reward functions of expert behaviors through adversarial training mechanisms. Initially, Finn et al. introduced GANs into guided cost learning [31], and used the distribution of state-action pairs to optimize the overall goal of adversarial IRL: E π t = 0 T 1 γ t r s t , a t = E π t = 0 T 1 f θ s t , a t log  π a t | s t . In the adversarial IRL algorithm, sampling-based methods are used to calculate the gradient of the loss function with respect to θ , and the training is performed according to the trajectory distribution [32]. In practice, however, such estimates based on trajectory distributions exhibit high variance. Consequently, to cope with complex dynamic environments, researchers have proposed a series of extensions, including behavioral fusion IRL [45], model-based IRL [34], and semantic-based augmented adversarial IRL [33], etc. To address the challenge of inferring reward functions from expert trajectories in multi-agent environments, multi-agent generative adversarial IRL leverages diverse agents’ behaviors to learn shared reward functions [46]. Furthermore, for multi-task scenarios, several approaches have been developed, such as hierarchical multi-task adversarial IRL [19], meta-adversarial IRL [20,21,22], variational multi-task IRL [23], and multi-task IRL based on self-attention dynamic model [26]. In addition, by incorporating causal concepts into reward learning and policy optimization for multi-task IRL, researchers have proposed causal entropy-based multi-task IRL [27]. To further enhance the adaptability of adversarial multi-task IRL, an IRL based on meta-learning is developed to learn adaptive policies through different update frequencies and meta-learning rate [35].
IRL based on mean field and ToM: In complex multi-task environments, agents must interact with highly intricate surroundings, resulting in substantial computational complexity that makes reward learning and policy optimization particularly challenging [20,23]. As the number of agents grows significantly, researchers have proposed mean-field-based RL algorithms to reduce computational complexity, which introduces mean-field theory into multi-agent RL. Typical examples include mean-field Q-learning, mean-field actor–critic algorithms [36], GAT-MF [39], and HMF-based DRL [46], which are representative RL methods based on mean field. Building on these studies, researchers have gradually introduced mean-field methods into IRL to better address the challenges of learning reward functions and optimizing policies [37,47]. Specifically, based on the adversarial IRL framework combined with meta-learning, researchers proposed MFG-AIRL based on the mean field [40]. Furthermore, to enhance belief modeling and intention inference in learning rewards, researchers have proposed ToM-based IRL [40], Bayesian MoT-based IRL [41], intrinsically motivated ToM-based IRL [42], and goal-oriented IRL based on ToM [43]. These approaches aim to predict an agent’s future actions by analyzing its past trajectories. Overall, mean-field theory and ToM have achieved preliminary research progress in RL and IRL [44], effectively facilitating reward learning and policy optimization. These developments provide valuable inspiration for the theoretical framework proposed in this paper.
Table 1 shows the faced problems, advantages, and representative references of the related adversarial IRL methods based on mean field and ToM.

3. Preliminaries

3.1. Markov Games

A Markov decision process (MDP) is formulated as S , A , R , γ , P , where S represents the set of states, A represents the set of actions, R s a = E r t + 1 | s t = s , a t = a indicates the set of reward function, and γ 0 , 1 represents the discount factor. The function P s s a = P s t + 1 | s t , a t is the state transition distribution. The agent takes actions a t from the state s t to the next state s t + 1 with probability p s t + 1 | s t , a t . The agent aims to maximize the the expected cumulative discounted rewards E π t = 1 T γ t r t s t , a t | s 0 = s , a 0 = a . Based on the MDP in RL, if we cannot obtain the reward function of the IRL, the MDP in IRL is formulated as S , A , γ , P . Given the expert demonstrations D , the main objectives of the IRL are as follows: (1) to recover the reward function, and (2) to realize policy optimization by making the learner’s policy approach the expert’s policy.

3.2. Adversarial Inverse Reinforcement Learning

To solve the reward functions under expert demonstrations D , Ziebart et al. [42] proposed maximum entropy inverse reinforcement learning (MaxEnt IRL), which formulates constrained optimization problems as maximum entropy models [17,35]:
p ξ j | θ = 1 z θ e s t ξ j θ T ϕ s t s t , a t , s t + 1 ξ j p s t + 1 | s t , a t
where ϕ s t represents the feature function of each reward, the partition function z θ = ξ j e s t ξ j θ T ϕ s t s t , a t , s t + 1 ξ j p s t + 1 | s t , a t is a normalized constant, and p s t + 1 | s t , a t represents the state transition probability. In Equation (1), the trajectory ξ j that the expert demonstrates is exponentially proportional to the cumulative rewards along that trajectory, implying that trajectories with higher rewards are more likely to be preferred by the agent. Furthermore, the MaxEnt IRL algorithm is extended to the multi-task environment. Given the expert demonstrations D = ξ j j = 1 M , the agent can obtain the reward function and optimize the policy by imitating the expert strategy π E , aiming to maximize the objective function:
max θ J θ = max θ E ξ j D J log  p θ ξ j
where the likelihood probability distribution p θ ξ j of the expert trajectory ξ j is parametrized as p θ ξ j p s 0 t = 0 T 1 p s t + 1 | s t , a t e r θ s t , a t , which explains the likelihood probability of the observed data in terms of the reward function; that is, the probability distribution of the expert trajectory ξ j is induced by r.
The reward function is obtained by minimizing D K L p π E ξ | | p θ ξ :
arg min  θ D K L p π E ξ j | | p θ ξ j = arg min  θ E ξ j p π E ξ j log  p θ ξ j = arg min  θ E ξ j p π E ξ j t = 1 T r θ s t , a t log  Z θ
However, the partition function Z θ is difficult to calculate. To solve this problem, adversarial IRL has been proposed as an efficient framework for MaxEnt IRL. In adversarial IRL, a discriminator D θ s , a is trained:
D θ s , a = e r θ s , a e r θ s , a + π a | s
To make policy π θ more closely approximate the expert’s policy, the discriminator minimizes the cross-entropy loss between expert demonstration and generated samples:
L θ = t = 0 T E D log  D θ s t , a t E π t log 1 D θ s t , a t
The optimal objective of the discriminator is achieved when π = π E , where π denotes the policy learned by the generator, and π E is the expert’s policy. At this point, the optimal output of the discriminator is 0.5, indicating that e r θ s , a = π E a | s .
To learn reward functions that can adapt to different tasks, meta-learning is introduced within the adversarial maximum entropy IRL (AMEIRL) to infer task characteristics from expert policy samples and learn rewards [29,31]. The likelihood function distribution of samples with different trajectories is formulated as
p ξ = s 0 : T , a 0 : T | υ = 1 Z θ η s 0 T t = 0 p s t + 1 | s t , a t e t = 0 T r θ s t , a t , υ
where υ represents the parameter of meta learning, and r θ s t , a t , υ denotes the reward function.
However, in the complex multi-task learning environment, tasks may interfere with each other, which brings challenges to learning rewards and optimizing policies for the agents. Effectively leveraging the relationships between tasks, capturing the representational information between tasks, and reducing the complexity of optimizing rewards and policies are thus important problems to address. Motivated by mean-field theory in IRL, which primarily addresses interactions and computational challenges among large-scale agents, we incorporate mean-field approximation into multi-task IRL to reduce the complexity of learning rewards and optimizing policies.

4. Multi-Task Meta-Adversarial Mean-Field IRL Based on Theory of Mind

In complex, partially heterogeneous multi-task environments, using meta-learning adversarial IRL to learn reward functions traditionally requires a large set of homogeneous expert demonstrations, and the presence of multiple tasks may lead to mutual interference, which significantly increase the algorithm’s computational complexity. However, in practical task environments, ensuring that the acquired expert demonstrations across different tasks are homogeneous remains a significant challenge. To address these challenges, this paper presents a meta-adversarial mean-field IRL framework based on the context-conditional policy to learn rewards and optimize policy from the constantly updated mixed expert demonstrations. The algorithm incorporates theory of mind to enhance knowledge transfer between multiple tasks, thereby capturing inter-task relationships and fully leveraging environmental information. Furthermore, the mean field is used to model the interactions between the main task and the average of the remaining tasks, which reduces computational complexity. Additionally, latent task variables are accurately inferred from sampled trajectories for the new task, ultimately deriving task-specific adaptive reward functions and optimal policies under the maximum entropy framework. Moreover, the overall generative adversarial framework can continuously be updated and optimized to improve the mixed expert demonstrations.
Different from existing mean-field IRL and ToM-based IRL, we introduce a ToM-conditioned mean field that aggregates cross-task interactions into an embedding of the averaged state of mind, and derive a mutual-information regularized adversarial learning objective with tractable gradient estimators, which can quickly adapt to new tasks with latent task variables and continuously improve mixed expert demonstrations.

4.1. Adversarial Mean-Field IRL Based on Probabilistic Context Variable

In complex, partially heterogeneous multi-task environments, the context-conditional meta-adversarial mean-field IRL framework first samples M expert demonstration trajectories ξ j from the update mixed expert demonstrations D , then learns reward functions and optimizes policies under each trajectory ξ j . Each reward and policy learning process with an expert demonstration trajectory is treated as a task. These mixed demonstration trajectories exhibit diverse behavioral patterns and varying distribution frequencies. Therefore, the reward learning and policy optimization task can be viewed as M partially heterogeneous distributed learning tasks, aiming to infer latent reward functions across multiple tasks.
Using the update mixed expert demonstrations, the adversarial mean-field multi-task IRL (MMF-MTAIRL) introduces the probabilistic contextual variable υ U to describe the distribution of task characteristics, where U is the value space that can enhance the learning precision of rewards for partially heterogeneous multiple tasks. In this framework, both rewards and policies π depend on the probabilistic implicit variable υ . We make the following definitions: the expert policy π E a | s , υ and corresponding reward functions R s , a , η , υ that depend on mean field and state of mind for different tasks, η -conditional mean-field flow η E · | υ and policy flow π E · | υ , and marginal distribution of expert policy p η E , π E τ = p η E , π E τ | υ p υ d υ , where p υ indicates a prior distribution. MMF-MTAIRL with probabilistic contextual variable aims to use meta-learning to learn an inference model q υ | τ and rewards with samples of the p π E τ .

4.2. The Embedding of Theory of Mind for Improved MMF-MTAIRL

In complex distributed and partially heterogeneous multi-task environments, the interconnections among multiple partially heterogeneous tasks significantly increase computational complexity. To facilitate knowledge transfer across multiple tasks, we incorporate theory of mind into MMF-MTAIRL (TMMF-MTAIRL), which explicitly models the latent relationships among tasks.
First, following the task partitioning in Section 4.1 under partially heterogeneous expert demonstrations, we assume there are M tasks T 1 , T 2 , , T M . The assumption that there exist M tasks reflects a common practical setting in which expert demonstrations are collected from multiple sources or under different operating conditions, leading to partially heterogeneous data. In such cases, demonstrations can be naturally partitioned into task-specific subsets, either explicitly (e.g., by data source) or implicitly through latent context inference. Modeling these subsets as distinct tasks enables a principled multi-task IRL formulation and provides a foundation for scalable task interaction modeling using the mean-field approximation. Importantly, this assumption does not require precise task boundaries or manual task labeling, and it mainly serves as a modeling abstraction to facilitate tractable learning and analysis.
For the improved MMF-MTAIRL with theory of mind, each task corresponds to rewards r i s , a , s i T o M and policies π i a | s , s i T o M that depend on the state of mind. Then the state of mind is encoded using an encoder network. Before defining the state of mind for ToM, we provide an intuitive interpretation of its components. In our multi-task setting, each task not only has its own learning status but also maintains an internal belief about other tasks, which determines how knowledge should be transferred across tasks. Therefore, we define the state of mind s i T o M as a compact representation consisting of three parts: (i) a loss function g i , (ii) belief variables b i j over other tasks, and (iii) a confidence term σ i . Specifically, the loss function g i reflects the learning status of task T i and helps the model capture task-specific dynamics. The belief term b i j represents the task i’s belief over other tasks j to model inter-task relations. And the confidence term σ i measures the confidence of such inter-task influences and controls the strength of cross-task influence, thereby reducing negative transfer when task relationships are weak or noisy. Based on these considerations, the state of mind for task T i is defined as s i T o M = g i , b i 1 , , b i M 1 , σ i . In this encoder, an LSTM is used to extract state of mind s i T o M from historical data ξ i of the task.
The architecture of the ToM encoder is as follows. For each task T i , we construct a historical observation sequence from the sampled trajectory ξ i = { ( s t , a t ) } t = 1 T . At each time step t, the state-action pair ( s t , a t ) is first mapped into a feature function ϕ t through a learnable embedding (a fully connected layer). The feature sequence { ϕ t } t = 1 T is then fed into an LSTM encoder to capture temporal dependencies and behavioral patterns in ξ i :
h t , c t = LSTM ( ϕ t , h t 1 , c t 1 )
where h t and c t denote the hidden state and cell state, respectively. The final hidden representation h T is used as the summary of the task’s historical behavior and is projected via a multilayer perceptron to obtain the embedding for the state of mind:
s i T o M = f T o M ( h T )
The output s i T o M is designed to encode the loss function g i , belief b i j , and the confidence σ i . During training, the ToM state is dynamically updated, and the average state of mind s a v g T o M is recomputed by the LSTM every K steps based on the most recent mixed expert demonstration trajectories. We use a 2-layer LSTM with hidden size H, and the output dimension of s i T o M is d T o M .
TMMF-MTAIRL, based on theory of mind, simplifies multi-task interactions by modeling each task in interaction with an average task T ˜ . The average state of mind is calculated as:
s a v g T o M = E i u ( { 1 , , M } { j } ) s i T o M 1 M 1 i j s i T o M
where s i T o M represents the state of mind of the expert demonstration trajectory ξ i , and u indicates the uniform distribution. Each task T i interacts only with the average task T ˜ , rather than with all other tasks, thereby reducing computational complexity. Note that s i T o M represents continuous embedding produced by the ToM encoder; thus, the averaging in Equation (9) is implemented as an element-wise mean over the embedding dimensions, which can be interpreted as an empirical expectation under the mean-field approximation.
In MMF-MTAIRL with ToM, according to the Bayes’ theorem, these probabilistic contextual variables follow a prior distribution p υ . In this complex partially heterogeneous multi-task environment, the mean-field context-conditional policy based on theory of mind with different υ represents the task preference with shared structures. The policy, mean field, mind, and reward function all depend on υ , which are defined as: π : S × U Δ A , η : U Δ S , R : S × A × Δ S × U R . For simplicity, we assume that the state space, action space, state transition function, and initial state distribution associated with mean field and mind are independent of υ . Based on the above definition, the mind-based context-conditional trajectory distribution induced by a policy π is formulated as:
p η , π = ξ | υ , θ = η 1 s 1 T t = 1 π a t | s t , s i T o M , υ P s t + 1 | s t , s i T o M , a t , η t · | υ
In Equation (10), θ denotes the parameters of the reward r θ ( · ) obtained by Equation (6). Therefore, the trajectory distribution depends on θ through the reward function r θ and the corresponding MaxEnt-induced policy.
With the prior distribution p υ of the latent mind-based context variable and the conditional distribution in Equation (10), the optimal mind-based mean-field context-conditional policy aims to maximize the entropy-regularized expected rewards:
π * = arg max  η , π E υ p υ , τ p η , π ξ | υ t = 1 T r s t , s i T o M , a t , η t , υ log  π t a t | s t , s i T o M , υ
where η t s t , s i T o M | υ follows the consistency between the mean-field flow and policy flow.
Let R s , a , η , υ indicate the reward function of expert, π E a t | s t , υ represent the expert policy corresponding to the optimal solution of Equation (11), η E · | υ indicate υ -conditional mind flow, and ξ indicate the expert demonstration sampled from the induced marginal distribution p η E , π E ξ = p η E , π E ξ | υ , θ p υ , θ d υ . Within the framework of TMMF-MTAIRL, given the updated mixed expert demonstrations, the meta-learned inference model q υ | ξ E first infers the task-specific latent probability variable υ ˜ q υ | ξ E . This enables the corresponding reward function r s , a , η , υ ˜ for tasks to guide the learning of an optimal policy that approximates the policies of expert’s rewards R s , a , η , υ ˜ .
TMMF-MTAIRL explicitly models latent relationships between multiple tasks by embedding the ToM, which enhances both reward learning and policy optimization through cross-task observation and utilization, while also providing more comprehensive environmental information. This improves interpretability and adaptability in multi-task learning.

4.3. TMMF-MTAIRL with Mutual Information Regularization

Under TMMF-MTAIRL, the context variable inference model is parametrized as q ψ υ | ξ , and the reward function is parametrized as r θ s t , s i T o M , a , η , υ , where υ is inferred from q ψ υ | ξ . Let η θ · | υ , π θ · | s t , s i T o M , υ represent the mind-based mean field induced by r θ . Therefore, under the η θ · | υ , π θ · | s t , s i T o M , υ , the trajectory distribution p θ ξ | υ induced by the reward function under different potential variables can be expressed as:
p θ ξ | υ = 1 Z θ T t = 1 η θ t s t , s i T o M e t = 1 T r θ s t , s i T o M , a t , η θ t , υ
where Z θ represents the partition function, and η θ denotes the induced mean-field flow consistent with π θ .
The maximum likelihood function of the conditional distribution p θ ξ | υ in Equation (12) is taken to learn rewards corresponding to multiple tasks using the proposed TMMF-MTAIRL. Because υ is inferred from q ψ υ | ξ , if the probabilistic context variable υ is not further restricted, υ will be inferred in advance using q ψ υ | ξ in the process of solving the maximum likelihood function, resulting in rewards that are independent of ξ . Therefore, it is necessary to introduce an implicit latent context variable and its relationship with the rewards. We first consider the mutual information between the probabilistic contextual variable and the trajectory ξ under the joint distribution p θ υ , ξ = p υ p θ ξ | υ , which is defined as
I p θ υ ; ξ = E υ p υ , τ p θ ξ | υ log  p θ υ | ξ log  p υ
where p θ υ | ξ is the posterior distribution corresponding to the conditional distribution p θ ξ | υ calculated by in Equation (12); the trajectory ξ is sampled from a trajectory distribution induced by the parameterized reward function.
Since we cannot directly obtain a prior distribution p υ , a posterior distribution p θ υ | ξ , υ -induced conditional mean field η E · | υ , or the conditional mind μ E · | υ , optimizing the solution of interactive information in Equation (13) becomes challenging. To address this challenge, following the InfoGAIL’s formula reasoning in [48], q ψ υ | ξ is first used to estimate experience value of η θ · | υ from the updated mixed expert demonstration, thereby converting the υ -induced conditional mean dependence on υ into dependence on ψ . Subsequently, the inference network q ψ υ | ξ can serve as a variational approximation of the posterior distribution p θ υ | ξ , allowing both the inference of task uncertainty and the approximation of sampling from p υ . The detailed estimation process will be elaborated later. Let p π E ξ represent the expert trajectory distribution.
In addition to the above mutual information constraints, the learning of rewards and inference network must satisfy two objectives: Goal 1) arg min  E υ p υ D K L p π E ξ | υ | | p θ ξ | υ ; Goal 2) arg min  E ξ p θ ξ D K L p θ υ | ξ | | q ψ υ | ξ . Goal 1 aims to learn a reward function r θ that induces data optimally explaining the expert policy. This involves taking mean over the prior for a potential variable υ , ensuring both that the trajectory likelihood distributions are as similar as possible, and that p π E ξ closely matches p θ ξ . When the first objective is satisfied, p θ ξ | υ can be considered to represent p π E ξ | υ . Goal 2 requires that the inference network p θ υ | ξ approximates the true posterior distribution q ψ υ | ξ of latent variables, enabling q ψ υ | ξ to infer latent context variables from new expert presentations. With the objective of the mutual information in Equation (13) and the constraints of Goal 1 and Goal 2, the mind-based meta IRL with mutual information regularization can be formulated as a constrained optimization problem. We consider using the Lagrangian function to solve this optimal problem,
min θ , ψ I p θ υ ; ξ + α E p υ D K L p π E ξ | υ | | p θ ξ | υ + β · E p θ ξ D K L p θ υ | ξ | | q ψ υ | ξ
In Equation (14), let α = 1 and β = 1 ; the Lagrangian function can be rewritten as
min θ , ψ E p υ D K L p π E ξ | υ | | p θ ξ | υ + E p θ υ , ξ log  p υ p θ υ | ξ + log  p θ υ | ξ p ψ υ | ξ   = min θ , ψ E p υ D K L p π E ξ | υ | | p θ ξ | υ + E υ p υ , ξ p θ ξ | υ log  q ψ υ | ξ   = min θ , ψ E p υ D K L p π E ξ | υ | | p θ ξ | υ + K m u t θ , ψ
Because the negative term H p υ = E p θ υ , ξ log  p υ = E p υ log  p υ can be regarded as a constant during the optimization of the parameters θ and ψ , the H p υ is therefore omitted.
For calculating Equation (15), the unknown η θ , t · | υ makes it difficult to estimate the KL divergence between the empirical expert distribution and the energy-based trajectory distribution p θ ξ | υ . To calculate the η θ , t · | υ , we first consider using the estimate η ^ E , t · | υ to implement the calculation of η θ , t · | υ . However, the dependence of η ^ E , t · | υ on υ makes it difficult to obtain the posterior distribution p υ | ξ . Fortunately, the adversarial maximum entropy-based IRL provides an efficient sampling method for estimating the maximum likelihood function. Consequently, η θ , t · | υ can be used to approximate the p υ | ξ , and η ^ E , t · | υ can be estimated:
η ^ ψ , t s , s i T o M | υ = E ξ E p η E , π E ζ q ψ υ | ξ E · I s t , s i T o M = s , s i T o M
When η ^ ψ , t s , s i T o M | υ replaces η θ , t · | υ , p θ ξ | υ additionally depends on ψ . Therefore, based on Equation (16), the conditional distribution can be rewritten as
p θ , ψ ξ | υ = 1 Z θ , ψ T t = 1 η ^ ψ , t s t , s i T o M · e t = 1 T r θ s t , , s i T o M , a t , η ^ ψ , t , υ
Lemma 1.
In the adversarial framework of the mind-based meta IRL with mutual information regularization, the adaptive samplers are defined as π θ , t a | s , s i T o M , υ and the discriminator is written as D θ s , s i T o M , a , η ^ ψ , t , υ = e r θ s t , s i T o M , a t , η ^ ψ , t e r θ s t , s i T o M , a t , η ^ ψ , t + π θ a | s t , s i T o M , υ . During adversarial training process with deterministic dynamics, the adaptive samplers π θ eventually converge to the optimal value with the reward signal log  D θ log  1 D θ . At this point, the trajectory distribution induced by η ^ ψ , π θ * corresponds to the maximum entropy conditional trajectory distribution p θ , ψ ξ | υ :
p η ^ ψ , π θ * ξ | υ = 1 Z θ , ψ κ s 1 T t = 1 η ^ ψ , t s t , s i T o M · e t = 1 T r θ s t , s i T o M , a t , η ^ ψ , t , υ = p θ , ψ ξ | υ
Proof. 
See Appendix A.    □
Lemma 2.
The gradient of K m u t θ , ψ with respect to θ can be estimated by Equation (19):
E υ p υ , ξ p π ω * ξ | υ log  q ψ υ | ξ t = 1 T θ r θ s t , s i T o M , a t , η ^ ψ , t , υ E ξ p π ω * ξ | υ θ r θ s t + 1 , s i T o M , a t + 1 , η ^ ψ , t + 1 , υ .
Proof. 
See Appendix B.    □
Using Lemma 2, υ can be sampled through the generative process and the trajectories are sampled using the conditional trajectory distribution p θ * ξ | υ to estimate θ K m u t θ , ψ . Therefore, the whole training goal is:
min  ω max  θ , ψ E ξ E p π E ξ , υ q ψ υ | τ E , s , a ρ π ω s , a | υ log  1 D θ s t , s i T o M , a t , η ^ ψ , t , υ t + E ξ E p π E ξ , υ q ψ υ | τ E , s , a ρ π ω s , a | υ log  D θ s t , s i T o M , a t , η ^ ψ , t , υ t + K m u t θ , ψ
where D θ s t , s i T o M , a t , η ^ ψ , t , υ t = e r s t , s i T o M , a t , υ t e r s t , s i T o M , a t , υ t + π a t | s t , s i T o M , υ t .
In the discriminator, the inputs consist of both states s t and the average state of mind s a v g T o M , while the outputs are task-specific rewards r ^ i s t , a t , s i T o M . Incorporating of average state of mind introduces additional dependency conditions for task-specific rewards, ensuring that multiple learned rewards do not correspond to identical policies, thereby resolving the problem of reward ambiguity.
The pseudo-code of the multi-task meta-adversarial mean-field IRL based on theory of mind in the training process is as shown in Algorithm 1. In the proposed TMMF-MTAIRL, all neural network parameters are initialized using standard He initialization. Training is terminated when the maximum number of training iterations is reached. The same stopping criterion is applied across all methods to ensure fair comparison.
As well, the overall structural framework of the multi-task meta-adversarial mean-field IRL based on theory of mind is shown in Figure 1. As depicted in Figure 1, the original expert demonstration data is first combined with the data generated by the generator to create mixed expert demonstration data, from which M expert demonstration trajectories are sampled. The learning of rewards and policies under these M mixed expert demonstration trajectories is treated as M correlated tasks. Next, the states of mind are initialized, and an LSTM is employed to encode them, obtaining the task-specific state of mind. The averaged state of mind across other tasks is computed. Furthermore, a multi-task adversarial IRL framework is constructed. This framework extends adversarial IRL to average theory of mind and introduces probabilistic context variables to characterize task feature distributions. This enables simultaneous learning of multi-task reward functions and average state of mind. During training, the discriminator takes states s t , actions a t , and average state of mind s a v g T o M as inputs, and outputs both task-specific rewards r ^ i s t , a t , s i T o M and predicted average state of mind s ^ a v g T o M . To achieve dynamic updates of state of mind, the average state of mind s ^ a v g T o M is recomputed using the LSTM every K steps based on the most recent expert demonstration trajectory data. Simultaneously, the framework minimizes the discriminator’s adversarial loss function L A I A L = E ξ π log  D θ s t , a t , υ t + E ξ π * log  1 D θ s t , a t , υ t + λ s ^ s v g T o M s s v g T o M 2 . During the training of the generator, the generator takes states s t and states of mind s i T o M as inputs, and outputs actions a t i π i a t i | s t , s i T o M , aiming to maximize the cumulative rewards E π i t r i s t , a t , s i T o M . Finally, the generator’s mixed data is utilized to update the mixed expert demonstration dataset, enhancing the quality of expert demonstrations and yielding superior demonstration data. Subsequently, reward learning is performed on the newly acquired expert demonstrations in preparation for the next training iteration, and this process continues until convergence is achieved.
Algorithm 1 Multi-task meta-adversarial mean-field IRL based on theory of mind
 
Input: Expert trajectories D E = ξ j E , initial parameters of r θ , π θ , q ψ
 
for iteration = 1 , , N do do
    
Sample training tasks T i p T , i 1 , 2 , , M ;
    
for all tasks T i do do
      
Obtain expert demos D E , T i ;
      
for For update = 1 , , K do do
         
Obtain generated demos D G , T i and mixed demons D T i ;
         
Infer state of mind and a batch of latent context variables from the sampled demonstrations: s a v g T o M and υ q ψ υ | ξ , ξ D T i ;
         
Update ψ to increase K m u t θ , ψ with gradients with samples from D T i ;
         
Update θ to increase K m u t θ , ψ with gradients with samples from D T i ;
         
Update θ to minimize the loss function of the discriminator: L A I A L = E ξ π log  D θ s t , a t , η ^ ψ , t , υ t + E ξ π * log  1 D θ s t , a t , η ^ ψ , t , υ t + λ s ^ a v g T o M s a v g T o M 2 ;
         
Update ω with TRPO to increase the following objective:
         
E s t , a t , η ^ ψ , t , υ t D T i log  D θ s t , a t , η ^ ψ , t , υ t ;
      
end for
    
end for
 
end for
 
Output: Learned inference model q ψ υ | ξ , reward function r θ s , a , υ and policies π θ a | s , υ ;
We analyze the computational complexity of the proposed TMMF-MTAIRL with respect to the number of tasks M, the trajectory length T (for ξ = { ( s t , a t ) } t = 1 T ), and the number of inner updates K in Algorithm 1. In each update, for each task T i , we sample trajectories ξ D and perform: (i) context inference of the latent task via q ψ ( υ | ξ ) (and the mutual-information-related updates), (ii) reward update of the discriminator D θ , and (iii) policy update for π ω . Let c ψ , c θ , and c ω denote the per-step (forward/backward) computational costs of q ψ , D θ , and π ω , respectively. Then the per-task cost of one inner update scales as O T ( c ψ + c θ + c ω ) , and the overall cost per outer iteration (over all M tasks and K inner updates) is O M K · T ( c ψ + c θ + c ω ) . The key to reducing complexity through mean-field lies in the modeling approach for cross-task interactions. If traditional pair-wise task interaction is adopted, the interaction-related computations usually increase quadratically with the number of tasks, and the complexity is O ( M 2 ) . In contrast, our method aggregates the influence of other tasks through the averaged state of mind, so that the main task interacts only with this mean-field representation instead of all M 1 tasks individually. As a result, the interaction-related complexity is reduced from quadratic to linear, that is, O ( M 2 K T ) O ( M K T ) . Moreover, since s a v g T o M is recomputed by the ToM encoder every K steps, the ToM recomputation cost is amortized over K inner updates, further improving practical efficiency. Therefore, the proposed algorithm reduces the computational complexity.

5. Experiments and Simulations

In this section, we use the point-maze environment and the rolling bearing fault diagnosis experiment to represent the performance of the proposed TMMF-MTAIRL algorithm for learning rewards and optimizing policies.

5.1. Point-Maze Environments

This environment is refactored from the D4RL repository, as introduced in [49]. The task involves a 2-DoF ball that is actuated by forces in the cartesian directions x and y, and must navigate toward a target goal within a closed maze. The environment can be initialized with different maze configurations of varying complexity. In the MuJoCo simulation, the target goal can be visualized as a red static ball, while the actuated ball is green. The control frequency of the ball is f = 10 Hz. Table 2 shows the values of control parameters used during the collection of the expert demonstrations. The values of control parameters used in the training process of TMMF-MTAIRL are listed in Table 3. Most hyperparameters listed in Table 2 and Table 3 were selected based on the successful configuration of similar environments and algorithms. Unless otherwise stated, we use the same set of hyperparameters across all tasks and environments. Empirically, we observe that the performance of TMMF-MTAIRL is robust to moderate variations of these parameters, which facilitates practical deployment.
For the convenience of experimental comparison, we make the following definitions. TaskRmean denotes the mean episodic rewards averaged over all tasks and runs; Mulinfo denotes the average mutual information between multiple tasks in Equation (13); MeanKL denotes the average KL divergence used for evaluating policy distribution shift across tasks; and dLoss denotes the discriminator’s loss function L A I A L averaged over training iterations; Rmean denotes the mean episodic rewards averaged over all runs; times indicates the running times.
To verify the performance of the proposed algorithm, we compared TMMF-MTAIRL with PEMIRL, and Meta-IRLSOT. All experimental results were obtained from five independent runs. Meta-inverse reinforcement learning for mean-field games via probabilistic context variables (PEMIRL) [20]: This method provides a deep latent variable MFG-IRL model for IRL in mean-field games, which can infer reward functions from different but structurally similar expert demonstration tasks. Importantly, it does not require prior knowledge of the underlying context or modifications to the MFG model itself. A meta-inverse reinforcement learning method for fast adaptation of trajectory prediction networks (Meta-IRLSOT) [18]: This Meta-learning-based RL method incorporates an IRL framework to explore trajectory-scene relationships, achieving task-level scene understanding. By introducing meta-learning for co-training, the model enhances its generalization to novel scenarios.
Figure 2a–f show the visualization of the learned reward function using the proposed TMMF-MTAIR at iteration 0, 20, 40, 60, 80, 99, respectively. The horizontal and vertical axes now denote the spatial coordinates of the point-maze environment, and the colorbar indicates the magnitude of the learned reward values. From Figure 2, it can be seen that the positional intuitive schematic diagrams of the target goal and the agent point are obtained during the learning process of rewards. The target goal’s position changes dynamically, and the agent aims to reach it.
Figure 3a–f show the results of loss 1, loss 2, loss 3, policy likelihood, KL, total loss for PEMIRL, Meta-IRLSOT, and TMMF-MTAIRL in the maze left-v0 environment. From these results, we can obtain that our proposed TMMF-MTAIRL has lower loss 1, loss 2, loss 3, policy likelihood, KL, and total loss than those of PEMIRL and Meta-IRLSOT during the pre-training process in the point-maze left-v0 environment. These results demonstrate that TMMF-MTAIRL outperforms both PEMIRL and Meta-IRLSOT.
Table 4 shows the training data obtained in point-maze left-v0, point-maze right-v0, and point-maze cont-0 for TMMF-MTAIRL, PEMIRL, and Meta-IRLSOT. From the results of point-maze left-v0 and point-maze right-v0, it can be seen that our proposed TMMF-MTAIRL has higher TaskRmean and Mulinfo, while exhibiting lower MeanKL, and dLoss, than PEMIRL and Meta-IRLSOT. Although some metrics obtained by our proposed TMMF-MTAIRL algorithm are not optimal, overall performance analysis indicates that it outperforms the other algorithms. To further illustrate the effectiveness of the proposed algorithm, we also collected the testing data in point-maze cont-v0 using TMMF-MTAIRL, PEMIRL, and Meta-IRLSOT to test invisible target points. The results of Rmean, TaskRmean, Mulinfo, MeanKL, and dLoss indicate that our proposed TMMF-MTAIRL consistently performs better than the other algorithms during testing.
Figure 4a,b illustrate that TMMF-MTAIRL achieves higher Rmean and lower times than PEMIRL, Meta-IRLSOT, and TMMF-MTAIRL without mean field in point-maze environments. Therefore, TMMF-MTAIRL demonstrates superior performance relative to the other algorithms used in this paper.

5.2. Rolling Bearing Fault Diagnosis Experiments

For comprehensive performance validation of the proposed method, the TMMF-MTAIRL algorithm is first used to learn the reward function, while simultaneously optimizing expert demonstrations throughout the training phase. Subsequently, RL is applied to classify bearing fault diagnosis data based on the learned reward function. All experimental results were obtained by averaging over 10 independent runs.
Figure 5 shows the rolling bearing fault test rig from Case Western Reserve University, which consists of a fan-end bearing, a motor, a drive-end bearing, a torque transducer/encoder, and a power meter [50]. The experiment collected normal bearing signals and (single-point) drive-end fault signals at sampling rates of 12,000 samples/second and 48,000 samples/second, respectively, whereas all fan-end fault signals were acquired at 12,000 samples/second. To validate the proposed method, the acquired vibration data were divided into four datasets (A, B, C, and D). Each dataset contains 10 distinct classes, with no unseen classes among these four datasets. On average, each class within a given dataset contains approximately 480,000 samples, indicating that the laboratory equipment was operated under each class condition to capture an average of 480,000 observations from vibration sensors.
In the fault classification process, the design of the reward function plays a crucial role in determining the accuracy of fault diagnosis. Therefore, we first employ TMMF-MTAIRL to learn the reward function from expert demonstrations, and then utilize the deep Q-Learning (DQN) algorithm to perform fault diagnosis and classification. The main framework for fault diagnosis based on the TMMF-MTAIRL and DQN algorithms is illustrated in Figure 6. First, the dataset is preprocessed using cross-validation to obtain the training set and validation set. Subsequently, a stacked autoencoder (SAE) is employed to extract the latent features of the data while simultaneously updating and preserving optimal parameters. We then select a portion of the training data as expert demonstration data and sample expert demonstration trajectories from it. Based on the varying preferences among these expert demonstration trajectories, the proposed TMMF-MTAIRL algorithm is employed to learn rewards and optimize the expert demonstration data, treating each trajectory’s reward learning as an independent task. Finally, a DQN algorithm that incorporates Bayesian search methodology and learned reward functions is implemented to perform fault classification.
Expert demonstrations D are constructed by sampling labeled trajectories ξ from the training set, which refer to the high-quality labeled vibration samples collected under controlled operating conditions from the Case Western Reserve University bearing test rig. A trajectory corresponds to a sequential decision process formed by sliding-window segmentation of a vibration time series. Therefore, a trajectory ξ = { ( s t , a t ) } t = 1 T represents a sequence of vibration windows and predicted diagnostic decisions. Additionally, each fault type can be viewed as a task because it defines a distinct diagnostic objective and induces a different state distribution.
In the bearing fault diagnosis experiment, to evaluate the performance of the TMMF-MTAIRL algorithm, the proposed TMMF-MTAIRL integrated with cross-validated Bayesian DQN (DQNB-TMMF-MTAIRL-5) was compared with the following four algorithms: (1) traditional deep Q-Learning algorithm (DQN) [51]; (2) Bayesian-based deep Q-Learning algorithm (DQN-Bayesian) [52]; (3) the algorithm combining TMMF-MTAIRL with Bayesian DQN (DQNB-TMMF-MTAIRL); and (4) a deep Q-learning algorithm incorporating Bayesian inference and cross-validation (DQN-Bayesian-5).
To further demonstrate the performance of the proposed algorithm, DQN, DQN-Bayesian, DQNB-TMMF-MTAIRL, DQN-Bayesian-5, and DQNB-TMMF-MTAIRL-5 are applied to fault diagnosis using the bearing fault diagnosis dataset B.
During the training process, the complexity of classification data and the design of reward function constrain the accuracy of fault classification using RL. Therefore, we analyze the cumulative rewards obtained during training for fault classification using DQN, DQN-Bayesian, DQNB-TMMF-MTAIRL, DQN-Bayesian-5, and DQNB-TMMF-MTAIRL-5, as shown in Figure 7. During the training process for fault diagnosis, the cumulative rewards learned by DQNB-TMMF-MTAIRL and DQNB-TMMF-MTAIRL-5 converge to 200 more rapidly than those achieved by DQN, DQN-Bayesian, and DQN-Bayesian-5 with manually designed reward functions. To further enhance model performance, the bearing fault diagnosis data was split into five folds via five-fold cross-validation, where four folds were used for training and one fold for validation in each iteration. As a result, DQNB-TMMF-MTAIRL-5 demonstrates the fastest convergence of cumulative rewards, indicating its superior capability in learning reward functions.
Figure 8 shows the accuracy of fault classification during the training process for the DQN, DQN-Bayesian, DQNB-TMMF-MTAIRL, DQN-Bayesian-5, and DQNB-TMMF-MTAIRL-5. Figure 9 shows the validation accuracy of the fault classification obtained using DQN-Beyasian, DQNB-TMMF-MTAIRL, DQN-Beyasian-5, and DQNB-TMMF-MTAIRL-5 algorithms. The proposed TMMF-MTAIRL, which explicitly models inter-task relationships, learns reward functions that mitigate the difficulty of manual reward design in RL. In Figure 8 and Figure 9, compared with DQN, DQN-Bayesian, DQN-Bayesian-5, and DQNB-AMEIRL-5, DQNB-TMMF-MTAIRL and DQNB-TMMF-MTAIRL-5 achieve better fault classification, resulting in higher accuracy in both fault classification and verification. The comparison with DQN and DQN-Bayesian is intended to demonstrate the advantage of learned rewards over manually engineered rewards in RL-based fault diagnosis. Furthermore, to improve the utility of bearing fault data, we adopted five-fold cross-validation for data preprocessing. This approach maximizes data utilization, reduces the risks of both overlearning and underlearning, and enhances the credibility of experimental findings. DQNB-TMMF-MTAIRL-5 without mean-field algorithm suffers from the lack of mean field, resulting in low exploration efficiency. Therefore, DQNB-TMMF-MTAIRL-5 algorithm achieves the highest fault classification accuracy on both the test set and the verification set.
To verify the robustness of the proposed TMMF-MTAIRL, we obtained the accuracy of fault classification as 0.97, 0.98, and 0.98, respectively when the multi-task scale M was 10, 15, and 20. The accuracy of this algorithm remains basically stable at around 0.97∼0.98 as the scale of multiple tasks changes, which indicates that TMMF-MTAIRL has good robustness.
The proposed TMMF-MTAIRL is optimized via an adversarial minimax objective. Under standard assumptions commonly adopted in adversarial IRL—such as sufficient capacity of discriminator network, accurate inner-loop optimization, and appropriate learning rates—the training dynamics admit stationary points where the induced policy distribution matches the expert trajectory distribution. Furthermore, the mutual-information regularization and mean-field approximation improve stability by preventing degenerate latent inference and reducing high-variance cross-task interactions. In addition, the results in Figure 7, Figure 8 and Figure 9 show that the proposed DQNB-TMMF-MTAIRL can converge. Therefore, the proposed framework enjoys conditional convergence properties and demonstrates stable empirical behavior.
From an application perspective, it is also important to distinguish the proposed approach from alternative fault diagnosis paradigms. Deep transfer learning methods for fault diagnosis typically rely on labeled data and supervised objectives, achieving strong performance when sufficient annotations are available. In contrast, the proposed TMMF-MTAIRL focuses on learning reward functions and policies from heterogeneous demonstrations without requiring explicit fault labels. These two paradigms address complementary problem settings, and integrating transfer learning representations into the proposed IRL framework is a promising direction for future research.
The proposed TMMF-MTAIRL can explicitly model the relationship between tasks and thus improve the explainability and adaptability across tasks, enabling the algorithm to learn more effective rewards and optimization policies compared to the other algorithms discussed in this paper.

6. Conclusions and Future Works

To overcome the challenges of learning rewards in the complex multi-task environment, a multi-task meta-adversarial mean-field IRL framework based on the theory of mind is proposed to enhance information interaction between partially heterogeneous tasks. In TMMF-MTAIRL, the mean-field theory reduces the computational complexity of learning rewards from fixed expert demonstrations in multi-task settings; the theory of mind improves the information sharing and transferability between multiple tasks, and the deep potential variables enhance the adaptability to novel tasks. These improvements jointly increase learning accuracy and reduce computational complexity in learning reward functions. Experiments in a maze-point environment and a rolling bearing fault diagnosis task demonstrate that TMMF-MTAIRL can learn higher-quality reward functions and policies through continuous iterative updates, thereby outperforming the original expert demonstrations.
While the experimental evaluation focuses on representative benchmark environments and a real-world fault diagnosis dataset, the proposed framework is not limited to these settings. The modular design of the ToM encoder, mean-field approximation, and adversarial IRL objective allows straightforward extension to other domains. Evaluating the method on a wider range of environments and large-scale benchmarks will be explored in future work. In the future work, we will focus on the following three aspects: (1) Extending the proposed TMMF-MTAIRL algorithm to real-world environments for policy optimization, beyond the point-maze and rolling bearing fault experiments used for initial validation; (2) Further enhancing the reward learning performance of TMMF-MTAIRL in ultra-large-scale multi-agent and highly complex multi-task environments; and (3) Deep transfer learning methods and the proposed TMMF-MTAIRL address complementary problem settings, and integrating transfer learning representations into the proposed IRL framework is a promising direction for future research.

Author Contributions

Conceptualization, L.S. and C.C.; methodology, L.S.; validation, C.C. and K.Y.; formal analysis, C.C. and K.Y.; investigation, C.C. and L.S.; resources, L.S. and K.Y.; writing original draft preparation, L.S.; writing-review and editing, C.C. and K.Y.; visualization, L.S.; supervision, K.Y. and C.C.; project administration, L.S. and K.Y. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by Postdoctoral Research Startup Fund of the Big Picture Center of Hangzhou City University (No.201000-584105/002).

Data Availability Statement

The original contributions presented in this study are included in the article. Further inquiries can be directed to the corresponding author.

Acknowledgments

Thanks to “the Research Center for High-Performance Computing of Ultra-Large-Scale Graph Data at Hangzhou City University”, “the Zhejiang Provincial Engineering Research Center for Real-Time Digital and Intelligent Technology in Urban Safety Governance”, and “the Supercomputing Center of Hangzhou City University” for providing the research start-up funds and some experimental hardware conditions for the research.

Conflicts of Interest

All authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as potential conflicts of interest.

Appendix A

Ziebart conducted extensive and in-depth research on MaxEnt IRL, publishing multiple articles in this area and completing his doctoral dissertation on MaxEnt IRL. Based on the theoretical derivations of MaxEnt IRL presented by Ziebart in Section 2 and Section 3 of reference [20], it can be concluded that the policies inducing the trajectory distribution in Equation (12) conform to the following energy-based form of MaxEnt IRL:
π θ a t | s t , s i T o M , υ = e Q s o f t s t , s i T o M , a t , υ V s o f t s t , s i T o M , υ
Q s o f t s t , s i T o M , a t , υ = r θ s t , s i T o M , a t , υ + log  E s t + 1 P · | s t , s i T o M , a t , υ e V s o f t s t + 1 , s i T o M , υ
V s o f t s t , s i T o M , υ = log  A e Q s o f t s t , s i T o M , a , υ d a
The optimal solution of the entropy-regularized IRL problem in Equation (11) can be obtained by solving for the optimal policy in Equation (10).
max π E π t = 1 T r θ s t , s i T o M , a t , η ^ ψ , t , υ log  π a t | s t , s i T o M , η ^ ψ , t , υ
With the basic knowledge of the maximum entropy adversarial IRL in Section 3.2, Equation (A4) can be interpreted as the training objective of the adaptive sampler π θ in adversarial IRL. Accordingly, we can obtain the optimal policy π θ * corresponding to p θ , ψ ξ | υ in Equation (12).
Next, we need to compute K m u t θ , ψ with respect to the parameters in the main objective function defined in Equation (16). The gradient of K m u t θ , ψ with respect to the parameters is as follows:
ψ K m u t θ , ψ = E υ p υ , ξ p θ ξ | υ 1 q υ | ξ , ψ q υ | ξ , ψ ψ

Appendix B

The gradient of K m u t θ , ψ with respect to θ is as follows:
θ K m u t θ , ψ = E υ p υ , ξ p θ ξ | υ log  q υ | ξ , ψ θ log  p θ ξ | υ
From Equation (12), p θ ξ | υ is the energy-based distribution. The gradient of log  p ξ | υ , θ with respect to θ is obtained:
log  p ξ | υ , θ θ = θ log  η s 1 T t = 1 P s t + 1 , s i T o M | s t , s i T o M , a t , η t · | υ + T t = 1 r θ s t , s i T o M , a t , η ^ ψ , t , υ log  Z θ = t = 1 T θ r θ s t , s i T o M , a t , η ^ ψ , t , υ θ log  Z θ = t = 1 T θ r θ s t , s i T o M , a t , η ^ ψ , t , υ E ξ p ξ | υ , θ log  q υ | ξ , ψ θ log  p θ ξ | υ
Substituting the derivation result of log  p ξ | υ , θ θ into Equation (A7),
E υ p ( υ ) , τ p θ ( τ | υ ) [ log  q ψ ( υ | τ ) [ t = 1 T θ r θ ( s t , s i T o M ) , a t , η ^ ψ , t , υ E τ p θ ( τ | υ ) t = 1 T θ r θ ( s t + 1 , s i T o M ) , a t + 1 , η ^ ψ , t + 1 , υ ] ]
With Lemma 1, when θ is trained to get the optimal value, an unbiased estimate can be constructed using the samples sampled from p θ * ξ | υ .

Appendix C

Table A1 systematically lists all primary variables, operators, and functions used throughout the paper, along with their definitions and domain descriptions.
Table A1. Summary of key mathematical notations.
Table A1. Summary of key mathematical notations.
NotationMeaning
S State space
A Action space
RReward space
γ Discount factor
P s s a State transition distribution
D Expert demonstrations
ϕ s i Feature function of each reward
z θ Partition function
p s t + 1 | s t , a t State transition probability
MThe number of expert demonstration trajectories
π E Expert strategy
ξ j Expert demonstration trajectories
D θ s , a Discriminator
U Value space
R s , a , η , υ Reward functions of expert different tasks
r s , a , η , υ Corresponding reward functions for different tasks
r θ s t , s i T o M , a , η , υ Parametrized reward function
η E · | υ η -conditional mean-field flow
η E · | υ υ -conditional mind flow
π E · | υ Policy flow
p η E , π E τ Marginal distribution of expert policy
p υ A prior distribution
π i a s , s i T o M Policies
s i T o M State of mind
T i Tasks
T ˜ Average task
s a v g T o M Average state of mind
p η , π The mind-based context-conditional trajectory distribution induced by a policy π
q ψ υ | ξ Context variable inference model
p θ ξ | υ Conditional distribution
p θ υ | ξ Posterior distribution
ϕ s t Feature function of each reward
KThe number of inner updates
TTrajectory length

Appendix D

The Meta-adversarial mean-field IRL with context-conditional policy is proposed to learn rewards and optimize policy from constantly updated mixed expert demonstrations, improving reward learning precision in partially heterogeneous multi-task environments. The specific contributions and innovative points are shown in Table A2.
Table A2. Summary of contributions and novelty of the proposed TMMF-MTAIRL.
Table A2. Summary of contributions and novelty of the proposed TMMF-MTAIRL.
ContributionNovelty/Key Idea
Embedding ToM for enhanced multi-task knowledge transferIntroduces ToM-based task representations to explicitly model inter-task relationships and better leverage environmental/task interaction information, enabling effective knowledge transfer across tasks
Mean-field modeling of task interactions to reduce computational complexityApproximates multi-task coupling by modeling interactions between the main task and the average of remaining tasks (mean-field approximation), significantly reducing complexity caused by pair-wise task interactions
Latent task variable inference for task-specific adaptation under the maximum entropy frameworkAccurately infers latent task variables from sampled trajectories of novel tasks and derives task-specific adaptive reward functions and optimal policies under the maximum entropy IRL formulation
Continuously updatable adversarial generative learning frameworkConstructs an iterative adversarial training procedure that continuously updates and optimizes the generator and discriminator, improving the quality and utility of mixed expert demonstrations

References

  1. Zhang, X.Y.; Cai, X.Y.; Liu, B.; Huang, W.D.; Zhu, S.C.; Qi, S.Y.; Yang, Y.D. Differentiable Information Enhanced Model-Based Reinforcement Learning. In Proceedings of the 39th Annual AAAI Conference on Artificial Intelligence, Philadelphia, PA, USA, 25 February–4 March 2025; pp. 1–9. [Google Scholar]
  2. Mohsin, M.A.; Rizwan, H.; Umer, M.; Bhattacharya, S.; Bilal, A.; Cioffi, J.M. Hierarchical Deep Reinforcement Learning for Adaptive Resource Management in Integrated Terrestrial and Non-Terrestrial Networks. In Proceedings of the 39th Annual AAAI Conference on Artificial Intelligence, Philadelphia, PA, USA, 25 February–4 March 2025; pp. 1–8. [Google Scholar]
  3. Li, D.D.; Xie, L.; Wang, Z.; Yang, H. Brain Emotion Perception Inspired EEG Emotion Recognition with Deep Reinforcement Learning. IEEE Trans. Neural Netw. Learn. Syst. 2024, 35, 12979–12992. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  4. Lv, C.L.; Lv, X.L.; Wang, Z.Y.; Zhao, T.Q.; Tian, W.; Zhou, Q.Q.; Zeng, L.; Wan, M.; Liu, C.G. A focal quotient gradient system method for deep neural network training. Appl. Soft Comput. 2025, 184, 113704. [Google Scholar] [CrossRef] [Scilit]
  5. Wu, X.; Zhang, Y.T.; Lai, C.K.; Yang, M.Z.; Yang, G.L.; Wang, H.H. A Novel Centralized Federated Deep Fuzzy Neural Network with Multiobjectives Neural Architecture Search for Epistatic Detection. IEEE Trans. Fuzzy Syst. 2025, 33, 94–107. [Google Scholar] [CrossRef] [Scilit]
  6. Li, W.L.; Qiu, F.; Li, L.X.; Zhang, Y.N.; Wang, K. Simulation of Vehicle Interaction Behavior in Merging Scenarios: A Deep Maximum Entropy-Inverse Reinforcement Learning Method Combined with Game Theory. IEEE Trans. Intell. Veh. 2024, 9, 1079–1093. [Google Scholar] [CrossRef] [Scilit]
  7. Nan, J.F.; Deng, W.W.; Zhang, R.Z.; Zhao, R.; Wang, Y.; Ding, J. Car-Following Behavior Modeling with Maximum Entropy Deep Inverse Reinforcement Learning. IEEE Trans. Intell. Veh. 2024, 9, 3998–4010. [Google Scholar] [CrossRef] [Scilit]
  8. Li, J.H.; Wu, H.; He, Q.; Zhao, Y.J.; Wang, X. Dynamic QoS Prediction with Intelligent Route Estimation Via Inverse Reinforcement Learning. IEEE Trans. Serv. Comput. 2024, 17, 509–523. [Google Scholar] [CrossRef] [Scilit]
  9. Song, L.; Li, D.Z.; Wang, X.; Xu, X. AdaBoost Maximum Entropy Deep Inverse Reinforcement Learning with Truncated Gradient. Inform. Sci. 2022, 602, 328–350. [Google Scholar] [CrossRef] [Scilit]
  10. Wang, P.; Li, H.H.; Chan, C.Y. Meta-adversarial Inverse Reinforcement Learning for Decision-making Tasks. In Proceedings of the 2021 IEEE International Conference on Robotics and Automation, Xi’an, China, 30 May–5 June 2021; pp. 12632–12638. [Google Scholar]
  11. Chen, J.B.; Yu, T.; Pan, Z.N.; Zhang, M.Y.; Lu, G.H.; Zhu, K.D. Stochastic Dynamic Power Dispatch with Human Knowledge Transfer Using Graph-GAN Assisted Inverse Reinforcement Learning. IEEE Trans. Smart Grid 2024, 15, 3303–3315. [Google Scholar] [CrossRef] [Scilit]
  12. Wang, Y.J.; Niu, Y.C.; Zhu, W.Y.; Chen, W.Q.; Li, Q.; Wang, T. Predicting Pedestrian Crossing Behavior at Unsignalized Mid-Block Crosswalks Using Maximum Entropy Deep Inverse Reinforcement Learning. IEEE Trans. Intell. Transp. Syst. 2024, 25, 3685–3698. [Google Scholar] [CrossRef] [Scilit]
  13. Bighashdel, A.; Meletis, P.; Jancura, P.; Dubbelman, G. Deep Adaptive Multi-intention Inverse Reinforcement Learning. In Proceedings of the Joint European Conference on Machine Learning and Knowledge Discovery in Databases, Bilbao, Spain, 13–17 September 2021; pp. 206–221. [Google Scholar]
  14. Krishnan, S.; Garg, A.; Liaw, R.; Miller, L.; Pokorny, F.T.; Goldberg, K. Hirl: Hierarchical Inverse Reinforcement Learning for Long-horizon Tasks with Delayed Rewards. arXiv 2016, arXiv:1604.06508. [Google Scholar] [CrossRef] [Scilit]
  15. Zhang, N.; Zhao, Y.J.; Yang, M.G.; Dai, S.L. Hierarchical Reinforcement Learning with Demonstration for Long-Horizon Robotic Manipulation. Arab. J. Sci. Eng. 2025. [Google Scholar] [CrossRef] [Scilit]
  16. Glazer, N.; Navon, A.; Shamsian, A.; Fetaya, E. Multi Task Inverse Reinforcement Learning for Common Sense Reward. In Proceedings of the Thirteenth International Conference on Learning Representations, Singapore, 24–28 April 2025; pp. 1–13. [Google Scholar]
  17. Tang, Q.H.; Guo, H.Y.; Chen, Q.X. Bidding Strategy Evolution Analysis Based on Multi-task Inverse Reinforcement Learning. Electr. Power Syst. Res. 2022, 212, 108286. [Google Scholar] [CrossRef] [Scilit]
  18. Yang, B.; Lu, Y.N.; Wan, R.; Hu, H.Y.; Yang, C.C.; Ni, R.R. Meta-IRLSOT++: A meta-Inverse Reinforcement Learning Method for Fast Adaptation of Trajectory Prediction Networks. Expert Syst. Appl. 2024, 240, 122499. [Google Scholar] [CrossRef] [Scilit]
  19. Chen, J.Y.; Tamboli, D.; Lan, T.; Aggarwal, V. Multi-task Hierarchical Adversarial Inverse Reinforcement Learning. In Proceedings of the 40th International Conference on Machine Learning, Honolulu, HI, USA, 23–29 July 2023; pp. 4895–4920. [Google Scholar]
  20. Chen, Y.; Lin, X.; Yan, B.; Zhang, L.B.; Liu, J.M.; Tan, N.O.; Witbrock, M. Meta-Inverse Reinforcement Learning for Mean Field Games via Probabilistic Context Variables. In Proceedings of the AAAI Conference on Artificial Intelligence, Vancouver, BC, Canada, 20–27 February 2024; pp. 11407–11415. [Google Scholar]
  21. Ghasemipour, S.K.S.; Gu, S.X.; Zemel, R. SMILe: Scalable Meta Inverse Reinforcement Learning through Context-conditional Policies. In Proceedings of the 33rd Conference on Neural Information Processing Systems, Vancouver, BC, Canada, 8–14 December 2019; pp. 1–11. [Google Scholar]
  22. Yu, L.T.; Yu, T.H.; Finn, C.; Ermon, S. Meta-Inverse Reinforcement Learning with Probabilistic Context Variables. In Proceedings of the 33rd Conference on Neural Information Processing Systems, Vancouver, BC, Canada, 8–14 December 2019; pp. 11772–11783. [Google Scholar]
  23. Yoo, S.W.; Seo, S.W. Learning Multi-Task Transferable Rewards via Variational Inverse Reinforcement Learning. In Proceedings of the 2022 International Conference on Robotics and Automation, Pennsylvania, PA, USA, 23–27 May 2022; pp. 434–440. [Google Scholar]
  24. Gleave, A.; Habryka, O. Multi-task Maximum Entropy Inverse Reinforcement Learning. arXiv 2018, arXiv:1805.08882. [Google Scholar] [CrossRef] [Scilit]
  25. Baert, M.; Mazzaglia, P.; Leroux, S.; Simoens, P. Maximum Causal Entropy Inverse Constrained Reinforcement Learning. Mach. Learn. 2025, 114, 103. [Google Scholar] [CrossRef] [Scilit]
  26. Cheng, G.R.; Dong, L.; Cai, W.Z.; Sun, C.Y. Multi-Task Reinforcement Learning with Attention-Based Mixture of Experts. IEEE Robot Autom. Lett. 2023, 8, 3812–3819. [Google Scholar] [CrossRef] [Scilit]
  27. Vazquez-Chanlatte, M.; Seshia, S.A. Maximum Causal Entropy Specification Inference from Demonstrations. arXiv 2020, arXiv:1907.11792. [Google Scholar] [CrossRef] [Scilit]
  28. Nishi, K.; Shimosaka, M. Fine-Grained Driving Behavior Prediction via Context-Aware Multi-Task Inverse Reinforcement Learning. In Proceedings of the 2020 IEEE International Conference on Robotics and Automation, Paris, France, 31 May–4 June 2020; pp. 2281–2287. [Google Scholar]
  29. Song, L.; Li, D.Z.; Xu, X. Adaptive Generative Adversarial Maximum Entropy Inverse Reinforcement Learning. Inform. Sci. 2025, 695, 121712. [Google Scholar] [CrossRef] [Scilit]
  30. Wu, K.Y.; Wu, F.G.; Lin, Y.J.; Zhao, J.S. Stable Control Policy and Transferable Reward Function via Inverse Reinforcement Learning. In Proceedings of the 2023 9th International Conference on Computing and Artificial Intelligence, Tianjin, China, 17–20 March 2023; pp. 733–742. [Google Scholar]
  31. Finn, C.; Levine, S.; Abbeel, P. Guided cost learning: Deep Inverse Optimal Control via Policy Optimization. In Proceedings of the 33rd International Conference on International Conference on Machine Learning, New York, NY, USA, 19–24 June 2016; pp. 49–58. [Google Scholar]
  32. Venuto, D.; Chakravorty, J.; Boussioux, L.; Wang, J.H.; McCracken, G.; Precup, D. Oirl: Robust Adversarial Inverse Reinforcement Learning with Temporally Extended Actions. arXiv 2002, arXiv:2002.09043. [Google Scholar]
  33. Wang, P.; Liu, D.P.; Chen, J.Y.; Li, H.H.; Chan, C.Y. Decision Making for Autonomous Driving via Augmented Adversarial Inverse Reinforcement Learning. In Proceedings of the 2021 IEEE International Conference on Robotics and Automation, Xi’an, China, 30 May–5 June 2021; pp. 1036–1042. [Google Scholar]
  34. Sun, J.K.; Yu, L.T.; Dong, P.Q.; Lu, B.; Zhou, B.L. Adversarial Inverse Reinforcement Learning with Self-attention Dynamics Model. IEEE Rob. Autom. Lett. 2021, 6, 1880–1886. [Google Scholar] [CrossRef] [Scilit]
  35. Sestini, A.; Kuhnle, A.; Bagdanov, A.D. Demonstration Efficient Inverse Reinforcement Learning in Procedurally Generated Environments. arXiv 2020, arXiv:2012.02527. [Google Scholar] [CrossRef] [Scilit]
  36. Yang, Y.D.; Luo, R.; Li, M.; Zhou, M.; Zhang, W.N.; Wang, J. Mean Field Multi-Agent Reinforcement Learning. In Proceedings of the 35th International Conference on Machine Learning, Stockholm, Sweden, 10–15 July 2018; pp. 5571–5580. [Google Scholar]
  37. Wang, X.Q.; Ke, L.J.; Zhang, G.W.; Zhu, D.P. Adaptive Mean Field Multi-agent Reinforcement Learning. Inform. Sci. 2024, 669, 120560. [Google Scholar] [CrossRef] [Scilit]
  38. Yu, C. Hierarchical Mean-Field Deep Reinforcement Learning for Large-Scale Multiagent Systems. In Proceedings of the AAAI Conference on Artificial Intelligence, Vancouver, BC, Canada, 20–27 February, 2023; pp. 11744–11752. [Google Scholar]
  39. Hao, Q.Y.; Huang, W.Z.; Feng, T.; Yuan, J.; Li, Y. GAT-MF: Graph Attention Mean Field for Very Large Scale Multi-Agent Reinforcement Learning. In Proceedings of the 29th ACM SIGKDD Conference on Knowledge Discovery and Data Mining, New York, NY, USA, 6–10 August 2023; pp. 685–697. [Google Scholar]
  40. Chen, Y.; Zhang, L.B.; Liu, J.M.; Witbrock, M. Adversarial Inverse Reinforcement Learning for MeanField Games. In Proceedings of the 2023 International Conference on Autonomous Agents and Multiagent Systems, London, UK, 29 May–2 June 2023; pp. 1088–1096. [Google Scholar]
  41. Wu, H.C.; Sequeira, P.; Pynadath, D.V. Multiagent Inverse Reinforcement Learning via Theory of Mind Reasoning. In Proceedings of the 22nd International Conference on Autonomous Agents and Multiagent Systems, London, UK, 29 May–2 June 2023; pp. 708–716. [Google Scholar]
  42. Wei, R.; Zeng, S.; Li, C.L.; Garcia, A.; McDonald, A.; Hong, M.Y. A Bayesian Approach to Robust Inverse Reinforcement Learning. In Proceedings of the 7th Conference on Robot Learning, Atlanta, GA, USA, 6–9 November 2023; pp. 1–19. [Google Scholar]
  43. Oguntola, I.; Campbell, J.; Stepputtis, S.; Sycara, K. Theory of Mind as Intrinsic Motivation for Multi-Agent Reinforcement Learning. In Proceedings of the First Workshop on Theory of Mind in Communicating Agents, Honolulu, HI, USA, 10 July 2023; pp. 1–8. [Google Scholar]
  44. Wang, Y.F.; Zhong, F.W.; Xu, J.; Wang, Y.Z. Tom2c: Target-oriented Multi-agent Communication and Cooperation with Theory of Mind. In Proceedings of the International Conference on Learning Representations, Virtual Event, 25–29 April 2022; pp. 1–17. [Google Scholar]
  45. Shi, H.B.; Li, J.C.; Chen, S.C.; Hwang, K.S. A behavior Fusion Method based on Inverse Reinforcement Learning. Inform. Sci. 2022, 609, 429444. [Google Scholar] [CrossRef] [Scilit]
  46. Alsaleh, R.; Sayed, T. Markov-game Modeling of Cyclist-pedestrian Interactions in Shared Spaces: A Multi-agent Adversarial Inverse Reinforcement Learning Approach. Transp. Res. Part C Emerg. Technol. 2021, 128, 103191. [Google Scholar] [CrossRef] [Scilit]
  47. Chen, Y.; Zhang, L.B.; Liu, J.M.; Hu, S.Y. Individual-Level Inverse Reinforcement Learning for MeanField Games. In Proceedings of the 21st International Conference on Autonomous Agents and Multiagent Systems, Virtual Event, 9–16 May 2022; pp. 253–262. [Google Scholar]
  48. Li, Y.Z.; Song, J.M.; Ermon, S. InfoGAIL: Interpretable Imitation Learning From Visual Demonstrations. In Proceedings of the 31st International Conference on Neural Information Processing Systems, Long Beach, CA, USA, 3–9 December 2017; pp. 3815–3825. [Google Scholar]
  49. Fu, J.; Kumar, A.; Nachum, O.; Tucker, G.; Levine, S. D4RL: Datasets for Deep Data-Driven Reinforcement Learning. arXiv 2021, arXiv:2004.07219. [Google Scholar]
  50. Fan, S.; Zhang, X.M.; Song, Z.H. Imbalanced Sample Selection with Deep Reinforcement Learning for Fault Diagnosis. IEEE Trans. Ind. Inf. 2022, 18, 2518–2527. [Google Scholar] [CrossRef] [Scilit]
  51. Mismar, F.B.; Evans, B.L. Deep Q-Learning for Self-organizing Networks Fault Management and Radio Performance Improvement. In Proceedings of the 52nd Asilomar Conference on Signals, Systems, and Computers, Pacific Grove, CA, USA, 28–31 October 2018; pp. 1457–1461. [Google Scholar]
  52. Zhou, H.; Aral, A.; Brandić, I.; Erol-Kantarc, M. Multiagent Bayesian Deep Reinforcement Learning for Microgrid Energy Management under Communication Failures. IEEE Internet Things J. 2022, 9, 11685–11698. [Google Scholar] [CrossRef] [Scilit]
Figure 1. The overall structure framework of the multi-task meta-adversarial mean-field IRL based on theory of mind.
Figure 1. The overall structure framework of the multi-task meta-adversarial mean-field IRL based on theory of mind.
Mathematics 14 00691 g001
Figure 2. Visualization of the learned rewards: (af) are obtained at iteration 0, 20, 40, 60, 80, 99, respectively.
Figure 2. Visualization of the learned rewards: (af) are obtained at iteration 0, 20, 40, 60, 80, 99, respectively.
Mathematics 14 00691 g002
Figure 3. The results of PEMIRL, Meta-IRLSOT, and TMMF-MTAIRL in the point-maze left-v0 environment.
Figure 3. The results of PEMIRL, Meta-IRLSOT, and TMMF-MTAIRL in the point-maze left-v0 environment.
Mathematics 14 00691 g003
Figure 4. Visualization of the learned rewards in point-maze environments.
Figure 4. Visualization of the learned rewards in point-maze environments.
Mathematics 14 00691 g004
Figure 5. Rolling bearing fault experiment rig.
Figure 5. Rolling bearing fault experiment rig.
Mathematics 14 00691 g005
Figure 6. Framework of the fault diagnosis with TMMF-MTAIRL and DQN.
Figure 6. Framework of the fault diagnosis with TMMF-MTAIRL and DQN.
Mathematics 14 00691 g006
Figure 7. Cumulative rewards of DQN, DQN-Bayesian, DQNB-TMMF-MTAIRL, DQN-Bayesian-5, and DQNB-TMMF-MTAIRL-5. Different line styles and markers are used to distinguish methods.
Figure 7. Cumulative rewards of DQN, DQN-Bayesian, DQNB-TMMF-MTAIRL, DQN-Bayesian-5, and DQNB-TMMF-MTAIRL-5. Different line styles and markers are used to distinguish methods.
Mathematics 14 00691 g007
Figure 8. Accuracy of fault classification. Different line styles and markers are used to distinguish methods.
Figure 8. Accuracy of fault classification. Different line styles and markers are used to distinguish methods.
Mathematics 14 00691 g008
Figure 9. Validation accuracy of fault classification. Different line styles and markers are used to distinguish methods.
Figure 9. Validation accuracy of fault classification. Different line styles and markers are used to distinguish methods.
Mathematics 14 00691 g009
Table 1. Comparisons of related adversarial IRL methods based on mean field and ToM.
Table 1. Comparisons of related adversarial IRL methods based on mean field and ToM.
MethodsFaced ProblemsAdvantagesReferences
Behavioral fusion IRLDifficult to adapt to
dynamic environments
Estimations based on
trajectory distributions
have small differences
[45]
Model-based IRL[34]
Semantic-based augmented adversarial IRL[33]
Hierarchical multi-task adversarial IRLDifficult to adapt to
multi-task scenarios
Capturing information
among multiple tasks
in real time
[19]
Meta-adversarial IRL[20,21,22]
Variational multi-task IRL[23]
Causal entropy-based multi-task IRL[27]
Mean-field actor–critic algorithmsComplexity of large-scale
interactive computing
and modeling
Reducing computational
complexity, improving
generalization ability
[36]
GAT-MF[39]
HMF-based DRL[46]
ToM-based IRLModeling of multi-agent
interactions is difficult;
knowledge transfer for
heterogeneous tasks is challenging
Enhanced cognitive
depth and
generalization
ability of agents
 
Bayesian MoT-based IRL[41]
Intrinsically motivated ToM-based IRL[42]
Goal-oriented IRL based on ToM[43]
Table 2. Values of control parameters in data collection.
Table 2. Values of control parameters in data collection.
Control ParametersValues
Number of iterations2000
Batch size20,000
Maximum path length500
Discount factor0.99
Step size0.01
Table 3. Values of control parameters in TMMF-MTAIRL.
Table 3. Values of control parameters in TMMF-MTAIRL.
Control ParametersValues
Number of iterations3000
Batch size16
Meta batch size50
Maximum path length100
Discount factor0.99
Step size0.01
Number of pre-training epochs1000
Entropy weight1.0
Information coefficient0.1
Table 4. The training data obtained in point-maze environments.
Table 4. The training data obtained in point-maze environments.
EnvironmentsMethodsTaskRmeanMulinfoMeanKLdLoss
Point-mazePEMIRL 0.143 ± 0.022 0.275 ± 0.026 0.106 ± 0.003 0.002 ± 0.001
left-v0Meta-IRLSOT 0.128 ± 0.010 0.248 ± 0.016 0.317 ± 0.007 1.3 × 10 5 ± 0.000
 TMMF-MTAIRL 0.125 ± 0.009 0.112 ± 0.013 0.079 ± 0.002 0.0004 ± 0.000
Point-mazePEMIRL 0.171 ± 0.018 0.420 ± 0.028 0.068 ± 0.004 0.0007 ± 0.000
right-v0Meta-IRLSOT 0.187 ± 0.013 0.432 ± 0.020 0.037 ± 0.006 0.0009 ± 0.000
 TMMF-MTAIRL 0.171 ± 0.008 0.069 ± 0.019 0.029 ± 0.001 0.0002 ± 0.000
Point-mazePEMIRL 0.179 ± 0.021 0.384 ± 0.024 0.105 ± 0.003 0.005 ± 0.001
cont-v0Meta-IRLSOT 0.195 ± 0.015 0.367 ± 0.020 0.075 ± 0.005 0.007 ± 0.001
 TMMF-MTAIRL 0.115 ± 0.004 0.283 ± 0.017 0.083 ± 0.002 0.003 ± 0.000
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Song, L.; Yang, K.; Chen, C. Adversarial Distributed Multi-Task Meta-Inverse Reinforcement Learning with Theory of Mind and Mean-Field Method. Mathematics 2026, 14, 691. https://doi.org/10.3390/math14040691

AMA Style

Song L, Yang K, Chen C. Adversarial Distributed Multi-Task Meta-Inverse Reinforcement Learning with Theory of Mind and Mean-Field Method. Mathematics. 2026; 14(4):691. https://doi.org/10.3390/math14040691

Chicago/Turabian Style

Song, Li, Kun Yang, and Chao Chen. 2026. "Adversarial Distributed Multi-Task Meta-Inverse Reinforcement Learning with Theory of Mind and Mean-Field Method" Mathematics 14, no. 4: 691. https://doi.org/10.3390/math14040691

APA Style

Song, L., Yang, K., & Chen, C. (2026). Adversarial Distributed Multi-Task Meta-Inverse Reinforcement Learning with Theory of Mind and Mean-Field Method. Mathematics, 14(4), 691. https://doi.org/10.3390/math14040691

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop