Agentic AI Notes / Field guide / The pair
Generalization and transfer are the same statement about error, separated by a single term: how different the new world is from the old one.
The unifying view
Generalization asks about new examples from the same world. Transfer asks about a different world and pays a price for the distance. Drag the worlds apart below and watch the bound grow the extra terms.
At zero distance the divergence and joint terms vanish and you are left with the generalization bound: same world, new samples. Push the slider and the divergence term switches on, then the joint term \(\lambda\) starts to matter once the underlying rule itself may differ.
The middle ground
Between the two pages sits a third case: several related source worlds and a target you cannot see during training. You are not just generalizing within one world, and you cannot adapt to the target because it is not available yet. The move is to learn what is invariant across the source worlds, on the bet that a pattern stable across all of them is real structure rather than a per-world artifact.
The worked version, training a fault detector on three motor platforms and deploying on an unseen fourth, with leave-one-platform-out validation, lives on the transfer page.
Field guide
Four gates, in order. Stop at the first one that decides the matter.
Field guide
Match the symptom to the term that is biting.
Reference
The agentic lens
An agent that has learned a skill faces both questions constantly. Generalization is whether its policy holds up on tasks it was not explicitly tuned on, drawn from the same kind of work. The honest test is to hold out whole task families, the agentic version of leaving out whole vehicles, rather than scoring on the very traces it was shaped by.
Transfer is what happens the moment the agent meets a new tool, API, or environment. In-context examples are fast transfer; turning a base model into a specialist is slow transfer. When a clearly capable agent stumbles on an unfamiliar tool, the three-term rule says to suspect the divergence between the new environment and the old, not the agent's raw ability.
The quantity that decides success in both regimes is the same: effective independent evidence relative to how far you have moved, across samples for generalization, across worlds for transfer.
The pair