ML Systems: From Weights to Work. Lesson 8. Choose the smallest effective intervention.

This educational session uses fictional healthcare operations examples. This session uses AI narration.

Diagnose the failure before choosing the technique

An assistant can fail because information is missing, retrieval finds the wrong record, the model ignores a valid rule, a tool rejects the request, a transaction is uncertain, or the operating policy is undefined. Those failures call for different interventions. A larger model or a new adapter may help some of them and leave others untouched. Start from a reproducible trace with the expected outcome, observed outcome and the first point where evidence or control diverges.

A prompt supplies instructions for the current inference. Retrieval supplies selected external material. A tool exposes a capability through an application interface. A skill packages procedural guidance and sometimes supporting resources or scripts. Memory preserves selected information across a chosen scope and lifetime. An adapter or full fine-tune changes learned parameters. These components can work together, but naming all of them does not establish a coherent architecture.

Keep current facts outside irreversible learning loops

Suppose a payer's enrollment status changes today. That fact belongs in an authoritative source and a current lookup path, not in a training run that may finish next week. A model can learn how to interpret a status response, but it should not be trusted as the current record of participation. Likewise, a saved preference can help a conversation without authorizing a new action. Scope, provenance and freshness travel with the data rather than being inferred from friendly wording.

An adapter becomes more plausible when a stable, repeated behavior remains deficient after prompt, retrieval and tool design are sound, and you have legitimate training data plus a held-out test that can detect improvement and regression. For a narrow numerical decision, a rules engine or a specialized predictor may be the better baseline. The choice should follow the error distribution and operating constraints, not a desire to make every component agentic.

Run an ablation that can change your mind

An ablation removes or changes one component while holding the rest of the system fixed. Compare a baseline, improved evidence selection, improved instructions and a model adaptation separately before combining them. Use the same held-out case distribution and report confidence limits appropriate to the sample. Do not conclude that an adapter caused a gain if the adapter candidate also received a cleaner retrieval pipeline and a new prompt.

Include quality, coverage, reviewer effort, latency and cost per completed valid task. Cheap tokens can still produce expensive work if they trigger retries or manual correction. A model that abstains on every difficult case may avoid errors while exhausting the review queue. Count failures at the business boundary: an acknowledged request, a committed external action and a verified final outcome are different milestones.

Build an operating argument, not a shopping list

A useful architecture memo identifies the data owner, decision authority, source of truth, versioned artifacts, runtime constraints and failure recovery. It states what is simulated, what is tested and what remains unknown. In healthcare operations, credentialing approval, enrollment linkage, payer agreements and effective dates remain distinct facts where the workflow requires them. A model's explanation should preserve those distinctions rather than compress them into a single ready flag.

The capstone asks you to use the mechanisms from this course together. Reconstruct a gradient, calculate a compute budget, count adapter parameters and size an inference cache. Then decide which of those techniques is actually justified by the failure packet. Engineering depth is not using the most advanced technique available. It is being able to show why a particular change should work, what it costs, what it cannot fix and what evidence would make you reject it.

Your decision exercise. In 200 synthetic credentialing tasks, 36 failures come from stale enrollment records, 12 from unresolved tool timeouts and 8 from incorrectly formatted summaries. The current model formats the summary correctly in 48 of 50 tests when given a validated record packet and a schema. A proposed adapter is trained on last quarter’s successful summaries and payer statuses. Which first intervention best matches the dominant failures?

Option 1. Train the adapter to memorize the historical statuses, then remove live lookups to reduce latency.

Option 2. Improve record freshness and exact scope checks, add durable timeout reconciliation, and test the schema-based summary path before considering adaptation.

Option 3. Increase the context window and include every historical summary in each request, leaving the timeout path unchanged.

Pause here and commit to a choice. Name the decisive evidence and one limitation before continuing.

Reference analysis. Most failures concern current evidence and uncertain external state. An adapter cannot make last quarter’s status current or determine whether a timed-out write committed. Improve the authoritative lookup and recovery path, then evaluate summary formatting under a fixed evidence packet and schema. The 48-of-50 result is encouraging but too small to prove reliability across all cases. Preserve a held-out suite that includes missing and conflicting fields, compare the changed components separately, and decide whether the residual behavior gap justifies training. This is a prioritization argument, not proof that the existing model will be sufficient forever.

Now change one fact. After those fixes, a stable specialty-specific interpretation still fails in 18% of cases despite good evidence and clear instructions. You have reviewed, legally usable examples. Specify the controlled adapter experiment, its baseline and the regression that would block adoption.

Finish with an engineering recommendation that a skeptical colleague could challenge. State the leading failure category, the smallest intervention, one quantitative resource constraint, the held-out acceptance test and a rollback condition. Then argue for the strongest alternative. If you cannot explain why that alternative loses under the supplied evidence, your decision is not ready to implement.
