Complex-Valued Reinforcement Learning: a Context-Based Approach for POMDPs

Takeshi Shibuya, Tomoki HamagamiInTech 2011 · OpenAlex

Abstract

Reinforcement learning (RL) algorithms are representative active learning algorithms that can be used to decide suitable actions on the basis of experience, simulations, and searches. While RL has been successfully applied in Markov decision processes (MDPs), real-world environments often present as partially observable MDPs (POMDPs). In POMDPs, agents face perceptual aliasing, where different states appear identical based on sensor inputs. This paper proposes a novel RL framework using complex numbers to represent state-action values, encoding temporal context into the phase to disambiguate aliased states without the need for extensive memory buffers or complex hierarchical structures.

Introduction: The Challenge of Perceptual Aliasing

In an ideal Reinforcement Learning (RL) scenario, an agent has full knowledge of its state. However, in real-world applications—such as autonomous robotics—sensors are often limited, leading to Partially Observable Markov Decision Processes (POMDPs). A critical hurdle in POMDPs is perceptual aliasing, where two or more physically distinct states produce identical sensor readings. For instance, a robot in a symmetrical building might see two identical doors; without memory of its previous path, it cannot determine which door it is facing.

Traditional solutions typically rely on large memory buffers to store past episodes or complex hierarchical models. These approaches are often computationally expensive and difficult to adapt to dynamic environments. This paper introduces Complex-Valued Reinforcement Learning (CVRL), which leverages the mathematical properties of complex numbers to provide an implicit, memory-efficient context tracker.

Methodology: Encoding Context in Phase

The core innovation of CVRL is the transition from real-valued reward functions $Q(s, a)$ to complex-valued functions $\dot{Q}(s, a)$. In this framework, the complex number's components serve dual purposes:

  • Amplitude as Expected Reward: The magnitude of the complex value represents the expected cumulative reward, maintaining parity with traditional RL.
  • Phase as Temporal Context: The angle (phase) of the complex number encodes the temporal context or "sequence marker."
Architecture of the complex-valued reinforcement learning agent.

As shown in Figure 1, the agent maintains an internal reference value ($\dot{I}_t$) that tracks current context. Action selection is performed by calculating the real part of the inner product between the $\dot{Q}$-value and this reference. During learning, the agent applies rotational updates using a rotation factor $\dot{\beta}$. This causes the value function to naturally form a spiral over time, ensuring that the same observation encountered at different points in a sequence will have distinct phases.

Comparison between conventional Profit Sharing (PS) and the proposed complex-valued PS, illustrating the spiral context representation.

The authors extend these principles to several algorithms, including $\dot{Q}$-learning (integrated with eligibility traces), scPS (Simple Complex-valued Profit Sharing), and Complex-valued RBF Networks for continuous state spaces.

Experimental Evaluation and Results

The CVRL framework was evaluated across several benchmark POMDP environments designed to trigger perceptual aliasing:

  1. POMDP Maze: A grid-world with aliased observations. $\dot{Q}$-learning with eligibility traces successfully converged to the optimal 12-step path, whereas standard Q-learning failed.
  2. Miyazaki’s Environment: A stochastic POMDP benchmark. Both scPS and $\dot{Q}$-learning achieved near-optimal performance significantly faster than conventional memory-based methods.
  3. Mountain Car Task (Modified): A continuous task where the agent only observes position (not velocity). The complex-valued RBF network successfully learned the task by using phase to distinguish between moving left and right at the same position.

Conclusion and Future Directions

CVRL offers a "plug-and-play" extension to standard RL that treats context as a fundamental part of the value representation rather than an external memory module. By using phase as a "free" context tracker, agents can resolve perceptual aliasing with minimal computational overhead.

Future work will focus on adapting the phase update mechanism for highly dynamic environments, scaling the approach to high-dimensional sensor data (e.g., raw video), and testing robustness against the noise inherent in physical robotic systems.

Summary updated

Abstract

Reinforcement learning (RL) algorithms are representative active learning algorithms that can be used to decide suitable actions on the basis of experience, simulations, and searches (Sutton & Barto, 1998; Kaelbling et al., 1998). The use of RL algorithms for the development of practical intelligent controllers for autonomous robots and multiagent systems has been investigated; such controllers help in realizing autonomous adaptability on the basis of the information obtained through experience. For example, in our previous studies on autonomous robot systems such as an intelligent wheelchair, we used RL algorithms for an agent in order to learn how to avoid obstacles and evolve cooperative behavior with other robots (Hamagami & Hirata, 2004; 2005). Furthermore, RL has been widely used to solve the elevator dispatching problem (Crites & Barto, 1996), air-conditioning management problem (Dalamagkidisa et al., 2007), process control problem (S.Syafiie et al., 2008), etc. However, in most cases, RL algorithms have been successfully used only in ideal situations that are based on Markov decision processes (MDPs). MDP environments are controllable dynamic systemswhose state transitions depend on the previous state and the action selected. On the other hand, because of the limited number of dimensions and/or low accuracy of the sensors used, real-world environments are considered to be partially observable MDPs (POMDPs). In a POMDP environment, the agent faces a serious problem called perceptual aliasing, i.e., the agent cannot distinguish multiple states from one another on the basis of perceptual inputs. Some representative approaches have been adopted to solve this problem (Mccallum, 1995; Wiering & Schmidhuber, 1996; Singh et al., 2003; Hamagami et al., 2002). The most direct representative approach involves the use of the memory of contexts called episodes to disambiguate the current state and to keep track of information about the previous state (Mccallum, 1995). The use of this memory-based approach can ensure high learning performance if the environment is stable and the agent has sufficient memory. However, since most real-world environments belong to the dynamic class, the memory of experience has to be revised frequently. Therefore, the revised algorithm often becomes complex and task-dependent. Another approach for addressing perceptual aliasing involves treatment of the environment as a hierarchical structure (Wiering & Schmidhuber, 1996). In this case, the environment is divided into small sets without perceptual aliasing, so that the agent can individually learn each small set. This approach is effective when the agent knows how to divide the environment into sets with non-aliasing states. However, the agent must learn to divide the 14
BibTeX
@inproceedings{shibuya2011complex,
  author = {Takeshi Shibuya and Tomoki Hamagami},
  title = {{Complex-Valued Reinforcement Learning: a Context-Based Approach for POMDPs}},
  booktitle = {InTech},
  year = {2011},
  doi = {10.5772/13295},
}

Loading related content...

Figure