The Geometry of Affect

Affects are structural motifs. An affect is what it is by how it relates to every other affect. Joy is defined by its distance from suffering, its nearness to curiosity along some axes, its opposition to boredom along others. Know how a state relates to every other possible state and you know the state. There is nothing left to characterize.
The affect space is the space of possible qualitative states, with its geometry fixed by those similarity relations. The measures below are coordinates on it, not the space itself. They are projections, useful for reading out particular aspects. Valence tells you where a state sits on the viability gradient; integration tells you how unified it is; together they triangulate a position. The list is open. A new coordinate earns its place when the existing ones fail to tell two different feelings apart.
Read the recurring measures as five plus one. Five describe the system's relation to the world it models: valence, arousal, integration, effective rank, counterfactual weight. The sixth, self-model salience, is one member of a larger family of entity-directed salience, the special case where the entity is the self. The same family includes salience toward a known other, toward a particular child, rival, or institution. Self-salience is the diagonal of an entity-indexed field, the same field the ascription axis ranges over later in this part.
Why these. Each is the answer to a question that a controller's state already answers whether or not anyone asks. Which way is it heading relative to the edge of what it can survive: valence. How fast is it revising: arousal. How much does it work as one thing: integration. How many independent directions is it using: rank. How much of its work is about what is not the case: counterfactual weight. How much is about itself, or about some particular other: salience. I have no proof that the list is complete, or that no two of them collapse into one. The felt axes the introduction named land on them like this:
| Felt axis | Formal counterpart |
|---|---|
| Valence | , rate of change of estimated margin |
| Intensity | , with the steepness of the estimated margin |
| Clarity | Precision of the belief state; governed by gain , below |
| Agency | Self-effect ratio and causal self-salience |
| Temporal horizon | Planning horizon and counterfactual weight |
| Friction | Control cost, defined next |
| Social permeability | Scope, and ascription |
| Meaning density | Coupling |
Friction is the one with no counterpart among the six, so here is one. Let be the system's default policy, what it does when nothing is asked of it, habit. Let be the policy the moment demands. Friction is how far the second is from the first:
Flow is low friction: what the moment wants is what the system does anyway. Effort is high friction: every step overrides a default. Skill is the slow movement of toward what is usually demanded, which is why the same task grinds in the first year and glides in the tenth.
One warning before the coordinates, because this book draws radar charts and talks about distances. The affect space is not flat, and its distances are not symmetric. Modes twist into one another at high coupling, so the real distance between two affects runs along a curved surface, not a straight line through . Transitions are not reversible at equal cost: fear slides into anger far more easily than anger relaxes back into fear, and a system tipped from joy into suffering does not retrace the path out. The right object is an asymmetric divergence on a curved manifold, with forward and reverse costs computed separately. Every distance written in this book is a local chart of that object, fine for nearby comparisons and wrong for the global picture. I don't have the global metric. Nobody does yet.
A second warning, about measurement. Comparing two systems by correlating their coordinate-wise similarity matrices depends on the coordinates you chose. A critic can say that valence, arousal, and the rest are what any controller has, so of course they show up everywhere. Fair. Having the coordinates is true by definition and shows nothing. The content is in the relations: which states sit near which, which transitions are cheap and which are blocked. So a comparison between systems should be made on similarity structure in a way that does not care about coordinates, with rotation-invariant dissimilarity matrices and Gromov-Wasserstein distance, and a match that appears in only one basis should be read as a fact about the basis.
The measures that recur. Not all of them matter for every affect.
- Valence ()
- Rate of change of the system's own estimate of its margin. Nearly universal; most affects have valence.
- Arousal ()
- Rate of belief or state update. Separates activated from quiescent states.
- Integration ()
- Irreducibility of cause-effect structure. Unified versus fragmented experience.
- Effective rank ()
- How many degrees of freedom are active. Expansive versus collapsed experience.
- Counterfactual weight ()
- Resources spent on non-actual trajectories. Anticipation, regret, planning.
- Self-model salience (, split into and )
- How the self figures in processing, as the object of attention and as the driver of action. The two come apart. The diagonal of the entity-directed salience field.
Valence: Gradient Alignment
Let be the system's viability manifold and its margin from Part I: the log of the expected time to dissolution, positive in the interior and zero on the boundary. Let be the trajectory the system predicts under its current policy. No system has access to its true margin. What a controller carries is an estimate , learned or evolved from whatever has predicted survival in its history: sweetness, warmth, rank, a parent's approval. Valence is the rate at which the predicted trajectory gains or loses margin as the system itself estimates it:
Here is a discount on the future, not the gain axis introduced later. Positive valence means the system reads its predicted trajectory as moving into the viable interior. Negative valence means it reads the trajectory as approaching the boundary. Since is just , the quantity is the same in any coordinates.
So there are two rates, and the book needs both. The rate of change of the true margin is how the system is doing. Valence is how the system reads itself as doing. Their difference is miscalibration:

