---
description: More compute can make a general method competitive with a hand-coded decomposition; the capability at stake depends on whether that decomposition defines the task or only approximates it.
type: types/note.md
traits: [has-external-sources]
tags: [learning-theory, constraining, continual-learning, self-improving-systems]
---

# Codification and relaxing navigate the bitter lesson boundary

More compute can make a general method competitive with a hand-coded one. What the system stands to gain depends on the [relation between the specification and the objective](./exact-implementation-does-not-validate-a-requirement.md). If the specification defines the task, a different implementation still owes the same result. If it prescribes one way to solve a larger task, a general method can try solutions that the prescription excludes.

This is one reason to reconsider an implementation, not a prerequisite for doing so. For how a programmer can switch a component between a prompt and code to test a changed requirement at today's scale, see [code and prompts can share a unified interface so programmers choose between them as systems evolve](./a-unified-interface-lets-programmers-choose-prompts-or-code.md).

## The trade-off depends on which regime you're in

[Codification](./definitions/codification.md) moves a rule or operation into symbolic form by rewriting it or adopting a governing reference. This note concerns the code-extraction case: committing an interpreted rule to a script, executable test, schema, or validator whose behavior can be inspected and checked at acceptable cost. Adoption also codifies: an adopted model package can itself be a codified reference, though it provides neither the readable rules of code extraction nor lower inference cost. Retaining a convention in prose alone is not codification; it [constrains](./definitions/constraining.md) without codifying.

Code extraction can [trade generality for gains in reliability, speed, and cost](./constraining-and-extraction-both-trade-generality-for-reliability.md) when the committed procedure fits and its execution and maintenance are cheaper than repeated interpretation. But such a procedure can also encode a decomposition of a larger problem, and the arithmetic/vision-feature boundary determines what capability the commitment risks excluding. This note names the exact-spec regime the arithmetic regime and the proxy-theory regime the vision-feature regime, after their paradigm cases: arithmetic and hand-designed computer-vision features.

- **Arithmetic-regime (exact-spec) decompositions**: the spec fully captures the subproblem, so implementing it need not lose generality within that declared scope. An inspectable script or validator can improve reliability, speed, and cost without excluding required behavior; the economic gain still depends on implementation and maintenance costs.
- **Vision-feature (proxy-theory) decompositions**: the spec is a plausible theory of a larger capability, so an efficient local implementation can lose generality at that larger scope. When scale makes the general approach good enough on reliability, speed, and cost, that loss may no longer be worth it.

Here **relaxing** means replacing an extracted component with a more general one. Scaling changes the decision when the more general method becomes good enough on the larger task at an acceptable cost. The replacement can itself be codified by adoption; what relaxing reverses is the extraction, not symbolic membership.

The trajectory runs in both directions, and can repeat at different levels of the stack. Edge detection was codified (hand-coded algorithms), relaxed (replaced by learned features), and may re-codify as an accelerator inside a learned architecture. FlashAttention is hand-crafted algorithmic optimization embedded within learned architectures; tokenizers are engineered preprocessing that learned models depend on. The bitter lesson describes a trajectory, not a law of nature.

## Every code-extraction codification is a bet

