One Encoder, Many Nuances: Adding On-Device Text Classification Tasks in Closed Form

On-device virtual assistants run dozens of lightweight text classifiers--spanning intent detection, topic routing, sentiment analysis, and spam filtering---and the standard engineering solution is to train, store, and maintain one separate neural model per task. In this paper, we show that a single vocabulary-free encoder of 1.1,MB can serve all of them simultaneously and extend to brand-new tasks without a single gradient step. Each task owns a 1,KB low-rank similarity lens; when a new task arrives, its lens is solved in closed form from just 20 labelled examples per class. The central technical obstacle is that a compact hashed encoder knows nothing about words absent from its initial training tasks. We overcome this bottleneck by pre-filling the shared hash table via sparse least squares against a sentence-embedding teacher's word vectors, and then distilling that teacher over a general English corpus during multi-task training. Across eight public benchmarks, one shared encoder matches or outperforms eight separate models (93.1 vs.\ 92.1 average over the seven classification tasks) while cutting total storage across all eight tasks from 7,960 to 1,096,KB. Added from 20 shots per class, unseen tasks come within about one point of a TF-IDF classifier trained on the same shots and substantially outperform per-task neural models trained from scratch, while trailing a $7\times$ larger static embedding model. On spoken utterances (SLURP transcribed with Whisper), an ASR-invariance objective improves intent accuracy across every word-error-rate band. Finally, we present an honest baseline audit showing that simple TF-IDF classifiers beat several published tiny-model numbers when per-task memory is unconstrained, and we release code that reproduces every table on a single free GPU.

Authors

Publication Details

Journal
arXiv
Published
2026-11-30
Primary Topic
Domain Adaptation and Few-Shot Learning
Type
preprint
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
preprint

One Encoder, Many Nuances: Adding On-Device Text Classification Tasks in Closed Form

Sayan Rakshit
arXiv
Domain Adaptation and Few-Shot Learning
preprint

One Encoder, Many Nuances: Adding On-Device Text Classification Tasks in Closed Form

Sayan Rakshit
preprint en

Abstract

On-device virtual assistants run dozens of lightweight text classifiers--spanning intent detection, topic routing, sentiment analysis, and spam filtering---and the standard engineering solution is to train, store, and maintain one separate neural model per task. In this paper, we show that a single vocabulary-free encoder of 1.1,MB can serve all of them simultaneously and extend to brand-new tasks without a single gradient step. Each task owns a 1,KB low-rank similarity lens; when a new task arrives, its lens is solved in closed form from just 20 labelled examples per class. The central technical obstacle is that a compact hashed encoder knows nothing about words absent from its initial training tasks. We overcome this bottleneck by pre-filling the shared hash table via sparse least squares against a sentence-embedding teacher's word vectors, and then distilling that teacher over a general English corpus during multi-task training. Across eight public benchmarks, one shared encoder matches or outperforms eight separate models (93.1 vs.\ 92.1 average over the seven classification tasks) while cutting total storage across all eight tasks from 7,960 to 1,096,KB. Added from 20 shots per class, unseen tasks come within about one point of a TF-IDF classifier trained on the same shots and substantially outperform per-task neural models trained from scratch, while trailing a $7\times$ larger static embedding model. On spoken utterances (SLURP transcribed with Whisper), an ASR-invariance objective improves intent accuracy across every word-error-rate band. Finally, we present an honest baseline audit showing that simple TF-IDF classifiers beat several published tiny-model numbers when per-task memory is unconstrained, and we release code that reproduces every table on a single free GPU.

arXiv
Domain Adaptation and Few-Shot Learning
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon