AnySimLite: A Lightweight Few-Shot Similarity Encoder for On-Device Speech-Adjacent Classification
About
To minimize privacy concerns and inference latency on edge devices like smartphones, lightweight on-device models remain important for end-user applications. Many of these applications involve natural language classification, but deploying multiple specialized models creates a memory footprint challenge. We investigate: Can a single lightweight architecture solve multiple Speech-Adjacent (SA) classification tasks through reduction to a nuanced text similarity formulation? We propose AnySimLite, a lightweight similarity encoder that combines word-level and character-level channels. Together with a dataset transformation strategy, we evaluate AnySimLite across multiple SA classification tasks and show that it consistently achieves state-of-the-art (SOTA) or SOTA-competitive performance in few-shot settings while maintaining a low memory footprint. Even in the worst case, the performance drop remains below 7% while using $<\frac{1}{250}^{\mathrm{th}}$ of the model size of the SOTA qLLaMA_LoRA-7B baseline.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Topic Classification | AG-News | Accuracy91.12 | 228 | |
| Sentiment Classification | IMDB | Accuracy88.68 | 77 | |
| SMS Spam Classification | SMS Spam | F1-score97.5 | 21 | |
| Sentiment Classification | Sentiment140 | Accuracy80.22 | 13 | |
| Text Similarity | Quora Question Pairs Classes = 2 | F1 Score82.96 | 5 | |
| Text Similarity | TitleSimCurated Classes = 2 | Accuracy88.73 | 4 | |
| Toxicity Detection | Toxic Comment Classes = 6 | ROC Score94.2 | 4 | |
| Intent Detection | SNIPS 7 classes | Accuracy98.21 | 3 | |
| Intent Detection | ATIS 8 (coarse), 21 | Accuracy97.62 | 3 |