On-Device Small Models: Architecture Evolution, Selection Criteria, Memory, and Speed
This article explores the architectural evolution and selection criteria for on-device small models ranging from 0.8B to 9B parameters. It covers how to estimate memory footprints and decoding speeds, examines key architectural shifts like native multimodality and hybrid attention, and outlines practical selection steps and engineering boundaries across typical edge deployment scenarios.
On-device small models refer to models with fewer parameters that can run directly on smartphones, earbuds, wearables, or PCs. Common parameter sizes in the industry currently range from 0.8B to 9B. Different parameter scales suit different devices and tasks. Before making a selection, it is necessary to clarify the memory budget, response latency requirements, and task complexity to determine the appropriate model tier.
1. Parameter Tiers and Application Positioning
0.8B-tier models are the smallest and are suitable for simple classification, keyword extraction, and fixed-format intent recognition. Their capability boundaries are quite obvious; they are prone to errors when facing multi-step instructions or long contexts, and typically need to be paired with rules or larger models.
1B to 2B-tier models are often used for the rapid response layer. This tier can handle text and partial visual inputs, making it suitable for basic Q&A and intent recognition on low-power devices like smart glasses and TWS earbuds. Response speed depends on the chip, quantization method, and input length, meaning fixed millisecond-level latency cannot be guaranteed. Tasks like voice wake-up are usually handled by more specialized lightweight models.
4B-tier models are currently a common tier for on-device agents. They can handle multi-turn dialogues and parse JSON-formatted tool-calling instructions. The success rate of tool calls depends on the specific task and prompt design, so they should be tested on your own task sets before going live.
9B-tier models are suitable for high-end PCs, all-in-ones, or edge computing nodes, used for image-text mixed reasoning. Their memory footprint is relatively high, and running them on phones often requires strict limitations on concurrency and context length.
2. Estimating Memory and Decoding Speed
The memory occupied by model weights can be estimated using a simple formula: weight memory is approximately equal to the number of parameters multiplied by the number of bytes per parameter. FP16 uses 2 bytes per parameter, INT8 uses 1 byte, and INT4 uses about 0.5 bytes. Actual quantized models also store additional data like scaling factors, so the result will be slightly higher than the theoretical value.
Using a rough calculation based solely on quantized weights, the memory footprints for each tier are approximately as follows:
- 0.8B: FP16 ~1.6GB, INT4 ~0.4GB
- 2B: FP16 ~4GB, INT4 ~1GB
- 4B: FP16 ~8GB, INT4 ~2GB
- 9B: FP16 ~18GB, INT4 ~4.5GB
The total memory during actual runtime also includes the KV cache, inference framework, activations, and the operating system’s footprint. Phones and some all-in-ones use unified memory, and the model can only occupy a portion of it, so the budget must be significantly lower than the device’s nominal total memory. Discrete graphics cards use VRAM, while phones use system RAM; these two concepts should not be conflated.
Decoding speed can be estimated using an upper bound based on bandwidth. When generating each token, the inference process roughly needs to read the weights once. Therefore, the theoretical upper bound is approximately equal to the memory bandwidth divided by the number of bytes that need to be read per token. For example, if a device has a bandwidth of 100GB/s and a 4B model’s INT4 weights are about 2GB, the theoretical upper limit is about 50 Tokens/s. The actual speed will be lower than this value because scheduling, computation, and other overheads take up time. Models using a Mixture of Experts (MoE) architecture only activate a portion of parameters during each inference, but the weights of all experts still need to be loaded into memory.
Therefore, you should not directly quote a fixed throughput number. The correct approach is to test the first token latency, sustained generation speed, and peak memory on the target device using real input lengths.
3. Core Architectural Changes and Boundaries
1. Native Multimodality
Some new models adopt a native multimodal design, no longer relying entirely on external vision encoders. However, the visual understanding capabilities of micro-models are usually limited, and the claims in model cards cannot directly represent actual performance. Taking a robot vacuum as an example, whether it can locally distinguish between building blocks and pet waste depends on lighting, occlusion, and floor material. Developers need to test with datasets from their own scenarios and set confidence thresholds and fallback strategies.
2. Hybrid Attention and Sparse Activation
Linear attention (such as Gated DeltaNet) reduces the computation required for long sequences and slows down the growth rate of the KV cache as length increases. The trade-off is that it may not perform as well as full attention when accurately retrieving distant information. MoE architectures only activate a subset of experts during each inference, resulting in lower computation, but routing and expert scheduling introduce additional overhead, and stability on certain tasks needs to be verified.
Below is an example code snippet illustrating the scheduling logic. It only demonstrates the concept; the functions are placeholder implementations and cannot be run directly:
# Example code: illustrates routing logic, functions are placeholder implementationsdef route_request(prompt: str, est_complexity: str) -> str:"""prompt: user input textest_complexity: provided by rules or lightweight classifier, either "simple" or "complex"Returns: selected inference path name"""if est_complexity == "simple":return "fast_path" # short output, intent recognition, assigned to small modelreturn "reasoning_path" # multi-step reasoning, assigned to larger model or enables more compute
Complexity judgment is usually completed by rules or an independent classifier. When the judgment is wrong, simple requests may occupy high-cost paths, while complex requests may yield poor results. Therefore, a fallback mechanism should be designed, such as routing to the cloud or prompting the user for confirmation when local result confidence is insufficient.
3. Long Context
Supporting a long context window does not mean performance is stable under that long window. The KV cache footprint can be estimated using the following formula:
KV Cache Bytes = 2 × Layers × KV Heads × Head Dimension × Sequence Length × Bytes Per Element
Assume a full-attention model has 32 layers, 8 KV heads, a head dimension of 128, and a sequence length of 128K, stored in FP16. According to the formula, the KV cache is about 16GiB, which is unbearable for a phone. If only 8 of these layers use full attention and the remaining layers use a fixed-size state, the KV cache drops to about 4GiB. This is just an example to illustrate the calculation method, not data from a specific model.
For ultra-long contexts claimed in model cards, you need to check the test conditions and actually measure the first token latency and peak memory on the target device. Without reliable test results, it should not be taken as a design premise.
4. Typical Scenarios and Engineering Boundaries
In smart cabin scenarios, when a vehicle enters a tunnel and the network is interrupted, whether the local model can accurately parse voice commands depends on the in-car chip, memory, and quantization method. Voice recognition needs to run offline, and control instructions for windows and air conditioning should include confirmation steps. Safety-critical operations should not be executed directly by the model.
In office scenarios, when a 9B multimodal model processes a local PDF, it usually needs to render the pages as images first, and then understand them page by page or segment by segment. Long reports also need to be combined with retrieval. Summaries generated for financial data must be manually verified for numbers, and the model’s output cannot be used directly as a conclusion.
In enterprise deployment, the focus of cloud-edge synergy is model version management, grayscale releases, rollbacks, encrypted transmission, and device-side signature verification. When choosing a platform, you should use these capabilities as criteria rather than a specific brand. The cloud is still suitable for training large models and handling complex tasks. When network conditions are good and tasks are difficult, cloud inference results are usually more reliable.
5. Selection Steps
Step 1: Determine the device’s available memory and power budget.
Step 2: Select a parameter tier based on the budget, and estimate the weight memory using INT4 or INT8, then add the KV cache and runtime overhead.
Step 3: Test accuracy, first token latency, and peak memory on your own task set.
Step 4: Design a fallback strategy to clarify how to handle local model failures.
Conclusion
On-device small models move some inference from the cloud to the local device, helping to reduce network latency and minimize data exposure. However, their capabilities are always limited by memory, quantization precision, and task type. Selection should be based on actual test data, and skepticism should be maintained regarding the numbers in model cards. In scenarios with good network conditions and complex tasks, cloud solutions are usually still more appropriate.
