Papers
Topics
Authors
Recent
Search
2000 character limit reached

LSTM-TD3: RL Agent for POMDP Challenges

Updated 5 February 2026
  • LSTM-TD3 is a reinforcement learning method that augments standard TD3 with an LSTM memory module to recover latent state information in POMDPs.
  • It integrates actor and critic architectures with dedicated LSTM subnetworks that capture temporal dependencies from action-observation histories.
  • Empirical results on PyBulletGym benchmarks show that LSTM-TD3 significantly outperforms standard TD3 and windowing methods in environments with noisy and missing observations.

The Twin Delayed Deep Deterministic Policy Gradient with Long Short-Term Memory (LSTM-TD3) agent is a reinforcement learning algorithm that augments the standard TD3 architecture with explicit memory integration via an LSTM, targeting the resolution of Partially Observable Markov Decision Processes (POMDPs). In POMDPs, the observable agent input at each timestep provides only a partial and potentially noisy view of the true system state. LSTM-TD3 introduces a learned memory subsystem to extract temporal dependencies and reconstruct latent states, thus enabling the agent to perform robustly in real-world scenarios where missing or corrupted sensory input is common (Meng et al., 2021).

1. Network Architecture and Memory Integration

LSTM-TD3 extends the canonical TD3 actor–critic framework by integrating a memory-extraction LSTM subnetwork into both the actor and each critic, which operate as follows:

  • Actor (μθμ\mu_{\theta^{\mu}}):
    • Receives a length-ll history htl={ot−l,at−l,...,ot−1,at−1}h_t^l = \{o_{t-l}, a_{t-l}, ..., o_{t-1}, a_{t-1}\}, processed by an LSTM to yield memory vector mt=μme(htl)m_t = \mu^{me}(h_t^l).
    • The current observation oto_t is embedded via a compact MLP ("current-feature extractor," denoted μcf\mu^{cf}) to yield ft=μcf(ot)f_t = \mu^{cf}(o_t).
    • The concatenated vector [mt;ft][m_t; f_t] is passed through a MLP ("perception integration," μpi\mu^{pi}), and the output specifies the continuous action ata_t.
  • Critics (ll0, ll1):
    • Use a parallel LSTM structure (distinct weights from the actor) to process ll2, resulting in ll3.
    • The pair ll4 is projected by an MLP ("current-feature extractor," ll5) to ll6.
    • ll7 feeds into a final MLP (ll8) producing the Q-value estimate ll9.

Both actor and critics employ two-layer ReLU-activated MLPs analogous in size to standard TD3 (e.g., 256–256 units) and an LSTM cell size of 128.

2. Mathematical Formulation of POMDPs

The environment is formalized as a tuple htl={ot−l,at−l,...,ot−1,at−1}h_t^l = \{o_{t-l}, a_{t-l}, ..., o_{t-1}, a_{t-1}\}0, with latent state htl={ot−l,at−l,...,ot−1,at−1}h_t^l = \{o_{t-l}, a_{t-l}, ..., o_{t-1}, a_{t-1}\}1, action htl={ot−l,at−l,...,ot−1,at−1}h_t^l = \{o_{t-l}, a_{t-l}, ..., o_{t-1}, a_{t-1}\}2 (continuous), and partial observation htl={ot−l,at−l,...,ot−1,at−1}h_t^l = \{o_{t-l}, a_{t-l}, ..., o_{t-1}, a_{t-1}\}3. Transitions follow htl={ot−l,at−l,...,ot−1,at−1}h_t^l = \{o_{t-l}, a_{t-l}, ..., o_{t-1}, a_{t-1}\}4 and htl={ot−l,at−l,...,ot−1,at−1}h_t^l = \{o_{t-l}, a_{t-l}, ..., o_{t-1}, a_{t-1}\}5. The policy receives the htl={ot−l,at−l,...,ot−1,at−1}h_t^l = \{o_{t-l}, a_{t-l}, ..., o_{t-1}, a_{t-1}\}6-step history htl={ot−l,at−l,...,ot−1,at−1}h_t^l = \{o_{t-l}, a_{t-l}, ..., o_{t-1}, a_{t-1}\}7 (filled with dummy entries for htl={ot−l,at−l,...,ot−1,at−1}h_t^l = \{o_{t-l}, a_{t-l}, ..., o_{t-1}, a_{t-1}\}8), and maximizes the discounted reward expectation:

htl={ot−l,at−l,...,ot−1,at−1}h_t^l = \{o_{t-l}, a_{t-l}, ..., o_{t-1}, a_{t-1}\}9

3. Forward Pass and Actor-Critic Computation

Let mt=μme(htl)m_t = \mu^{me}(h_t^l)0 for the critic LSTM, mt=μme(htl)m_t = \mu^{me}(h_t^l)1 for the actor. The LSTM processes input recursively via standard gates:

  • mt=μme(htl)m_t = \mu^{me}(h_t^l)2
  • mt=μme(htl)m_t = \mu^{me}(h_t^l)3
  • mt=μme(htl)m_t = \mu^{me}(h_t^l)4
  • mt=μme(htl)m_t = \mu^{me}(h_t^l)5
  • mt=μme(htl)m_t = \mu^{me}(h_t^l)6
  • mt=μme(htl)m_t = \mu^{me}(h_t^l)7