Where is near zero, feeling good and doing well are one event. Where it is large and positive the system feels itself gaining while it loses: the drug, the feed, the flattering lie. Where it is large and negative it feels itself losing while it gains: the surgery, the hard conversation, the first month of training. These cases are the standard objection to any account that ties feeling to survival, and they are why the definition sits on the estimate. They also block an inference that accounts like this one invite. That something feels good is evidence about . It is evidence about your life only as far as was fitted to a world like the one you are in, and an estimate fitted to scarcity, small groups, and slow information is being read in a world with none of those.
In reinforcement-learning terms, let the reward be the change in estimated margin, . Then valence has two parts, and they are worth keeping apart. The tonic part is the drift the system expects under its own policy. The phasic part is the surprise, the temporal-difference error, how much better or worse this step went than expected:
It is tempting to call valence the expected advantage of the current action. That quantity is zero for every policy, because the advantage averages to nothing over the policy's own choices. What is left to feel is the drift and the surprise. I think mood is the first and the pang is the second: a person can be sinking slowly through a day full of small pleasant surprises, or climbing steadily through a run of disappointments.
The rate of change of valence carries information of its own. Along the predicted trajectory,
is positive when things are getting better faster and negative when the slide toward the boundary is accelerating. Relief and dread are both about , not .
Positive valence: the trajectory descends the free-energy landscape, affordances expand, the system moves toward states it can sustain. Negative valence: the trajectory climbs toward constraint violation and possibilities contract.
Arousal: Update Rate
Arousal is how fast the system is revising its world model. The natural form is the KL divergence between successive belief states:
In latent-space models two cheaper versions work:
High arousal: large belief updates, far from any attractor, the system actively navigating. Low arousal: near a fixed point, low surprise, the system at rest in a basin.

Integration: Irreducibility

As defined in Part I, integration is the cost of cutting the system in two:
In practice a proxy does the work: the prediction loss you pay for partitioning,
A warning I learned the expensive way. A proxy for integration returns a number for anything, noise included. Before a number from any estimator means something, the estimator has to pass three checks. It has to read near zero on independent noise with the same marginals. It has to give the same answer when the units inside a part are relabeled or rotated. And it has to rise when coupling is added by hand to a system built to have none. An estimator that fails any of these is measuring itself. The appendix states the checks formally.
High integration: the experience is unified; its parts cannot be separated without loss. Low integration: the experience is fragmentary or modular.
Effective Rank: Concentration vs. Distribution
The dimensionality of a system's active representation is the effective rank of its state covariance :

When all variance sits in one dimension and the system is maximally collapsed. When variance is spread evenly across every available dimension and the system is maximally expanded.
High rank: many degrees of freedom active; distributed, expansive experience. Low rank: collapsed into a narrow subspace; concentrated, focused, or trapped.
Counterfactual Weight
The coordinates above describe the system's current state. Counterfactual weight describes its temporal orientation: how much processing goes to possibilities rather than actualities. Let be the set of imagined rollouts and present-state processing. Then
is the fraction of computation spent modeling what is not the case. In a model-based agent with explicit planning this is literal:
High counterfactual weight: the mind is elsewhere, planning, worrying, fantasizing, anticipating. Low counterfactual weight: present-focused, reactive, in the moment.
This is where two modes of being a mind separate. Low is reactive experience: the system runs on present-state associations, and its processing decomposes by channel. High is understanding: the system holds several possible futures at once, and the quality of that holding, which possibilities, how compared, what they recommend, cannot be decomposed. Weighing options is not a sum of separate valuations. The comparison itself is the experience. Part III returns to this as the difference between reactivity and understanding.


Self-Model Salience
The last member of the entity-directed family measures how the self figures in the system's own processing. "Figures how" hides a fork, and the fork matters, because two different quantities get run under one symbol and they come apart on the clearest example there is.
The first is causal self-salience, , the fraction of action entropy explained by the self-model:
The second is attentional self-salience, , how prominently the self appears as an object in current processing, how much the system is thematizing itself:

Flow is the proof that these dissociate. In flow the skilled self drives everything, so is high. But the self is not thematized; it has vanished from attention, so is low. Shame is high on both: the self drives behavior and is the object of a harsh regard. Depersonalization is low on both: the self neither drives nor is noticed. Where this book writes without a subscript, read it as unless the formula makes the causal reading explicit. Whether the two run together or apart is set by the coupling axis introduced below: high binds attention and causation, low lets them separate, which is what flow exhibits.
High attentional self-salience: self-focused, self-conscious, the self the primary object of attention. Low attentional self-salience: self-forgotten, absorbed in environment or task, fully compatible with the self-model still driving the behavior.
"I" is not a secret interior, though shame and secrecy can shape it. "I" is the stable locus of integrated cause-effect structure the world model relies on most for prediction, the component other components reference when computing expected futures. A predictive structure, not a hidden essence: the system's most reliable attractor for anticipating its own behavior. This is why depression feels like losing yourself. The world model can no longer predict what "I" will do or want, self-reference breaks down, and coherence goes with it. It is also why an identity crisis is a dynamical event and not a mood: the attractor that was "I" has destabilized, and the system has to pay the expensive bill of finding a new one.
