# US 2025/0165794 A1 · Systems and methods for inverse constraint reinforcement from a mixture of experts

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2025/0165794 A1
- Document ID: US20250165794A1
- Status: Published application
- Kind: A1
- Application number: 18/512,619
- Filed: 2023-11-17
- Published: 2025-05-22
- Earliest claimed: 2023-11-17
- Applicants: Huawei Technologies Canada Co., Ltd.
- Inventors: Guiliang LIU; Pascal POUPART; Mohammed ELMAHGIUBI; Kasra REZAEE
- Web page: https://patentgrep.com/patent/US20250165794A1

## CPC

- G06N 3/092: Reinforcement learning
- G06N 3/006: based on simulated virtual individual or collective life forms, e.g. social simulations or particle swarm optimisation [PSO]
- G06N 3/045: Combinations of networks
- G06N 3/08: Learning methods
- G06N 7/01: Probabilistic graphical models, e.g. probabilistic networks
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

Methods and processors for inferring constraints for reinforcement learning of an Artificial Intelligence (AI) model for subsequent deployment of that AI model in an environment. The method includes accessing a set of expert trajectories, each expert trajectory comprising a sequence of expert state-action pairs, a given one of the sequences of the expert state-action pairs including information about a given state of the environment and a corresponding action that is to be executed in response to the given state, partitioning the set of expert trajectories into one or more subsets of expert trajectories by employing a trained neural network, each subset being associated with one of the agents and determining, for each agent, an agent constraint based on the corresponding subset of expert trajectories.

## Claims

### Claim 1

A computer-implemented method for inferring constraints for reinforcement learning of an Artificial Intelligence (AI) model for subsequent deployment of that AI model in an environment, the method comprising:
accessing a set of expert trajectories, each expert trajectory comprising a sequence of expert state-action pairs, a given one of the sequences of the expert state-action pairs including information about a given state of the environment and a corresponding action that is to be executed in response to the given state;
partitioning the set of expert trajectories into one or more subsets of expert trajectories by employing a trained neural network, each subset being associated with one of the agents; and
determining, for each agent, an agent constraint based on the corresponding subset of expert trajectories.

### Claim 2 (depends on 1)

The method of claim 1, further comprising:
accessing a set of policies, each policy comprising a sequence of state-action pairs, each state-action pair including information about a given state of the environment and a corresponding action to be executed in response to the environment being identified as being in said state, an execution of the policy aiming at maximizing a reward; and
adjusting one or more policies of the set of policies based on the one or more constraints for each of the associated agents.

### Claim 3 (depends on 1)

The method of claim 1, wherein the trained neural network is configured to determine an agent based on an input comprising one or more expert trajectories.

### Claim 4 (depends on 3)

The method of claim 3, wherein, for each expert trajectory, the agent is determined by:
zE=argmaxz pψ(τE|z)
where zE is the agent, τE is the expert trajectory and pψ is a conditional flow-based estimation model.

### Claim 5 (depends on 4)

The method of claim 4, wherein the trained neural network is trained to compute state-action density:
ρ
π
(
s
,
a
)
=
(
1
-
γ
)
⁢
π
⁡
(
a
❘
s
)
⁢
∑
t
=
0
∞
⁢
γ
t
⁢
p
⁡
(
s
t
=
s
❘
π
)
where p(st=s|π) is the probability density of state s at time step t following policy π.

### Claim 6 (depends on 1)

The method of claim 1, wherein determining a constraint comprises employing a permissibility function ϕω such that:
𝔼
τ
~
π
[
∏
(
s
,
a
)
∈
τ
ϕ
ω
(
s
,
a
)
]
≥
ϵ
where the permissibility function ϕω is implemented as a neural network, ω maps parameters of the neural network and ε is a pre-determined probability.

### Claim 7 (depends on 1)

The method of claim 1, wherein adjusting a policy for a given agent comprises:
determining an expert trajectory distribution π(τ|z);
determining an agent identification likelihood
p
ψ
(
z
❘
τ
)
=
∏
(
s
,
a
)
∈
τ
⁢
p
ψ
(
s
,
a
❘
z
)
∑
z
′
⁢
exp
⁢
∏
(
s
,
a
)
∈
τ
⁢
p
ψ
(
s
,
a
❘
z
′
)
;
determining a cumulative reward π(τ|z)[Σt=0Tγtr(st,at)]; and
adjusting the policy based on a target objective expressed as:
Min
π
-
𝔼
π
⁡
(
τ
❘
z
)
[
∑
t
=
0
T
γ
t
⁢
r
⁡
(
s
t
,
a
t
)
+
a
1
⁢
log
[
p
ψ
(
z
❘
τ
)
]
]
-
(
α
2
-
α
1
)
⁢
ℋ
[
π
⁡
(
τ
❘
z
)
]
⁢
s
.
t
.
,
𝔼
τ
~
π
⁡
(
τ
❘
z
)
[
∏
(
s
,
a
)
∈
τ
⁢
ϕ
ω
(
s
,
a
)
]
≥
ϵ
.