The memory vector is mt=μme(htl)m_t = \mu^{me}(h_t^l)8. The actor outputs mt=μme(htl)m_t = \mu^{me}(h_t^l)9; the critics yield oto_t0.

4. Optimization Procedures and Update Mechanisms

  • Critic Loss: Each oto_t1 minimizes the MSE to the double-delayed target,

oto_t2

where oto_t3 and oto_t4, oto_t5.

  • Actor Loss: The policy update maximizes oto_t6, i.e.

oto_t7

  • Delayed Policy Update and Target Networks: As in TD3, the policy (and target networks) are updated every oto_t8 steps (commonly oto_t9). Target networks undergo soft updates:

μcf\mu^{cf}0

μcf\mu^{cf}1

with μcf\mu^{cf}2.

5. Training Algorithm Pseudocode

[mt;ft][m_t; f_t]3

6. Hyperparameters and Memory Ablation

Principal hyperparameters include:

  • History length μcf\mu^{cf}3 (additionally μcf\mu^{cf}4 tested)
  • Replay buffer size: μcf\mu^{cf}5
  • Batch size μcf\mu^{cf}6
  • Discount factor μcf\mu^{cf}7
  • Policy noise μcf\mu^{cf}8, noise clip μcf\mu^{cf}9
  • Policy delay ft=μcf(ot)f_t = \mu^{cf}(o_t)0
  • Target network update ft=μcf(ot)f_t = \mu^{cf}(o_t)1
  • Actor/critic learning rates: ft=μcf(ot)f_t = \mu^{cf}(o_t)2 (Adam)
  • MLP architecture: ft=μcf(ot)f_t = \mu^{cf}(o_t)3
  • LSTM hidden size: ft=μcf(ot)f_t = \mu^{cf}(o_t)4

Ablation studies reveal:

  • Removing the double-critic structure destabilizes learning (yielding LSTM-DDPG/RDPG).
  • Omitting target policy smoothing produces a milder performance drop.
  • Excluding the current-feature extractor degrades MDP performance severely.
  • Removing past-action inputs from the history significantly impairs POMDP handling; both actor and critic require both ft=μcf(ot)f_t = \mu^{cf}(o_t)5 and ft=μcf(ot)f_t = \mu^{cf}(o_t)6 in their respective histories.

7. Empirical Evaluation and Baseline Comparisons

LSTM-TD3 was evaluated on five PyBulletGym benchmarks: HalfCheetah, Ant, Walker2D, Hopper, and InvertedDoublePendulum. Scenarios included:

  • MDP: Full observations.
  • POMDP-RV: Velocity entries removed.
  • POMDP-FLK: Entire observations zeroed at random (ft=μcf(ot)f_t = \mu^{cf}(o_t)7).
  • POMDP-RN: Additive Gaussian noise (ft=μcf(ot)f_t = \mu^{cf}(o_t)8).
  • POMDP-RSM: Individual entries zeroed randomly (ft=μcf(ot)f_t = \mu^{cf}(o_t)9).

Baselines comprised DDPG, SAC, vanilla TD3, TD3-OW (recent [mt;ft][m_t; f_t]0 observations concatenated), and TD3-OW+PA (recent [mt;ft][m_t; f_t]1 actions also concatenated).

For HalfCheetah (after 1M steps, [mt;ft][m_t; f_t]2):

Version TD3 LSTM-TD3(5)
MDP 11,200±300 10,900±250
POMDP-RV 9,800±400 10,300±320
POMDP-FLK 1,200±500 9,500±400
POMDP-RN 4,000±800 9,800±350
POMDP-RSM 3,200±700 9,200±410

On pure MDPs, LSTM-TD3 matches state-of-the-art (TD3/SAC); on POMDPs with missing, noisy, or corrupted observations, LSTM-TD3 outperforms all baselines, sometimes by more than a factor of two. On tasks where underlying latent variables (e.g., velocity) are removed from observations, the memory module supports estimation via the action-observation sequence, recovering most of the performance lost by conventional architectures except possibly in high-frequency environments where the history window is too short for reliable inference. TD3-OW (observation windowing) slightly improves over naive TD3 in some POMDPs but fails catastrophically in high-noise/flickering settings, and TD3-OW+PA is usually inferior to TD3-OW in both MDP and POMDP regimes.

A plausible implication is that the explicit LSTM-based memory extraction enables true temporal inference necessary for POMDPs, a capability unattainable with mere windowing or static memory concatenation. TD3's architectural components—double critic, policy smoothing, delayed updates—remain critical to stability and sample efficiency under partial observability. Proximal Policy Optimization (PPO) was not included; on MuJoCo-style tasks, PPO requires 2–5x more samples to reach similar returns, so under the 1M step constraint it was not competitive (Meng et al., 2021).

Definition Search Book Streamline Icon: https://streamlinehq.com
References (1)

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to TD3 LSTM Reinforcement Learning Agent.