Underlying Functional Structure of Reinforcement Learning

Ezgi KorkmazNeurIPS 2026

TL;DR

Deep reinforcement learning (RL) agents can master complex games and reason through tough math problems, yet their internal decision-making landscapes remain mysteriously fragile. This paper peers inside the RL "black box" and uncovers a hidden geometric law: an agent’s confidence in its best move is intrinsically aligned with how easily its mind can be changed. By tracking this alignment, we can diagnose when an AI is facing unseen environments, adversarial attacks, or architectural limits—all in real time.

What Problem Does This Paper Address?

Picture a brilliant chess grandmaster who plays flawlessly, until someone nudges a pawn by a millimeter, causing them to suddenly blunder their queen. Deep RL policies—increasingly used for high-stakes tasks and frontier LLM reasoning—suffer from this exact kind of volatility. Tiny, imperceptible shifts in state space can trigger sudden reasoning failures.

Historically, researchers have tried to patch these vulnerabilities using adversarial training (essentially sparring with an attacker during training). However, recent work shows these defenses come at a steep price, hurting generalization and introducing counterfactual reasoning errors. Rather than proposing yet another patch, author Ezgi Korkmaz asks a more foundational question: What is the actual geometric and functional structure of the policy landscape that RL learns, and why does its logical coherence abruptly break down?

Methods

To map out the deep neural policy manifold, the paper defines two core mathematical quantities for any given state $s$ and Q-value function $\mathcal{Q}(s,a)$:

  1. Average Advantage Value ($\Omega$): The gap between the Q-value of the optimal action and the average Q-value across all possible actions. Intuitively, this measures decisiveness—how clearly the best action stands out from the pack.
  2. Directions of Incoherence ($\|\nabla_s \mathcal{J}\|$): The gradient norm of the "Policy Coherence Loss" (the cross-entropy between the sharpest argmax choice and the smooth softmax probabilities). This measures local sensitivity—the direction in state space along which the policy most rapidlysecond-guesses itself.

Using multivariate calculus and convex extension theorems, the author proves that $\Omega$ and $\|\nabla_s \mathcal{J}\|$ are positively correlated because deep RL naturally learns functions where $\Omega$ is approximately convex.

Building on this theory, the paper introduces SCALE (Structural Coherence & Alignment Evaluation). SCALE is a diagnostic algorithm that monitors an agent's trajectory, computes the non-linear rank correlation (Spearman’s $\rho$) between $\Omega$ and $\|\nabla_s \mathcal{J}\|$, and flags an alert ("Perturbation present") if that correlation drops significantly below its normal baseline.

Datasets

Rather than static datasets, the methods are evaluated in dynamic, high-dimensional Markov Decision Processes (MDPs) from the Arcade Learning Environment (ALE). Specifically, policies (Double DQN with Dueling and Prioritized architectures) are tested across six classic Atari 2600 environments: TimePilot, BankHeist, JamesBond, Riverraid, RoadRunner, and Seaquest. No new benchmarks are introduced, though states are modified using standard adversarial attacks (C&W, Elastic-Net, Nesterov Momentum) and natural, perceptually invisible shifts (Blur, Brightness & Contrast, and DCT compression).

Key Insights and Ideas

  • The Convexity Paradox: Why would a deep neural network learn a convex advantage function? Imagine two valid game frames where the agent knows the exact right move. If you linearly blend those two frames together, you get a ghostly, unnatural mashup image. In this "unrealizable" middle ground, the network becomes less decisive, causing the advantage gap $\Omega$ to dip—forming a classic convex bowl between valid states!
  • Decisiveness Breeds Sensitivity: Because $\Omega$ is convex, walking up the curve of steepest ascent means the slope gets steeper. Ironically, at the exact valid states where the agent is most decisive (high $\Omega$), the local gradient to knock it off course (high $\|\nabla_s \mathcal{J}\|$) is also at its peak.
Figure 1: ∥∇sJ (s, ˆs)∥2 and Ω(s, ˆs) values with base state observations. Results are reported with double y-axis bar graph where each axis color matches its corresponding bars.
  • Better Architectures Have Tighter Geometry: Algorithms that score higher don't just find better rewards; they carve out cleaner, more convex manifolds with a much tighter alignment between advantage and sensitivity.
  • Perturbations Break the Law: When an agent encounters adversarial noise or out-of-distribution shifts, it gets pushed into those "unnatural" regions of state space, causing this neat geometric alignment to measurably decay.

Key Results

Across all experiments, empirical measurements strongly validate the theoretical predictions:

  • Strong Baseline Alignment: On clean observations, Spearman correlations between $\Omega$ and $\|\nabla_s \mathcal{J}\|_2$ are consistently high, reaching 0.944 in TimePilot, 0.820 in BankHeist, and 0.809 in JamesBond. Sorting states by gradient norm reveals a crisp, upward-curving trend in advantage.
Figure 3: Functional properties of deep reinforcement learning and positive correlation: ∆(s) reported with base state observations in high-dimensional state representation MDPs.
  • Auditing Architectures: Switching from a standard Prioritized architecture (123.7% human-normalized score) to a better-performing Dueling architecture (172.1% score) boosts the Spearman alignment from 0.619 to 0.820 in BankHeist, and from 0.575 to 0.663 in RoadRunner.
  • Detecting Attacks & Shifts: SCALE reliably catches tampering. Under a Carlini & Wagner (C&W) adversarial attack, BankHeist’s Spearman correlation plummets from 0.820 to 0.374. Even under imperceptible, non-adversarial DCT shifts (which famously fool certified defenses), BankHeist’s correlation drops all the way to 0.037, allowing SCALE to distinguish not just if an environment has shifted, but how.

Limitations and Future Work

The author does not include a dedicated limitations section, though it is apparent that empirical testing is currently focused on discrete-action, value-based Atari agents rather than continuous control or language models. For future work, the paper suggests moving from passive diagnosis to active design: directly targeting and optimizing this intrinsic manifold alignment via new architectures or training objectives to build inherently stable, scalable, and robust reasoning agents.

Summary updated

Abstract

Advances in deep reinforcement learning have enabled the development of policies capable of solving complex, high-dimensional problems, allowing AI agents to strategize and reason purely through interaction without supervision. Despite these successes, our knowledge on the functional properties and the underlying structure of the deep neural policy manifold remains limited. In this paper, we uncover a fundamental functional property in reinforcement learning: the intrinsic alignment between the advantage function and the gradient of the loss targeting directions of incoherence. We provide a rigorous theoretical foundation for this relationship, demonstrating that this intrinsic alignment characterizes how policies learn and internalize the underlying value function and how this process governs policy decisions. By leveraging this fundamental functional property, we propose a novel algorithm that can diagnose and identify reinforcement learning generalization, policy robustness and decision volatilities. We conduct extensive empirical analysis in high-dimensional MDPs. From algorithmic and architectural changes to natural distributional shifts and adversarial attacks, our proposed method can identify and audit the differences by leveraging the underlying structure of the deep neural policy manifold and the intrinsic alignment. Our analysis reveals foundational properties of policies trained in high-dimensional MDPs, and our paper provides a principled step toward constructing scalable, stable, and generalizable deep reinforcement learning agents with robust reasoning capabilities.
BibTeX
@inproceedings{korkmaz2026underlying,
  author = {Ezgi Korkmaz},
  title = {{Underlying Functional Structure of Reinforcement Learning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=1aSms6I8hy},
}
Figure