How a single 1968 principle quietly became the engine behind modern AI.
Software engineering has been rediscovering the same truth since the late 1960s, each time at a larger scale. The pattern is always the same: take a unit of completed work, give it a name, store it somewhere addressable, and apply it to problems it was never originally designed to solve. Every major productivity leap in computing traces back to this single move executed at a new level of abstraction.
Software engineering has been rediscovering the same truth since the late 1960s, each time at a larger scale. At the 1968 NATO Software Engineering Conference, a researcher from Bell Labs argued that the software industry needed to do what manufacturing had done for decades: produce standardized, catalogued, interchangeable components that engineers could reach for rather than rebuild. Structured programming replaced tangled chains of instructions with named, callable procedures. Information hiding established that a module should conceal its inner workings from everything outside it, so the inside could change without breaking the callers. The DRY principle condensed all of it into a mandate: every piece of knowledge should exist exactly once in a system, available to be called rather than copied.
The economic logic underneath each of these ideas is the same. When a unit of work is properly abstracted, it costs roughly the same to use once as it does to use a thousand times. The fixed cost of building it is paid forward across every future invocation. Systems built from reusable units grow in capability without growing proportionally in complexity, because each new layer stands on everything already solved below it.
The clearest contemporary expression of this principle is the microservices architecture. A monolithic application is a single tightly coupled unit; when one part fails or needs to change, the whole structure is at risk. A microservices design breaks the system into independent, single-responsibility services that communicate through defined interfaces, each deployable and scalable on its own. Docker containers package each service with its dependencies into a portable, isolated artifact. Kubernetes orchestrates those artifacts across infrastructure. The individual service becomes something that can be written once, deployed anywhere, reused across products, and updated without touching anything it connects to.
For most of computing history, reusable work meant reusable code. What changed with the rise of large neural networks is that the work being reused is no longer written by a programmer. It is learned computation, the product of training a model on vast quantities of data, compressing the statistical structure of that data into billions of numerical weights. A foundation model is best understood as an enormous fixed investment in representation. That training run is expensive in compute, time, and energy, but it is performed once. Every subsequent use of the model, whether through fine-tuning, prompting, or embedding it inside a product, is a reuse operation that pays nothing back to the original training cost. The fixed investment is amortized across every downstream application, which is exactly the economic logic that made modular programming powerful.
What makes this more than analogy is the degree to which learned representations transfer across tasks that look nothing alike. A model trained on general text can be adapted to write legal briefs, answer medical questions, or reason about mathematics, often with little additional training. The representations generalize because they encode something real about structure, not just memorized surface patterns. That generalization is the mechanism that turns a single training run into a reusable asset.
LoRA, Low-Rank Adaptation, makes this reuse architecture precise and practical. Rather than retraining a full model to specialize it for a new task, LoRA freezes the original weights entirely and trains a pair of small matrices whose product approximates the adjustment the full model would otherwise need. Those adapter matrices represent under two percent of the model's total parameters and can be swapped in and out at inference time, meaning a single base model can serve dozens of specialized tasks simultaneously, each adapter stored separately and applied on demand. The base model is the reusable substrate; the adapters are the reusable specializations layered on top.
Neural networks learn representations, but they do not naturally organize what they learn into reusable units. The patterns captured in a model's weights are distributed across billions of parameters with no obvious way to extract a specific piece of knowledge, name it, and hand it to a different task. The system learns, but it does not build a library. Neurosymbolic AI is in part an attempt to fix this, pairing a neural component, which is good at pattern recognition across messy real-world data, with a symbolic component that enforces structure and the kind of precise, checkable logic that can be named, stored, and reused across problems. The symbolic layer is where reuse lives.
The deepest versions of this idea treat the accumulation of reusable abstractions as the primary goal of the learning process itself. Rather than training a model to maximize performance on a fixed task, these systems compress what they learn into the smallest set of general concepts that still explain the data. Every new problem is an opportunity not just to produce an answer but to discover a concept worth keeping.
DreamCoder, developed at MIT, demonstrated this in a setting precise enough to measure. The system learned to write programs by iteratively solving tasks, then pausing to ask a question most AI systems never ask: what in these solutions is worth abstracting? At each pause, DreamCoder ran a compression algorithm over its recent programs, extracted subroutines that appeared across multiple solutions, named them, and added them to a growing library. Future solutions could call those library functions rather than rediscovering them. The library grew into a hierarchy where simple abstractions built more complex ones. The system became faster and more capable on novel problems not because it trained longer, but because it reused more.
Reusable work is not only about storing abstractions for future reasoning. It is also about storing intermediate computations so they do not have to be repeated. Modern AI inference involves an enormous amount of redundant work: reading the same system prompt thousands of times, re-encoding the same document for every question asked about it, rebuilding the same conversational context from scratch with each new request. When a language model processes a sequence of text, it computes internal states representing the attention patterns across every token it has seen. Without caching, every new request recomputes those states even when the input begins with a prefix identical to what the system processed moments ago. With prefix caching, those computed states are saved and reused whenever a matching prefix arrives, and the model skips the redundant work entirely.
What matters architecturally is the conceptual shift this represents. Caching treats the output of previous computation as a reusable asset rather than a disposable intermediate. It imposes a discipline on the system to recognize when new work is actually new and when it is a variation on something already done. Applied consistently, that discipline changes the economics of inference in ways that accumulate at scale, because high-frequency deployments compound the savings with every additional call.
Anthropic's prompt caching implementation for Claude makes the economics concrete. Cache reads are priced at ten percent of the standard input token cost, a ninety percent discount on work the model would otherwise redo. For long system prompts, document-heavy question-answering, or extended multi-turn conversations, the savings arrive with every request after the first. Anthropic has reported latency reductions of up to eighty-five percent on long-prompt workloads, because the model is no longer re-encoding thousands of tokens it has already processed. The fixed cost of the first computation is paid once and amortized across every call that follows.
A working diagram of the reuse principle as it applies across computing and AI systems. The same extract-store-apply pattern appears at every scale, from named procedures in 1968 to skill-accumulating agents today.
The most ambitious extension of reusable computation is the idea that an AI agent could accumulate reusable work the way a software project accumulates a codebase: gradually, through use, building a library of solutions that grows more capable with each new problem solved. This is distinct from fine-tuning a model or caching attention states. It is about an agent that, in the course of operating in the world, distills what it has done into something retrievable, composable, and transferable to problems it has never seen. The engineering structure required is specific: the agent must produce solutions that are executable artifacts, not just answers; a retrieval mechanism that matches new problems to stored solutions by semantic similarity; and a composition mechanism that combines simple stored skills into more complex behaviors without rediscovering their components.
This architecture changes what generalization means. In conventional machine learning, a model generalizes by applying patterns baked into its weights at training time. Those patterns cannot easily be updated without retraining. An agent with a skill library generalizes differently: it retrieves the most relevant prior work, checks whether it applies, composes it with other skills if needed, and adds the result back to the library. Generalization becomes a dynamic, accumulative process rather than a fixed property of a frozen model.
Voyager, developed by researchers at NVIDIA and Caltech, built this architecture inside Minecraft, a procedurally generated environment where the space of possible tasks is effectively unbounded. The agent used a large language model to write executable programs for each task it attempted, storing successful programs in a skill library indexed by the semantic embedding of each skill's description. When a new task arrived, the agent retrieved the most relevant stored skills and assembled them rather than starting from scratch. Voyager unlocked technology milestones up to fifteen times faster than prior systems and acquired more than three times as many distinct items. More telling was what happened when the agent was placed in a completely new Minecraft world with no memory of events but with its accumulated skill library intact. It completed tasks on its first attempt at a rate that prior agents, which had no library, could not approach. The world had changed. The reusable work had not.
The through-line connecting 1968 to the present is not any particular technology. It is a single architectural insight: that the marginal cost of solving a new problem can be made arbitrarily small if the work done on previous problems is stored in the right form. Software engineering discovered this for code. Foundation models discovered it for learned representations. Neurosymbolic systems are discovering it for abstractions. Caching is discovering it for intermediate computations. Skill-library agents are discovering it for executable behavior. Each time the same principle resurfaces, it does so at a larger scale and with greater consequence. The question for the next generation of AI systems is not whether to build for reuse, but how far the principle can be pushed before it runs into something it cannot compress.
Key references: Ellis, K. et al., "DreamCoder: Bootstrapping Inductive Program Synthesis with Wake-Sleep Library Learning," PLDI 2021. Wang, G. et al., "Voyager: An Open-Ended Embodied Agent with Large Language Models," arXiv 2305.16291, 2023. Hu, E. et al., "LoRA: Low-Rank Adaptation of Large Language Models," ICLR 2022. Parnas, D., "On the Criteria to Be Used in Decomposing Systems into Modules," Communications of the ACM, Vol. 15 No. 12, 1972. Anthropic, "Prompt Caching with Claude," 2024. Bommasani, R. et al., "On the Opportunities and Risks of Foundation Models," Stanford CRFM, 2021. McIlroy, M. D., "Mass Produced Software Components," NATO Software Engineering Conference, 1968.
Daice Labs Inc.
Brookline, MA, USA
Roll the "daice"–exploration & programmable adaptation.