Small Language Models (SLMs) and On-Device AI for Business Apps: When a Small Model Is the Better Choice
In this article
For the last two years, most AI features in business applications have been built the same way: every request goes to a large language model run by a cloud provider, and the answer is shown to the user. The pattern is quick to start with, but it brings three consequences that grow as usage rises: per-token bills that are hard to predict, response times that depend on the network, and company data that has to leave your own environment.
Small language models (SLMs) offer another path. Models with a few hundred million to a few billion parameters are now good enough for many narrow, well-defined tasks, and they can run on a laptop, a phone, an edge device, or a single ordinary server. This article covers when a small model is a better fit than a large one, its limits, realistic architecture patterns, and how to test it before using it in a business process.
Summary
- SLMs suit narrow, repetitive tasks: classification, data extraction, short summaries, form filling, and internal document search
- Their main advantages are stable cost per request, low latency, data that stays on the device or your own server, and the ability to work offline
- Their limits are complex reasoning, broad general knowledge, and long open-ended tasks
- A hybrid architecture, with a small model for routine work and a large model for hard cases, often gives the best result
- Decisions should be based on tests with your real company data, not on generic benchmark claims

What a small language model is
There is no official threshold, but in industry practice the term SLM is used for models with roughly fewer than 10 billion parameters. Such models can be compressed (quantized) to fit in the memory of consumer devices and run without data-center graphics cards. Several phone and laptop makers also ship small models built into the operating system that apps can call.
What sets SLMs apart is not only their size but how they are used. A large model is treated as an all-purpose assistant. A small model is treated as a specialized component: it is given one type of task, strict instructions, a clear output format, and is often fine-tuned with examples from the company's own domain.
Where small models run
- On the user's device: a salesperson's phone, a warehouse tablet, or an employee laptop
- On edge devices: a small computer in a store, factory, or vehicle
- On company-owned servers or a private cloud, without calling third-party APIs
- Inside the browser, for lightweight features in web applications
The choice of location determines hardware needs, how the model is updated, and who is responsible for its security. A general comparison of self-run models and cloud APIs is in choosing a self-hosted LLM or a cloud API.
Why businesses are looking at small models
Predictable cost
Large models are billed per token. For features called thousands of times a day, such as classifying incoming email or reading receipts, that cost accumulates and rises with usage. A small model on your own server has a more fixed cost: hardware, power, and maintenance. On user devices, the inference cost is effectively carried by the device itself. Ways to reduce large-model bills are covered in controlling AI costs, tokens, and inference.
Low latency
A request to the cloud passes through the network, the provider's queue, and the large model's processing time. For features that should feel interactive, such as form suggestions while typing or voice commands in a warehouse, a few hundred milliseconds matter. A local small model can answer almost instantly.
Data stays inside
Contract documents, patient data, payslips, or customer notes often must not be sent to third parties without a clear basis. Running the model on your device or server simplifies compliance because the data does not move. You still need access policies and logging, as explained in personal data protection for websites and apps.
Working without a connection
Field teams, warehouses in areas with weak signal, or ships and mines often lack a stable connection. On-device AI features keep working offline, and results are synchronized when the connection returns. The design principles for such apps are covered in when an app needs to work offline.
Tasks that fit and do not fit SLMs
Good fit
- Classifying text: complaint type, expense category, intent of a customer message
- Extracting structured data from text or OCR output: invoice number, date, total, supplier name
- Summarizing short text in a fixed format, such as sales visit notes
- Turning natural-language requests into search parameters or filters
- Drafting replies from templates and existing data
- Creating embeddings for semantic search over internal documents
- Detecting sensitive data before text is sent to another system
Poor fit
- Multi-step analysis that requires long reasoning
- Open questions that need broad, up-to-date general knowledge
- Long, high-quality creative writing
- Tasks that require understanding many documents at once in a very long context
- Autonomous agents that choose and run many tools without strict limits
The practical rule: the narrower the task and the clearer the shape of the answer, the more likely a small model is enough. The more open and varied the task, the more likely a large model is needed.
Realistic architecture patterns
Small model only
Suited to a single high-volume, low-risk feature, such as automatic ticket categorization or tagging product photos. The whole process runs locally and the cost is easy to calculate.
Router: small first, large when needed
The small model handles the request first and returns a confidence score. If confidence is low or the request looks complex, it is forwarded to a large model. This pattern often removes most calls to the large model without lowering quality on hard cases.
Small model as a guard
Before text is sent to a large cloud model, a local small model masks names, ID numbers, or account numbers. When the answer comes back, the original data is restored in the application. You keep the benefits of the large model without sending raw data.
Local search with RAG
A small embedding model and a vector database run on your own server to find relevant document passages. The final answer can then be composed by a small or large model. The choice between prompting, RAG, and fine-tuning is explained in prompting, RAG, or fine-tuning.
Limits and risks to acknowledge
Quality varies by task
A small model can be very good at one task and poor at a task that looks similar. Generic benchmark results do not guarantee results on your data, especially for local languages with regional terms, abbreviations, and mixed languages.
User hardware varies
Low-end phones may not have enough memory, and running a model drains the battery. The app must detect device capability and provide a fallback, such as processing on the server or deferring the task.
Model updates and versions
Models on thousands of devices must be updated safely. You need a distribution mechanism, version tagging, and the ability to roll back if an update lowers quality.
Security of on-device models
Models and system instructions shipped to devices can be extracted. Never put secrets, API keys, or sensitive business rules in prompts that run on user devices. Important decisions are still validated on the server.
Licensing
Many open models carry licenses with specific terms, such as limits on commercial use or attribution requirements. Check the license before including a model in a product.
How to test before deciding
The decision to use a small model should come from a measured test, not from a demo impression.
- Collect 200 to 500 real examples from the process you want to automate, including hard cases and messy data
- Define the correct answer for each example, ideally checked by someone who understands the process
- Compare several small models and one large model as a reference using the same instructions
- Measure accuracy, response time on the target device, memory use, and cost per thousand requests
- Examine the types of errors, not just the average score: harmful errors matter more than minor ones
- Test on the weakest device you still support, not only on a developer laptop
A more complete evaluation framework is in evaluating AI and LLM output quality for business apps. Keep the test set, because you will reuse it every time the model is replaced or updated.
Example applications in business apps
Field sales app
A salesperson dictates visit notes. A small model on the phone turns them into a structured summary: store, complaints, products of interest, and follow-ups. The feature works in areas without signal, and results sync to the CRM when the connection returns.
Receipt and invoice processing
OCR output from receipt photos is processed by a small model on the company server to extract the date, supplier, total, and expense category. Low-confidence cases are flagged for review by finance staff. The data never leaves the company server.
Internal procedure search
Warehouse staff search for procedures in everyday language. A small embedding model on a local server finds relevant documents, and a short answer is composed with references to its sources.
Filtering data before the cloud
For features that genuinely need a large model, such as analyzing long contracts, a small model first masks personal data so that only cleaned text is sent.
Common mistakes
- Choosing a model because of hype rather than the needs of a specific task
- Relying on generic benchmarks without testing on your own data
- Assuming a local model is automatically secure without managing access and logging
- Providing no fallback for devices that cannot cope
- Giving a small model too broad a task and then concluding that small models are useless
- Forgetting maintenance costs: model updates, quality monitoring, and hardware
Frequently asked questions
Can small models handle Indonesian and other local languages well?
Many multilingual small models are good enough for narrow tasks in Indonesian, but quality varies. Test with real text containing abbreviations and local terms. Fine-tuning with internal examples often improves results noticeably.
Do we need a dedicated graphics card?
Not always. Quantized models can run on modern CPUs or the AI chips built into laptops and phones. For high volume on a server, a graphics card still helps reduce response time.
Will small models replace large models?
It is more accurate to see them as complementary. Small models take over high-volume routine tasks, while large models remain in use for hard and open-ended cases.
How long should a pilot take?
For a single feature, a comparison test with a prepared dataset can usually be done in a few weeks. What often takes the longest is preparing the examples and correct answers.
Conclusion
Small language models are not a replacement for large models but the right tool for tasks that are narrow, repetitive, data-sensitive, or must run without a connection. Start with one high-volume process, build a test set from real data, compare small models against a large reference model, and choose the architecture that best balances quality, cost, and privacy. With a step-by-step approach, AI features become faster, cheaper, and easier to account for.
Want AI features that are fast, cost-efficient, and keep data in-house?
Agsora helps assess your needs, test small and large models on your data, and build AI features integrated into your applications and business systems.
Free consultationRecommended for you
Reading related to this topic
e-KYC and Digital Identity Verification: Secure Customer Onboarding for Business Apps
How to design e-KYC in an app: when identity verification is really needed, the ID card photo, OCR, and data matching flow, selfies and liveness checks, choosing a provider, storing data in line with Indonesia's PDP Law, handling failed verifications, and keeping sign-up conversion high.
Human-in-the-Loop: Designing Human Approval for AI Agents in Business Processes
How to decide how independently an AI agent may act: autonomy levels per action type, approval interfaces, review queues, measures of human control effectiveness, audit trails, and patterns for documents, customer service, and finance.
Self-Hosted LLM or Cloud API: Choosing a Secure AI Model for Business Data
The difference between self-hosted LLMs and cloud APIs, data privacy, honest cost calculation, overlooked risks, and a mixed pattern that routes requests by data sensitivity.
Free checklist: choosing a software house
24 points to evaluate a vendor before you sign. Can be saved as a PDF.
Ready to build a system that grows with your business?
Discuss your needs with the AG·SORA team, no cost, no commitment.