In this case codification extracts a regularity and commits it to code. The bet is that what you extracted is genuinely part of the spec — load-bearing behavior that the system needs — rather than an accidental pattern that happens to hold on observed data. That is the same property [one case-level conjecture offers as the diagnosis of a structured method's loss under scaling](./bitter-lesson-selects-against-unearned-reach-not-against-structure.md), seen from the author's side rather than the survivor's: a codification that commits an accident asserts a scope that nothing assessed, and relaxing is what happens to it later. That scale in fact selects on this property is conjectural, not established.

For a fixed numerical contract, a replacement must still give the required answer; the contract does not dictate the algorithm. If that answer only serves as a feature in a broader task, whether to keep computing it depends on its contribution to that task.

The vision researchers made this bet at maximum disadvantage. They formalized subproblems — edge detection, corner detection — without a working "seeing" system to extract from. They were betting that theorized components would compose into the target capability, with no evidence of successful composition.

[Spec mining](./spec-mining-as-codification.md) improves the odds by starting from a working system. You watch a system that already achieves the target behavior (however unreliably), identify regularities, and extract those into formal checks. The bet shifts from "will these pieces compose?" (which the vision researchers lost) to "is this specific pattern load-bearing?" — a narrower bet with better odds, because you've already observed the behavior composing successfully.

But it's still a bet. A mined spec might capture an accidental regularity — a pattern that holds on the observed data but isn't what makes the system work. [Relaxing signals](./operational-signals-that-a-component-is-a-relaxing-candidate.md) are how you detect a losing bet: distribution shift, paraphrase brittleness, and isolation-vs-integration gaps reveal when a codified component encodes an accident rather than a spec.

Two formal results help bound when codification bets are safe. The epiplexity framework ([Finzi et al., 2026](https://arxiv.org/html/2601.03220v1)) separates information into time-bounded entropy (irreducible randomness) and epiplexity (learnable structure within computational bounds). High-epiplexity regularities are genuinely structural — codifying them is safer because they reflect real patterns, not artefacts of the observer's computational budget. Low-epiplexity patterns that appear regular may be accidents visible only at current scale.

[Ebrahimi et al.](../sources/induction-bias-sequence-models-ebrahimi-2026.ingest.md) report that, under outcome supervision on their modular-addition tasks, recurrent architectures reached convergence with “orders of magnitude fewer training samples.” That comparison favors a particular structure within the tested setting. It does not establish a permanent advantage under scaling or show that the subtask is worth retaining for another objective.

## Working heuristics

1. **Codify for current leverage, not permanence.** An executable test that checks "does this function return the right number" is in the arithmetic regime relative to that numerical contract. A workflow that enforces "always decompose agents into these three phases" is probably a vision feature relative to broader task success. Both can be codified — but expect the second kind to eventually relax.

2. **Prefer specs that describe what over how.** The more a codified artifact encodes a theory of how something works (rather than what it should produce), the more likely it is a relaxing candidate. "This endpoint returns X given Y" survives longer than "always process requests in three stages."

3. **Investigate composition failure before relaxing a rule.** Check whether the components met their requirements on the failing case and passed the right outputs to each other. Consider another decomposition when the requirements themselves exclude a better solution.

---

Sources:
- Finzi et al. (2026). [From entropy to epiplexity](https://arxiv.org/html/2601.03220v1) — formal framework distinguishing learnable structure from observer-relative artefacts; grounds when codification targets real patterns.
- [Induction bias in sequence models](../sources/induction-bias-sequence-models-ebrahimi-2026.ingest.md) — evidence for the bounded state-tracking comparison above.

Relevant Notes:

- [Unsupported proxy scope may explain a structured method's loss under scaling](./bitter-lesson-selects-against-unearned-reach-not-against-structure.md) — grounds: the case-level diagnosis this note reads from the author's side; it conjectures what may determine the outcome without establishing it or restoring the foresight this note denies
- [Exact implementation does not validate a requirement against its objective](./exact-implementation-does-not-validate-a-requirement.md) — grounds: local conformance and fitness for purpose need different checks.
- [the verifiability gradient](./verifiability-gradient.md) — grounds: available checks guide whether to extract a rule into a script or validator
- [constraining and extraction can trade generality for reliability, speed, or cost](./constraining-and-extraction-both-trade-generality-for-reliability.md) — grounds: the trade-off code-extraction codification can enact
- [spec mining as codification](./spec-mining-as-codification.md) — the bottom-up extraction method that avoids the vision-feature failure mode
- [relaxing signals](./operational-signals-that-a-component-is-a-relaxing-candidate.md) — detects when codified components are encoding vision features
