Compiling an SOP into a 3B Model A QLoRA fine-tune of Qwen 2.5 3B that compiles a 3,500-token incident-triage SOP directly into model weights reached 93.0% end-to-end accuracy on 500 test scenarios, edging out Gemini 2.5 Pro's 92.0% with caching and 90.0% raw, according to an experiment published in the arpitbbhayani/workflow-slm repository. The fine-tuned 3B model cut average input tokens per incident by 91.3% (5,200 to 450) by replacing the procedural system prompt with a single trigger string, incident_triage_v1, and reduced cost to $0.22 per 1,000 incidents versus $1.85 for cached Gemini 2.5 Pro and $3.50+ raw, an 8.4x saving. The untuned Qwen 2.5 3B base scored 20.0% (100/500) on the same scenarios. TL;DR: Compiling a 3,500-token Standard Operating Procedure https://en.wikipedia.org/wiki/Standard operating procedure into a QLoRA https://arxiv.org/abs/2305.14314 -tuned 3B model hit 93.0% end-to-end accuracy vs. 92.0% on Gemini 2.5 Pro https://deepmind.google/technologies/gemini/ while cutting input tokens by 91.3% 5,200 → 450 and cost by 8.4x $1.85 → $0.22 per 1k incidents . End-to-End Success Rate 500 Test Scenarios — Higher is Better ───────────────────────────────────────────────────────────────────────────── Fine-Tuned 3B SLM This Run ████████████████████████████░░ 93.0% 465/500 Gemini 2.5 Pro With Cache ███████████████████████████░░░ 92.0% 460/500 Gemini 2.5 Pro Raw API ███████████████████████████░░░ 90.0% 450/500 Untuned Qwen 2.5 3B Base ██████░░░░░░░░░░░░░░░░░░░░░░░░ 20.0% 100/500 Average Input Tokens per Incident Lower is Better ───────────────────────────────────────────────────────────────────────────── Prompt-Driven Setups SOP ██████████████████████████████ 5,200 tokens Fine-Tuned 3B SLM Compiled ███░░░░░░░░░░░░░░░░░░░░░░░░░░░ 450 tokens -91.3% Cost per 1,000 Incidents Lower is Better ───────────────────────────────────────────────────────────────────────────── Gemini 2.5 Pro Raw API ██████████████████████████████ $3.50+ Gemini 2.5 Pro With Cache ████████████████░░░░░░░░░░░░░░ $1.85 Fine-Tuned 3B SLM This Run ██░░░░░░░░░░░░░░░░░░░░░░░░░░░░ $0.22 8.4x cheaper I got an idea to run that takes things in the opposite direction from what most people are doing right now with language models. Here’s repository for reference arpitbbhayani/workflow-slm https://github.com/arpitbbhayani/workflow-slm . Most AI agent setups today rely on prompt engineering. You take a SOP workflow , paste thousands of tokens of instructions into the system prompt, and send that entire document back and forth on every turn of a conversation. It works, but it got me wondering: what happens if we do the opposite? Instead of giving the model any procedural instructions in the prompt at all, could we compile the entire multi-step decision tree directly into the weights of a small 3-billion-parameter model? Incident triage was a simple workflow I tried to convert into an SLM. This was just a fun experiment I decided to run to see if it would work, how hard it would be to train, and what the resulting performance and token numbers would look like. Workflow Incident triage