Abstract
In Reinforcement Learning (RL), the selection of state variables is critical for agent performance and sample efficiency. While designers often include a broad range of variables to ensure the environment remains Markovian, this often introduces the "curse of dimensionality" through irrelevant noise or redundant information. This paper introduces the Transfer Entropy Redundancy Criterion (TERC), a mathematically rigorous framework for identifying the minimal set of state variables necessary for optimal decision-making. By leveraging Transfer Entropy and addressing complex multivariate redundancies, TERC improves learning efficiency and provides insights into the dynamic nature of feature importance during an agent's training.
Introduction
In the design of Reinforcement Learning agents, the "state" represents the totality of information available to the agent at any given time. To avoid missing critical information, designers frequently include every possible observable variable. However, as the number of variables increases, the data required to learn an optimal policy grows exponentially—a phenomenon known as the curse of dimensionality.
Existing feature selection methods, such as Permutation Importance or Shapley values, often struggle with redundancy. If two variables provide identical information, these methods may mistakenly keep both or discard both. TERC addresses this by seeking the smallest possible subset of variables that preserves all information necessary for the agent to act optimally, effectively pruning the "chatter" from the state representation.
Methodology
The Transfer Entropy Redundancy Criterion (TERC)
TERC is built upon Transfer Entropy (TE), an information-theoretic measure of the directed transfer of information between variables. The core intuition is to measure how much the uncertainty regarding an agent's actions is reduced by knowing a specific state variable, conditioned on the knowledge of all other variables. If the removal of a variable does not increase the entropy (uncertainty) of the agent's actions, that variable is deemed redundant or irrelevant.
Handling Complex Redundancy
A key contribution of this work is the definition of Constrained Perfect Multivariate Conditional Redundancy (CPMCR). This concept allows the framework to handle scenarios where information is not just duplicated between two variables, but spread across groups (e.g., a secret key split into multiple parts). TERC identifies these synergistic relationships where variables are only informative when viewed in combination.
Algorithmic Implementation
The authors propose two primary algorithms:
- Algorithm 1: A theoretically robust approach that evaluates all possible permutations of variables to find the absolute minimal set. While highly accurate, it is computationally intensive.
- Algorithm 2: A practical, linear-time version designed for real-world applications. It operates under the assumption that redundancy typically occurs between subsets of similar sizes, making it scalable to higher-dimensional tasks.
Experimental Evaluation
The researchers evaluated TERC across several distinct environments to test its robustness against noise and redundancy:
- Synthetic Logic Tasks: Using "Four Redundant Variables" and "Two Redundant Triplets" datasets, the authors tested TERC's ability to navigate XOR-style logic and non-linear redundancies that baffle traditional importance metrics.
- The Secret Key Game: Based on Shamir’s secret-sharing protocol, agents had to identify exactly which 3 keys (out of 25 or 50) were required to decode a message. TERC successfully isolated the necessary keys where baseline methods failed.
- OpenAI Gym Benchmarks: In classic physics environments like Cart Pole, Lunar Lander, and Pendulum, the state space was "doped" with random noise. TERC was used to prune these noisy variables, allowing the agent to focus on the underlying physics.
- Iterated Prisoner’s Dilemma: The framework was used to determine the optimal "memory length" needed to compete against a Tit-For-N-Tats (TFNT) opponent, identifying exactly how many historical steps are required for optimal play.
Key Insights
Dynamic Feature Importance
One of the most significant findings is that the importance of state variables is not static; it evolves as the agent learns. In the Cart Pole environment, for example, TERC revealed that early-stage agents focus almost exclusively on angular velocity to prevent the pole from falling. As the agent matures and masters balance, it begins to prioritize cart position to stay centered on the screen. This provides a rare window into the "black box" of agent strategy development.
Performance and Efficiency
Pruning redundant variables does more than just simplify the model; it actively accelerates learning. By reducing the state space, the agent avoids exploring uninformative dimensions of the data. In the Cart Pole experiments, agents trained on TERC-selected states reached peak performance significantly faster than those trained on the original, noisy state representations.
Conclusion and Future Work
TERC provides a rigorous foundation for state variable selection in RL, outperforming traditional baselines in complex, redundant environments. While the computational cost of the "perfect" algorithm remains a challenge for very high-dimensional spaces, the practical linear-time variant offers a scalable solution for many RL tasks. Future research may focus on integrating TERC directly into the training loop of Deep RL agents, allowing for the dynamic pruning of state variables in real-time as the agent's internal priorities shift.
Summary updated