Deep Interactive Reinforcement Learning (Deep IntRL) accelerates reinforcement learning training by incorporating external advice. However, conventional Deep IntRL uses each piece of advice only in the current step and discards it after a single interaction. Persistent Advising and Broad-Persistent Advising (BPA) extend this process by storing advice in persistent memory and reusing it in similar states through state generalisation based on K-means clustering. This research proposes Encoder BPA, which employs a latent encoder to retrieve and reuse advice. In this framework, a trained encoder is used to map a state sequence into a latent representation at every time step. Advice can be retrieved through latent comparison, together with a top-(k) aggregation and a consistency condition to improve reuse stability. Experimental results show that Encoder BPA improves learning efficiency and advice utilisation at an early stage of training compared with different Deep IntRL approaches, especially in complex and partially observable environments.
Figures & tables
Figure 1: The PPR mechanism. When external advice is available, the learning agent applies the advised action and stores the (state, action) pair in the persistent memory. When no external advice is available, the associated action may be reused if a matching state is found in the persistent memory.
Figure 2: The PPR mechanism in Encoder BPA. In Encoder BPA, a trained encoder is used to map a state sequence into a latent representation at every time step. When external advice is available, the learning agent applies the advised action and stores the (latent, action) pair in the persistent memory. When no external advice is available, the associated action may be reused in latent space advice retrieval.
Figure 3: The environments used in the experiments.
Figure 4: The training curve of the teacher network in different environments.
Parameter
Cart-Pole
Inv. Pend.
Ant
POMDP
K Value
3
4
2
4
Table 1: The results of the elbow method.
Encoder
Cart-Pole
Inv. Pend.
Ant
POMDP
LSTM
-0.816
-0.986
-0.870
-0.886
Mamba
-0.819
-0.967
-0.867
-0.889
Table 2: Spearman correlation between representation cosine similarity and action distance across different environments and encoders.
Figure 5: Comparison of different interactive reinforcement learning approaches across different environments. The solid lines represent the average reward across multiple random seeds, while the shaded regions represent the corresponding standard deviation around the mean.
Cart-Pole
Inv. Pend.
Ant
POMDP
Persistent
18
1
0
0
BPA
6032
5892
141952
73990
LSTM
28025
16553
119721
63288
Mamba
27737
17813
127132
99505
Table 3: Average number of advice reuses across multiple experiments.
Figure 6: Supporting experiments in the MuJoCo Ant environment.
Reinforcement learning studies how agents learn sequential decisions from rewards and interaction, balancing exploration, performance, safety, and adaptation.