InferNet for Delayed Reinforcement Tasks: Addressing the Temporal Credit Assignment Problem

Markel Sanz Ausin, Hamoon Azizsoltani, Song Ju, Yeo-Jin Kim, Min Chi

Abstract

Reinforcement learning (RL) agents often struggle with the temporal Credit Assignment Problem (CAP), where rewards are sparse and delayed until the end of an episode. This paper introduces InferNet, a scalable neural network architecture designed to infer step-by-step immediate rewards from a single delayed signal. By enforcing a summation constraint—where predicted immediate rewards must sum to the final delayed reward—InferNet enables agents to learn effectively in complex environments like Atari 2600 and real-world healthcare datasets. Experimental results demonstrate that InferNet matches the performance of gold-standard immediate rewards and exhibits significant robustness to noisy feedback.

Introduction

In Reinforcement Learning (RL), agents typically learn most efficiently when provided with dense, immediate feedback. However, many real-world applications—ranging from medical treatment planning to strategic games—only provide a reward signal at the conclusion of a long sequence of actions. This delay creates the temporal Credit Assignment Problem (CAP): determining which specific actions in a sequence of thousands contributed to the final outcome.

Existing solutions to CAP often fail to scale. Standard Temporal Difference (TD) learning struggles with extreme delays, while Bayesian methods like Gaussian Processes (InferGP) suffer from $O(n^3)$ time complexity, making them impractical for Deep RL environments requiring millions of interactions. Furthermore, real-world rewards are frequently noisy, further complicating the learning process.

Methodology: The InferNet Architecture

The authors propose InferNet, an algorithm-agnostic neural network that functions as a "reward translator." InferNet operates alongside standard RL algorithms (e.g., DQN) to convert sparse, delayed rewards into dense, immediate ones.

The core innovation of InferNet is its training constraint. For any given episode, the sum of the predicted step-by-step rewards must equal the actual delayed reward received at the episode's end. The network uses a TimeDistributed architecture to process entire episodes, sharing weights across timesteps. Crucially, each reward prediction depends only on the state-action pair at that specific timestep, preventing the network from simply "passing" the reward signal forward like an RNN.

Figure 1: Performance comparison of InferNet against immediate and delayed reward baselines in GridWorld environments.

Experimental Setup

InferNet was evaluated across three distinct domains:

  1. GridWorld: A controlled environment used to verify if InferNet could accurately reconstruct underlying reward functions in both online and offline settings.
  2. Atari 2600: 40 classic games were used to test scalability to high-dimensional pixel data using a Dueling DQN agent.
  3. Sepsis Healthcare Data: A real-world offline dataset comprising 5,928 ICU visits. The task was to learn treatment policies to prevent septic shock based on Electronic Health Records (EHRs).

Key Results and Insights

The experimental results highlight three major strengths of the InferNet approach:

1. Solving the Credit Assignment Problem

In GridWorld, InferNet-trained agents matched the performance of agents receiving gold-standard immediate rewards. In contrast, agents trained solely on delayed rewards failed to perform better than random chance, as shown in the training curves of Figure 1.

2. Scalability and Performance in Complex Environments

In the Atari benchmark, InferNet outperformed the delayed reward baseline in 32 out of 40 games. In 8 of these games, it matched or exceeded the performance of the immediate reward baseline, demonstrating its ability to handle high-dimensional state spaces.

Figure 3: Relative performance of InferNet across 40 Atari games under noise-free (left) and noisy (right) reward conditions.

3. Robustness to Noisy Data

A surprising finding was InferNet's resilience to noise. When Gaussian noise was added to rewards, the performance of the immediate reward baseline degraded significantly. However, InferNet remained robust, outperforming the delayed baseline in 30 games and matching or beating the immediate baseline in 23 games. This suggests that the summation constraint acts as a natural filter, allowing the network to learn a generalized reward function that cancels out zero-mean noise.

4. Real-World Application: Sepsis Treatment

In the healthcare domain, the policy derived via InferNet achieved the lowest septic shock rate on the test set. It also showed higher alignment with human physician decisions for non-shock patients compared to InferGP and delayed reward baselines.

Discussion and Limitations

While InferNet represents a significant step forward, some limitations remain. Processing entire episodes at once can lead to high memory overhead for extremely long horizons, sometimes requiring truncated evaluations. Additionally, InferNet cannot overcome fundamental exploration failures; if the base RL algorithm fails to find any reward, InferNet has no signal to decompose.

Future work may focus on optimizing the memory footprint for infinite-horizon tasks and exploring the integration of InferNet with more advanced exploration strategies. In sensitive domains like healthcare, the authors emphasize that such models should serve as decision-support tools for clinicians rather than fully autonomous systems.

Summary updated

BibTeX
@inproceedings{ausin2021infernet,
  author = {Markel Sanz Ausin and Hamoon Azizsoltani and Song Ju and Yeo-Jin Kim and Min Chi},
  title = {{InferNet for Delayed Reinforcement Tasks: Addressing the Temporal Credit Assignment Problem}},
  booktitle = {IEEE BigData},
  year = {2021},
  doi = {10.1109/bigdata52589.2021.9671827},
}
Figure