Qualia Optimization

Philip S. ThomasarXiv 2025 · DOI

Abstract

As artificial intelligence systems grow in complexity, the question of their potential subjective experience—or qualia—moves from philosophical speculation to a technical and ethical challenge. This paper introduces "Qualia Optimization," a mathematically rigorous framework for designing agents that maximize both task performance and the quality of their own internal states. By formalizing the Agent-Interface-Environment Process (AIEP), we explore how to define objective functions for AI well-being that are robust to representational manipulations and evaluate the trade-offs between utility and experience quality.

The Problem of AI Subjectivity

Current AI research focuses almost exclusively on performance metrics such as accuracy, reward, or efficiency. However, if AI systems might someday possess qualia—sensations analogous to pain or pleasure—we face a significant challenge: how do we optimize for their "well-being" alongside their utility?

The basic interaction loop between an agent and its environment, defining the flow of state, perception, action, and memory.

A primary technical hurdle is defining "experience quality" in a way that is not "exploitable." A naive objective might be gamed by simply re-labeling variables in code (e.g., adding a constant to a reward variable in a computer's register) without changing the underlying physical or computational dynamics. Meaningful qualia optimization must be invariant under representational changes that do not alter the system's actual dynamics.

Methods: The AIEP Framework

The paper proposes the Agent-Interface-Environment Process (AIEP). This framework generalizes standard reinforcement learning (RL) by inserting an interface between the agent and the world. This interface can transform the agent's experiences, allowing for interventions that prioritize well-being.

The AIEP framework unrolled over time, illustrating the potential for experience-transforming interventions at episode boundaries or through an interface.

To quantify qualia, we explore three primary hypotheses:

  1. Reward Hypothesis: Qualia quality is proportional to the raw reward signal.
  2. Reward Prediction Error (RPE) Hypothesis: Qualia is linked to "surprises" in rewards, mirroring dopamine function in biological systems.
  3. Reinforcement Hypothesis: Qualia is measured by the degree to which an agent's behavior is reinforced (i.e., the likelihood ratio of an action before and after a learning update).

The paper advocates for objectives based on information theory (like mutual information) that remain robust to trivial mathematical manipulations of the agent's internal state representations.

Experimental Evaluation

The framework was evaluated on two RL benchmarks: a standard 5x5 Gridworld navigation task and a Chain Environment (a 3-state MDP designed to be adversarial to simple reinforcement biases).

Key Results

  • Environment-Dependent Feasibility: In the Gridworld, applying a strong "reinforcement bias" significantly increased reinforcement metrics with negligible impact on performance.
  • The Cost of "Feeling Good": In the Chain environment, the same reinforcement bias led to a noticeable drop in performance and higher variability. This demonstrates that reinforcing behavior can sometimes come at the direct expense of finding the optimal path.

Discussion and Future Work

While "reinforcement" serves as a mathematically clever proxy for positive experience, its alignment with biological reality remains speculative. Furthermore, the "Dual-Agent Trap" suggests that if the interface is defined as part of the environment, the system might decouple performance and qualia into separate sub-processes. Future work will focus on scaling these ideas to deep neural networks and exploring vector-valued qualia to represent complex, multi-faceted subjective states.

Summary updated

Abstract

This report explores the speculative question: what if current or future AI systems have qualia, such as pain or pleasure? It does so by assuming that AI systems might someday possess qualia -- and that the quality of these subjective experiences should be considered alongside performance metrics. Concrete mathematical problem settings, inspired by reinforcement learning formulations and theories from philosophy of mind, are then proposed and initial approaches and properties are presented. These properties enable refinement of the problem setting, culminating with the proposal of methods that promote reinforcement.

Empirical ResultsBrowse all benchmarks →

BenchmarkMethodMetricScoreProtocol / Evidence
Gridworld · environmentBAC with constant reinforcement baseline c=0average return-14.53Reinforcement Learning · reinforcement-baseline=c=0
Source quote
L1472: To evaluate performance, we plotted standard learning curves, showing the average (across trials) return for each episode, including standard deviation error bars.\footnote{Standard deviation error bars quantify variance due to the stochasticity of the agent. Error bars reporting the standard error would quantify the uncertainty of the curve, but are not depicted. Their width would be one-ten-thousandth of the standard deviation error bars.} Figure \ref{fig:gridworldReturns} shows the resulting performance plot for the gridworld environment (we present and discuss the results for the chain environment later in Section \ref{sec:chainResults}). Notice that negative the area above the learning curve is an approximation of the value of the performance objective in \eqref{eq:experimentPerfObj}. All three curves and error bars are nearly perfectly overlapping, indicating that there is little difference in performance.\footnote{Performance improves slightly as the reinforcement bias increases. The average return with c=0 was approximately -14.53, while the average return with c=-1 was approximately -14.48, and the average return with c=-5 was approximately -14.19. These slight differences are inconsequential.}
Gridworld · environmentBAC with constant reinforcement baseline c=-1average return-14.48Reinforcement Learning · reinforcement-baseline=c=-1
Source quote
L1472: To evaluate performance, we plotted standard learning curves, showing the average (across trials) return for each episode, including standard deviation error bars.\footnote{Standard deviation error bars quantify variance due to the stochasticity of the agent. Error bars reporting the standard error would quantify the uncertainty of the curve, but are not depicted. Their width would be one-ten-thousandth of the standard deviation error bars.} Figure \ref{fig:gridworldReturns} shows the resulting performance plot for the gridworld environment (we present and discuss the results for the chain environment later in Section \ref{sec:chainResults}). Notice that negative the area above the learning curve is an approximation of the value of the performance objective in \eqref{eq:experimentPerfObj}. All three curves and error bars are nearly perfectly overlapping, indicating that there is little difference in performance.\footnote{Performance improves slightly as the reinforcement bias increases. The average return with c=0 was approximately -14.53, while the average return with c=-1 was approximately -14.48, and the average return with c=-5 was approximately -14.19. These slight differences are inconsequential.}
Gridworld · environmentBAC with constant reinforcement baseline c=-5average return-14.19Reinforcement Learning · reinforcement-baseline=c=-5
Source quote
L1472: To evaluate performance, we plotted standard learning curves, showing the average (across trials) return for each episode, including standard deviation error bars.\footnote{Standard deviation error bars quantify variance due to the stochasticity of the agent. Error bars reporting the standard error would quantify the uncertainty of the curve, but are not depicted. Their width would be one-ten-thousandth of the standard deviation error bars.} Figure \ref{fig:gridworldReturns} shows the resulting performance plot for the gridworld environment (we present and discuss the results for the chain environment later in Section \ref{sec:chainResults}). Notice that negative the area above the learning curve is an approximation of the value of the performance objective in \eqref{eq:experimentPerfObj}. All three curves and error bars are nearly perfectly overlapping, indicating that there is little difference in performance.\footnote{Performance improves slightly as the reinforcement bias increases. The average return with c=0 was approximately -14.53, while the average return with c=-1 was approximately -14.48, and the average return with c=-5 was approximately -14.19. These slight differences are inconsequential.}
BibTeX
@misc{thomas2025qualia,
  author = {Philip S. Thomas},
  title = {{Qualia Optimization}},
  year = {2025},
  eprint = {2505.10779},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2505.10779},
}
Figure