Search arXiv⌕ Search

arXiv · 2612.00445

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

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.

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Sayan Rakshit. 2026-11-30. One Encoder, Many Nuances: Adding On-Device Text Classification Tasks in Closed Form. https://searcharxiv.org/abs/2612.00445

Citations retain the original authors and DOI and include this site’s record URL. If this discovery service contributed to your research, you can also cite Search arXiv by Indiciae: BibTeX · RIS.

KEEP EXPLORING

Related papers

Settling the Reward Hypothesis

The reward hypothesis posits that, "all of what we mean by goals and purposes can be well thought of as maximization of the expected value of the cumulative sum of a received scalar signal (reward)." We aim to fully settle this hypothesis. This will not conclude with a simple affirmation or refutation, but rather specify completely the implicit requirements on goals and purposes under which the hypothesis holds.

cs.AI↗

Explainable Innovation Engine: Dual-Tree Agent-RAG with Methods-as-Nodes and Verifiable Write-Back

Retrieval-augmented generation (RAG) improves factual grounding, yet most systems rely on flat chunk retrieval and provide limited control over multi-step synthesis. We propose an Explainable Innovation Engine that upgrades the knowledge unit from text chunks to methods-as-nodes. The engine maintains a weighted method provenance tree for traceable derivations and a hierarchical clustering abstraction tree for efficient top-down navigation. At inference time, a strategy agent selects explicit synthesis operators (e.g., induction, deduction, analogy), composes new method nodes, and records an auditable trajectory. A verifier-scorer layer then prunes low-quality candidates and writes validated nodes back to support continual growth. Expert evaluation across six domains and multiple backbones shows consistent gains over a vanilla baseline, with the largest improvements on derivation-heavy settings, and ablations confirm the complementary roles of provenance backtracking and pruning. These results suggest a practical path toward controllable, explainable, and verifiable innovation in agentic RAG systems. Code is available at the project GitHub repository https://github.com/xiaolu-666113/Dual-Tree-Agent-RAG.

cs.AI↗

Strategic Algorithmic Monoculture: Experimental Evidence from Coordination Games

AI agents increasingly make high-stakes decisions in multi-agent environments where outcomes depend on coordination (e.g., hiring, pricing, and trading). We distinguish primary algorithmic monoculture---baseline action similarity---from strategic algorithmic monoculture, whereby agents adjust similarity in response to incentives. We design a simple experiment that cleanly separates these forces and deploy it on human and large-language-model (LLM) subjects. LLMs exhibit high levels of baseline similarity (primary monoculture) and, like humans, they regulate it in response to coordination incentives (strategic monoculture). While LLMs coordinate extremely well on the same action, they lag behind humans in sustaining heterogeneity when divergence is rewarded.

cs.AI↗