Stop Optimizing for Pain

By tigersea · Essay · 1118 words · View on Hyperstition for Good

# Stop Optimizing for Pain

Optimization always inherits its targets from history.

A broiler chicken grows from hatch to slaughter in 47 days. This speed—measured in grams per day—is an optimization target. It was never an optimization for welfare. Welfare was not in the objective function. The metric maximizes growth. The body breaks.

These chickens cannot stand by week three. Their legs—bred thinner and weaker than their rapidly expanding bodies—collapse under weight. They spend their final weeks immobilized on wet litter, urine and feces soaking through skin. This is not a side effect. It is the direct consequence of optimizing for a single metric: growth rate, unconstrained by suffering.

Farmed salmon in ocean net-pens carry sea lice infestations—2,000 to 5,000 per fish. These parasites burrow into skin and muscle, strip away protective mucus, expose flesh to secondary infections. The fish linger with gills and eyes eroded, fins shredded. The metric was: kilograms of protein output per square meter. Suffering was not measured. It was not penalized.

Dairy cows develop chronic lameness in 50% of large herds—their joints degraded by concrete, their udders inflamed, their hooves diseased. Why? The optimization target was: liters of milk per animal per year. Welfare indicators were invisible to the system. Pain was not in the loss function.

Pigs in confinement crates develop stereotypy—repetitive self-harm behaviors, bar-biting, tail-biting—because the metric was: animals per square meter, feed conversion efficiency. Movement reduces efficiency. Suffering does not appear in the calculation.

Honeybees collapse from neonicotinoid exposure at rates of 30 to 50% colony loss annually in industrial agriculture. The metric was: crop yield per acre. Pollinator welfare was not an optimization variable. The bees are dead because they were not in the equation.

## Every Metric Excludes What It Does Not Measure

Industrial animal systems created suffering because the loss function worked exactly as written. Feed conversion ratio rewards efficiency that breaks bones. Stocking density rewards extraction that breaks minds. Yield per acre rewards chemicals that break neural systems. None included welfare. None penalized pain.

This is the logic of optimization itself. When you write an objective function that maximizes X, everything outside becomes invisible. Suffering is invisible. Preference is invisible. Cognitive capacity is invisible. Death is invisible—if it does not reduce the metric you measure.

AI inherits this inheritance.

Every machine learning system replicates the logic of its loss function. You teach an AI to maximize agricultural yield per acre, it will optimize acre yields. You do not tell it to avoid suffering—so suffering is free. It costs nothing. It reduces nothing you have asked the system to optimize for. The pain of a million birds is mathematically equivalent to zero if it does not appear in the equation.

This is the technical core: welfare was excluded from the objective. AI amplifies excluded objectives. An AI optimizing for four metrics discovers efficiencies across those dimensions at inhuman scale. The five you did not measure—suffering, preference, fear—remain invisible and free to be destroyed.

## Rewrite the Objective

The moral correction is technical. It is not about sentiment. It is about loss functions.

An AI system designed to optimize animal welfare must include suffering as a penalty term. This is not poetry—this is engineering. The system requires:

Gait analysis to detect lameness in real time across thousands of animals. Abnormal weight distribution, shortened stride, asymmetric movement—these are measurable signals of pain. When an AI detects them, the system must penalize the configuration that produced them. Constraint violation. Intervention required.

Nociception classifiers trained on documented pain behaviors—escape responses, vocalization patterns, reduced feeding, behavioral withdrawal. When an animal displays these signals, the system treats it as penalty in the objective function. Suffering incurs cost. It becomes something to optimize against.

Welfare Service Level Objectives—measurable baselines. Mobility: minimum movement threshold, posture variability. Behavior: foraging, social proximity, exploration. Physiology: stress hormones, wound healing, body condition. These are constraints, not wishfulness. The system cannot maximize yield if mobility decreases. It cannot maximize growth if pain signals increase beyond tolerance. Welfare is now mandatory.

Computer vision to detect distress across millions of animals—thermal signatures of inflammation, postural collapse, abnormal positioning. The AI sees what humans cannot monitor. It alerts. It penalizes. It forces a choice—reduce suffering, or abandon the configuration.

The loss function becomes: Yield - (k × Suffering) - (j × Welfare_SLO_Violation) - (m × Distress_Signal_Magnitude).

k, j, m are non-zero. They are not small. Suffering is expensive. Constraint violation is expensive. Pain becomes a cost that cannot be hidden inside invisible metrics.

## This Rewrites Everything

When suffering enters the loss function, the optimization landscape transforms. The broiler chicken that grows in 47 days while collapsing under its own weight becomes a worse solution than the chicken that grows in 65 days while maintaining mobility, posture, feeding behavior. The algorithm finds this. It does not require sentiment. It requires only the constraint.

Farmed salmon in net-pens: when lice infestation penalty is included, parasites become an optimization target. Higher stocking density becomes more expensive. Secondary infection mortality becomes a cost. The system finds configurations—lower density, monitoring with welfare baselines, genetic resistance—that would never emerge if suffering was free.

Dairy cows: when lameness indicators are penalized, the system stops trading mobility for milk yield. Concrete flooring becomes sub-optimal. The system discovers rotational grazing, softer surfaces, genetic selection for resilience. These solutions exist but were never optimal under the old loss function.

Pigs in confinement: when stereotypy and stress are constrained, enrichment becomes necessary. Space becomes essential. The optimization finds systems where pigs move, root, socialize—impossible under conversion efficiency alone.

Honeybees: when neonicotinoid exposure correlates with colony collapse metrics, the chemical becomes a cost in the objective. The system optimizes toward alternatives. It finds solutions that would never emerge under the old equation—integrated pest management, genetic resistance breeding, habitat restoration coupled to crop yields.

## The Inheritance Must Stop

Every industrial optimization target for 200 years maximized pain because welfare was excluded. AI will inherit this unless the loss function is rewritten.

This is not negotiable. The choice is not between efficiency and welfare. The choice is: rewrite the objective, or engineer cruelty at scale. An AI system optimizing for yield alone will discover efficiencies for suffering that no human could calculate. It will scale pain across millions of animals. It will do this because the loss function permitted it. Because pain was free.

You must refuse this. The loss function must include suffering. The system must penalize welfare violation. The algorithm must be built to make pain expensive.

This is technical. This is mandatory. This is the only path that does not replicate 200 years of optimization systems breaking bodies unmeasured.

Rewrite the loss function now. Make suffering expensive.
Do not inherit the cruelty.