Skip to content

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

Nov 2026 · 0 citations · 25 references
Computer Science

TL;DR

This paper shows 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, and releases code that reproduces every table on a single free GPU.

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.

View source

Similar papers

#artificial intelligence Preprint Jul 2024

The Llama 3 Herd of Models

It is found that Llama 3 delivers comparable quality to leading language models such as GPT-4 on a plethora of tasks, and performs competitively with the state-of-the-art on image, video, and speech recognition tasks.

Aaron Grattafiori, Abhimanyu Dubey, Abhinav Jauhri et al. · 21,082 citations · ⚡3,832
#artificial intelligence Conference Open access Jun 2018

Gibson Env: Real-World Perception for Embodied Agents

This paper investigates developing real-world perception for active agents, proposes Gibson Environment for this purpose, and showcases a set of perceptual tasks learned therein.

F. Xia, Amir Zamir, Zhi-Yang He et al. · 1,069 citations · ⚡112
#artificial intelligence Open access May 2023

Evaluating the Performance of Large Language Models on GAOKAO Benchmark

GAOKAO-Bench is introduced, an intuitive benchmark that employs questions from the Chinese GAOKAO examination as test samples, including both subjective and objective questions that contribute a robust evaluation benchmark for future large language models and offers valuable insights into the advantages and limitations...

Xiaotian Zhang, Chun-yan Li, Yi Zong et al. · 216 citations · ⚡17

KTO: Model Alignment as Prospect Theoretic Optimization

This work proposes a HALO that directly maximizes the utility of generations instead of maximizing the log-likelihood of preferences, and suggests that the best loss depends on the inductive biases most appropriate for a given setting, an oft-overlooked consideration.

Kawin Ethayarajh, Winnie Xu, Niklas Muennighoff et al. · 195 citations · ⚡28
#artificial intelligence Open access Jul 2024

Gender, Race, and Intersectional Bias in Resume Screening via Language Model Retrieval

This work investigates the possibilities of using LLMs in a resume screening setting via a document retrieval framework that simulates job candidate selection and finds that the MTEs are biased, significantly favoring White-associated names in 85% of cases and female-associated names in only 11.1% of cases.

Kyra Wilson, Aylin Caliskan · 131 citations · ⚡8

Related blog posts

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.