When a small language model ships with the app

At a remote water pump, a phone in airplane mode shows a small orange robot with a checklist beside a technician’s field notes.

Suppose a technician finishes a repair and types “belt replaced, still leaking, check Friday.” Standing between two pumps, she knows exactly what she means. On Friday morning somebody else will have to work it out. The best moment for the software to ask “Which pump is still leaking?” lasts about as long as it takes her to put the phone away.

That is what interests me about small language models. If one can run inside the application, we get a chance to ask while the person who knows the answer is still there. Even a very capable model in the office on Friday would have to call her back.

What fits on the phone

There is a pattern in the releases of the past seven months. Mistral reported that its 7B model could outperform Llama 2 13B on a range of reasoning tests. In February Google released Gemma in two sizes, 2B and 7B, with tools for running the models on a laptop. A developer can download one of these models and find out how well it handles the documents that actually turn up at work. Mistral 7B · Introducing Gemma

Today’s example is Microsoft’s Phi-3-mini. Its authors report running a four-bit version of their 3.8-billion-parameter model offline on an iPhone with an A16 chip, generating over 12 tokens per second. They also describe a weakness I find particularly interesting. They trained it on carefully selected and synthetic material, and it struggles with questions that require recalling obscure facts. For plenty of software I’d want to supply the facts separately anyway. When a price changes, I’d like to update one row in a database. Phi-3 technical report, April 22 version

At Askdata we worked on letting people ask questions of business data in ordinary language. Consider a deceptively easy one, “How did sales do last month?” Even a much larger model would need to know whether this company counts a sale when the order is signed or when the invoice is paid. The business already has that definition. A small model with access to the right definition has a fair shot at interpreting the question. The database can do the arithmetic.

I’d design the maintenance app the same way. The work order already lists pumps 4 and 5. Give the model those two records and the technician’s note. Let it propose entries for the handover, show the words behind each entry, and ask her to resolve the ambiguity. The app can check that each pump exists. The technician can say which one leaks. That division of labour makes the task small enough to test.

Who pays for the second question?

With a metered API, the developer pays for each draft and each revision. Shipping a model moves part of that cost onto a device the customer already owns, in memory, battery and time. There is a less obvious expense on either side. If the draft takes thirty seconds to check and the form takes twenty seconds to fill in, the technician is paying for our cleverness. The ordinary form deserves a place in the trial.

Where I expect this to lead is an application that can use different amounts of intelligence at different moments. Recording today’s repair could happen entirely on the phone, with only the approved work order leaving it. Finding out why the same seal has failed across six sites takes maintenance histories and parts records from all six. That question belongs with the fleet data, where a larger model may well earn its keep. The technician ought to be able to ask both questions in the same application.

There’s a further consequence for the fleet engineer. A year of work orders that say “checked” is a poor basis for changing a seal supplier. A year of records that distinguish a new leak from one that persisted after a repair might reveal a problem worth investigating. A small model asking one timely question could improve the evidence available to every subsequent analysis. That benefit would never show up in a benchmark of the model on its own.

My bet is that the first durable advantage for a small software company will come from knowing one job well enough to make that distinction. The test I’d set is a month of handovers on the least capable phone the customer actually issues. If the night shift makes fewer calls, the technicians get home on time, and a leaking pump still shows up as leaking, I’d have a reason to ship the model with the app.