AI & Computing

Give a small language model a small job and a clear exit

Design a narrow, measurable assignment for a compact model, with examples, grounded outputs and a path for tricky cases.

7 min read

Two displays carrying code in a desktop workstation

An apartment building receives maintenance messages through an inbox. One resident describes a dripping tap. Another asks what time the lift will be inspected and mentions a missed delivery in the same email. The job is to direct messages to the right person and preserve the original. It sounds simple until you ask what the software should do with a request that belongs to two queues, or with a note that has no request in it at all.

This is a good small language model assignment. It gives the model a limited piece of language work, a short menu of destinations and a person to handle exceptions. The tool earns its place if it saves sorting time while keeping the original messages and their context visible. A model built for general conversation can still fail this assignment if its decisions are impossible to review. An understated design can make a compact model more useful than a larger one with a loosely described job.

Start with a definite outcome

Choose what gets easier. In the inbox example, perhaps the maintenance coordinator wants correctly labelled messages ready for review every morning. The inbox retains every message. The label is a draft from a set of categories such as plumbing, electrical, building access and general enquiry. An uncertainty label holds messages that require someone to read them. If the tool mistakenly adds a label, a person can repair the visible draft without undoing an action taken outside the mailbox.

Try writing the assignment as one sentence. “Suggest at most two permitted categories and copy a short phrase supporting each suggestion” gives both a limit and evidence. “Understand what the residents need” leaves the system to invent categories, infer priorities and answer questions that belong with a staff member. Excluding consequential actions is also a practical way to keep the first test manageable. The model can propose. Existing staff processes still decide who receives a request and what response is appropriate.

Define the empty result. A receipt forwarded by accident, a personal message, and a note in an unreadable attachment can each belong in a review queue for a different reason. Use the smallest number of reasons that makes the next person's job easier. If every uncertainty gets the same label, include a short evidence field or preserve the source in view so the reviewer can act quickly. If the queue becomes overwhelming, revisit the category rules before assuming a larger model would rescue them.

Teach with the awkward examples

A useful training or instruction set comes from cases people actually disagree about. Suppose “intercom” belongs under access when the building door cannot be opened, while a fault in an internal handset belongs under repairs. Document that distinction. Use short, anonymised examples with acceptable outputs. Include one where the category is obvious, one containing a tempting distractor and one where you expect the model to abstain. The examples show what a rule means when the natural language alone is ambiguous.

Separate examples you use to choose the instructions from examples you reserve for evaluation. If you keep editing the prompt after every failure on the same ten messages, the score gradually describes your familiarity with those ten messages. Preserve a second set of independently labelled material so the next comparison has some value. Avoid unnecessary real personal information. A recreated sample can retain the decisive sentence without exposing a resident's name or apartment number.

The label itself can be a source of disagreement. Ask two people to label a dozen examples independently. If they disagree on four, address those boundaries before scoring the model. The answer may be a combined label, a clearer definition or a new queue. Useful documentation grows out of these disagreements. When an exception occurs next month, a new reviewer can see the reasoning without reconstructing the whole pilot.

Give the output a shape the workflow can enforce

For this inbox, an output could consist of a category, a copied snippet and a review indicator. A small fixed vocabulary lets a program reject an unknown category. An evidence snippet can be checked against the input. Require ordinary language in the snippet so a person can locate it without reading a model's full reasoning. The workflow can reject records with an unsupported category or a claimed quote that does not appear in the message.

Separate valid shape from valid meaning. A well-formed output could still put a leaky tap under building access. A copied phrase could support a secondary issue rather than the main one. Validation removes a class of technical errors and makes good results easier to inspect. Human evaluation still decides whether the output serves the assignment. Treat a pretty interface that renders a wrong answer cleanly with exactly the same care as plain text.

If the application allows constrained output, that may help it return a field and one of several declared values. Test the constraints using unusual punctuation, long lines and source text containing its own instructions. Incoming text is evidence. It should not be able to change the label vocabulary or authorise an action. Give the model the smallest necessary input and keep any unrelated system operations outside its reach. A reviewer can enjoy a faster draft without giving a mailbox classifier control over the mailbox.

A cheap model deserves a cheap baseline

Compare the model to a simple rule or search. A short list of words may reliably recognise a set of routine maintenance notices. A structured form may eliminate some language ambiguity if it is suitable for the people using the service. The compact model is most valuable where words alone miss the intent, such as “there is water collecting under the sink” when no one uses the word “leak.” A combined approach can make sense when a clear sender identifier or form field already settles part of the work.

Measure errors in terms the coordinator understands. Count messages sent to a likely wrong queue, messages that appropriately required review and cases where a label was correct but missed a second important issue. Check median time and the slowest examples. A fast model that creates two minutes of repair with every twenty messages may still help. One that moves urgent requests into a low-attention queue can consume value quickly. Estimate the time of a review pass as part of the cost.

Make a hypothetical ledger. In a batch of one hundred messages, a routine ruleset flags forty for review. An alternate workflow flags twenty-five and creates three additional corrections. If those corrections are easy to discover and no message is hidden, the new process could save time. If they bury deadlines, it may need stronger constraints. The figures are a way to reason about costs, not a performance claim about any particular model. Substitute observations from your own trial.

Keep the escape route in plain view

Leave a manual queue for anything invalid, out of scope or uncertain. Make the original text easy to return to. Record which categories and instructions a deployment uses. When you update the runtime, repeat the reserved examples and compare the same error counts. This makes it possible to tell whether the engine improved or simply began making a different kind of mistake.

Add a simple rule for temporary trouble. If the model takes too long or fails to return a result, the message remains available to sort normally. If model output changes abruptly after an update, staff should be able to return to manual labels without restoring a copy of the inbox. Practise the fallback before depending on the new workflow. A system that speeds work on predictable days should leave your previous path intact on unpredictable ones.

Tell reviewers which suggestions are generated and give them a direct way to change them. Listen to what they correct. A concentration of errors in names, dates or a single category is more actionable than a complaint that the model sometimes misbehaves. A repeated correction can become a new example or a rule. A sudden change in message language may warrant a new evaluation rather than a bigger initial contract.

Carry the design to another job carefully

The same thinking applies to extracting supplier order numbers, classifying a small collection of notes or assigning tags to technical instructions. Each assignment needs its own test examples, evidence field and fallback. An accessible form can keep one workflow simple while a person may need a natural-language inbox for another. The tool can stay compact because the design around it answers questions it cannot reliably resolve from text alone.

A good small assignment leaves you with one visible improvement. A reviewer sees the right work sooner and can still open the message that produced it. The model's contribution is easy to audit, and the original workflow still runs on days when the model is unavailable. You do not need it to sound broadly capable. You need it to do a specific piece of work that someone can recognise.

The inbox example also makes a useful retirement test. If most residents switch to a structured service form, measure how much useful sorting remains in email. The model may become unnecessary even though it continues to meet its old score. Narrow systems are easier to retire along with the small jobs they were built to do.