### Claim 8 (depends on 1)

The method of claim 1, wherein adjusting one or more policies comprises employing an adversarial training module.

### Claim 9

A system for inferring constraints for reinforcement learning of an Artificial Intelligence (AI) model for subsequent deployment of that AI model in an environment, the system comprising a controller and a memory storing a plurality of executable instructions which, when executed by the controller, cause the system to:
access a set of expert trajectories, each expert trajectory comprising a sequence of expert state-action pairs, a given one of the sequences of the expert state-action pairs including information about a given state of the environment and a corresponding action that is to be executed in response to the given state;
partition the set of expert trajectories into one or more subsets of expert trajectories by employing a trained neural network, each subset being associated with one of the agents; and
determine, for each agent, an agent constraint based on the corresponding subset of expert trajectories.

### Claim 10 (depends on 9)

The system of claim 9, further configured to:
access a set of policies, each policy comprising a sequence of state-action pairs, each state-action pair including information about a given state of the environment and a corresponding action to be executed in response to the environment being identified as being in said state, an execution of the policy aiming at maximizing a reward; and
adjust one or more policies of the set of policies based on the one or more constraints for each of the associated agents.

### Claim 11 (depends on 9)

The system of claim 9, wherein the trained neural network is configured to determine an agent based on an input comprising one or more expert trajectories.

### Claim 12 (depends on 11)

The system of claim 11, wherein, for each expert trajectory, the agent is determined by:
zE=argmaxz pψ(τE|z)
where zE is the agent, τE is the expert trajectory and pψ is a conditional flow-based estimation model.

### Claim 13 (depends on 12)

The system of claim 12, wherein the trained neural network is trained to compute state-action density:
ρ
π
(
s
,
a
)
=
(
1
-
γ
)
⁢
π
⁡
(
a
❘
s
)
⁢
∑
t
=
0
∞
⁢
γ
t
⁢
p
⁡
(
s
t
=
s
❘
π
)
where p(st=s|π) is the probability density of state s at time step t following policy π.

### Claim 14 (depends on 9)

The system of claim 9, wherein the system is, upon determining a constraint, configured to employ a permissibility function ϕω such that:
𝔼
τ
~
π
[
∏
(
s
,
a
)
∈
τ
ϕ
ω
(
s
,
a
)
]
≥
ϵ
where the permissibility function ϕω is implemented as a neural network, ω maps parameters of the neural network and ε is a pre-determined probability.

### Claim 15 (depends on 9)

The system of claim 9, wherein the system is configured to, upon adjusting a policy for a given agent:
determine an expert trajectory distribution π(τ|z);
determine an agent identification likelihood
p
ψ
(
z
❘
τ
)
=
∏
(
s
,
a
)
∈
τ
⁢
p
ψ
(
s
,
a
❘
z
)
∑
z
′
⁢
exp
⁢
∏
(
s
,
a
)
∈
τ
⁢
p
ψ
(
s
,
a
❘
z
′
)
;
determine a cumulative reward π(τ|z)[Σt=0Tγtr(st,at)]; and
adjust the policy based on a target objective expressed as:
Min
π
-
𝔼
π
⁡
(
τ
❘
z
)
[
∑
t
=
0
T
γ
t
⁢
r
⁡
(
s
t
,
a
t
)
+
α
1
⁢
log
[
p
ψ
(
z
❘
τ
)
]
]
-
(
α
2
-
α
1
)
⁢
ℋ
[
π
⁡
(
τ
❘
z
)
]
⁢
s
.
t
.
,
𝔼
τ
~
π
⁡
(
τ
❘
z
)
[
∏
(
s
,
a
)
∈
τ
⁢
ϕ
ω
(
s
,
a
)
]
≥
ϵ
.

### Claim 16 (depends on 9)

The system of claim 9, wherein the system is further configured to employ an adversarial training module to adjust one or more policies.
