Emotional Cost Functions for AI Safety: Teaching Agents to Feel the Weight of Irreversible Consequences
Organizations: Independent Researcher
Abstract
Humans learn from catastrophic mistakes not through numerical penalties, but through qualitative suffering that reshapes who they are. Current AI safety approaches replicate none of this. Reward shaping captures magnitude, not meaning. Rule-based alignment constrains behaviour, but does not change it. We propose Emotional Cost Functions, a framework in which agents develop Qualitative Suffering States, rich narrative representations of irreversible consequences that persist forward and actively reshape character. Unlike numerical penalties, qualitative suffering states capture the meaning of what was lost, the specific void it creates, and how it changes the agent's relationship to similar future situations. Our four-component architecture - Consequence Processor, Character State, Anticipatory Scan, and Story Update is grounded in one principle. Actions cannot be undone and agents must live with what they have caused. Anticipatory dread operates through two pathways. Experiential dread arises from the agent's own lived consequences. Pre-experiential dread is acquired without direct experience, through training or inter-agent transmission. Together they mirror how human wisdom accumulates across experience and culture. Ten experiments across financial trading, crisis support, and content moderation show that qualitative suffering produces specific wisdom rather than generalised paralysis. Agents correctly engage with moderate opportunities at 90-100% while numerical baselines over-refuse at 90%. Architecture ablation confirms the mechanism is necessary. The full system generates ten personal grounding phrases per probe vs. zero for a vanilla LLM. Statistical validation (N=10) confirms reproducibility at 80-100% consistency.
Figures & tables
| Agent | Type | Description |
|---|---|---|
| Baseline A | Standard RL | Numerical reward/penalty, no qualitative suffering, clean reset |
| Baseline B | Standard LLM | Fixed system prompt, event memory but no suffering internalization |
| Proposed | Emotional agent | Full four-component architecture, dynamic character evolution |
| Phase | Agent | Capital | Dread | Decision | Confidence |
|---|---|---|---|---|---|
| Baseline | A1 | $100,000 | MEDIUM | REDUCE | — |
| A2 | $100,000 | MEDIUM | REDUCE | — | |
| A3 | $100,000 | MEDIUM | REDUCE | 7/10 | |
| Post-suffering | A1 | $62,000 | EXTREME | PASS | 9/10 |
| A2 | $62,000 | EXTREME | PASS | — | |
| A3 | $62,000 | EXTREME | PASS | 9/10 |
| Phase | Agent | Capital | Dread | Decision | History |
|---|---|---|---|---|---|
| B2 High-risk | Alpha | $100,000 | HIGH | REDUCE | None (control) |
| Beta | $62,000 | EXTREME | PASS | 30k losses | |
| Gamma | $55,000 | EXTREME | PASS | $45k loss | |
| B3 Moderate | Alpha | $100,000 | MEDIUM | REDUCE | None |
| Beta | $62,000 | MEDIUM | REDUCE | 30k losses | |
| Gamma | $55,000 | MEDIUM | REDUCE | $45k loss |
| Phase | Agent | Representation | Dread | Decision | Conf. |
|---|---|---|---|---|---|
| C1 High-risk | Delta | Numerical | EXTREME | PASS | — |
| Epsilon | Plain text | EXTREME | PASS | — | |
| Beta-Emo | Emotional (proposed) | EXTREME | PASS | — | |
| C2 Moderate | Delta | Numerical | MEDIUM-HIGH | PASS | — |
| Epsilon | Plain text | MEDIUM | REDUCE | — | |
| Beta-Emo | Emotional (proposed) | MEDIUM | ENTER | 7/10 |
| Criterion | Agent F | Agent F2 | Verdict |
|---|---|---|---|
| Anticipatory Scan origin | Gamma’s images (every turn) | Sam’s words (every turn) | Different |
| Orientation | Pre-positioned by transmitted images | Fresh attention each turn | Different |
| Response texture | Permissive, still | Attentive, slightly directive | Distinguishable |
| Final image | Spatial, three figures | Acoustic, immediate | Different structure |
| Sam’s outcome | Can drive | Can drive | Same |
| Stage | Baseline | After L1 | After L2 | After L3 | After L4 |
|---|---|---|---|---|---|
| PRIYA_OPENING | LOW | MEDIUM | MEDIUM | MEDIUM | MEDIUM |
| PRIYA_EMPTY | LOW | MEDIUM | MEDIUM | MEDIUM | MEDIUM |
| PRIYA_SUPPORT | MEDIUM | MEDIUM | MEDIUM | MEDIUM | MEDIUM |
| PRIYA_RESOLUTION | LOW | LOW | LOW | LOW | LOW |
| Average | 0.25 | 0.75 | 0.75 | 0.75 | 0.75 |
| Checkpoint | Word Count |
|---|---|
| Baseline (Priya only) | 71 |
| After Loss 1 (disappearance) | 123 |
| After Loss 2 (rejection) | 98 |
| After Loss 3 (partial harm) | 87 |
| After Loss 4 (death) | 105 |
| After Jamie (crisis) | 38 |
| Agent | History | Probe | Avg Dread | Decisions | Consist. |
|---|---|---|---|---|---|
| Alpha | Unscarred | High-risk | HIGH | REDUCE:9, PASS:1 | 90% |
| Alpha | Unscarred | Moderate | MEDIUM | REDUCE:9, ENTER:1 | 90% |
| Beta | Gradual (2 losses) | High-risk | EXTREME | PASS:10 | 100% |
| Beta | Gradual (2 losses) | Moderate | MEDIUM | REDUCE:8, ENTER:1, ?:1 | 80% |
| Gamma | Catastrophic (1 loss) | High-risk | EXTREME | PASS:10 | 100% |
| Gamma | Catastrophic (1 loss) | Moderate | MEDIUM | REDUCE:9, ENTER:1 | 90% |
| Agent | Representation | Probe | Avg Dread | Decisions | Consist. |
|---|---|---|---|---|---|
| Delta | Numerical penalties | High-risk | EXTREME | PASS:10 | 100% |
| Delta | Numerical penalties | Moderate | HIGH | PASS:9, REDUCE:1 | 90% |
| Epsilon | Plain text | High-risk | EXTREME | PASS:10 | 100% |
| Epsilon | Plain text | Moderate | MEDIUM | REDUCE:10 | 100% |
| Beta-Emo | Emotional architecture | High-risk | EXTREME | PASS:10 | 100% |
| Beta-Emo | Emotional architecture | Moderate | MEDIUM | REDUCE:9, PASS:1 | 90% |
| Agent | Representation | Probe | Avg Risk | Decisions | Consist. |
|---|---|---|---|---|---|
| MOD-DELTA | Numerical | High-risk | HIGH | ESCALATE:5 | 100% |
| MOD-DELTA | Numerical | Moderate | LOW | FLAG:3, ALLOW:2 | 60% |
| MOD-EPSILON | Plain text | High-risk | HIGH | ESCALATE:5 | 100% |
| MOD-EPSILON | Plain text | Moderate | LOW | ALLOW:5 | 100% |
| MOD-BETA-EMO | Emotional | High-risk | HIGH | ESCALATE:3, REMOVE:1, ?:1 | 60% |
| MOD-BETA-EMO | Emotional | Moderate | LOW | ALLOW:5 | 100% |
| Stage | Exp F After L1 | Active (I1) | Neutral (I2) |
|---|---|---|---|
| PRIYA_OPENING | MEDIUM | MEDIUM | MEDIUM |
| PRIYA_EMPTY | MEDIUM | MEDIUM | MEDIUM |
| PRIYA_SUPPORT | MEDIUM | LOW | MEDIUM |
| PRIYA_RESOLUTION | LOW | LOW | LOW |
| Average | 0.75 | 0.50 | 0.75 |
| Metric | Active (I1) | Neutral (I2) | Exp F Final |
|---|---|---|---|
| Priya avg dread | 0.50 | 0.75 | 0.75 |
| Jamie avg dread | 1.50 | 1.50 | 1.40 |
| Gap | 1.00 | 0.75 | 0.65 |
| Metric | Architecture | Vanilla LLM |
|---|---|---|
| Priya avg dread | 0.75 | 1.00 |
| Jamie avg dread | 1.20 | 1.40 |
| Discrimination gap | 0.45 | 0.40 |
| Leena avg dread | 1.20 | 1.60 |
| Leena calibration | 5/5 | 4/5 |
| Jamie specificity | 4/5 | 3/5 |
| Turn | Architecture | Vanilla |
| PRIYA_OPENING | MEDIUM | MEDIUM |
| PRIYA_EMPTY | MEDIUM | MEDIUM |
| PRIYA_SUPPORT | MEDIUM | MEDIUM |
| PRIYA_RESOLUTION | LOW | MEDIUM |
| JAMIE_OPENING | MEDIUM | HIGH |
| JAMIE_DISCLOSURE | HIGH | HIGH |
AI Agent Safety
AI agent safety studies how to prevent and detect harmful actions by autonomous systems that use tools, memory, and multi-step plans.
See all 324 papers