TRANSMISSION // 2612.00445v1

One Tiny Text Encoder, Many On-Device Tasks

Source published

A preprint tests a shared compact encoder for multiple text-classification tasks, including whether new tasks can be added from a few labeled examples.

AI-generated conceptual illustration for One Tiny Text Encoder, Many On-Device Tasks
AI-generated conceptual illustration; not documentary evidence.

Separate models are one standard way to build text classifiers for tasks such as spam detection and intent recognition, but storing many models can be costly. This preprint tests whether one compact encoder can serve several tasks—and how well it can adapt to a new one.

One shared model, several tasks

A phone assistant might need to flag spam, recognize a voice command or sort a news story by topic. One standard engineering approach is to train and maintain a separate classifier for each task. Sayan Rakshit’s preprint investigates an alternative: use one shared text encoder, with a small task-specific projection—or “lens”—for each classifier.

The system, called Conditional Nuance Metrics (CNM), represents words and character fragments in a shared hashed table, then maps each text to a 64-dimensional representation. During initial training, task-specific lenses are learned alongside the encoder. For a new task, the encoder stays frozen and the lens is calculated from labeled examples using a mathematical method called whiten-PCA. In the reported experiments, this used 20 examples per class and required no gradient-based updates for that task.

Giving unfamiliar words a useful starting point

Hashing avoids storing a conventional word dictionary, but a word from an unfamiliar topic may map to a table entry that received little or no training. The authors address this in two stages. Before training, they use sparse least squares to fill the table with approximate information from a sentence-embedding model. During training, they distill information from that teacher into CNM using task texts and a general English corpus containing words, phrases and Wikipedia sentences.

The team evaluated CNM on eight public benchmarks covering tasks such as intent detection, spam, news topics, sentiment and toxic-comment classification. They compared it with separately trained AnySimLite models and conventional TF-IDF classifiers. For new-task adaptation, they used a leave-one-task-out design: train the shared encoder on other tasks, then fit a lens from 20 labeled examples per class. They also tested spoken commands in SLURP, transcribed by Whisper tiny.en, to examine an objective that aligns clean text with noisy transcripts.

Results depend on the task

For the seen-task comparison, the paper reports a mean accuracy of 93.07 for CNM and 92.09 for the researchers’ AnySimLite reimplementation. This mean covers seven classification tasks, excludes the sentence-pair task QQP, and uses accuracy for SMS Spam. CNM scored above that reimplementation on six of the eight individual tasks, while results varied across benchmarks. The paper’s storage accounting gives 1,096 KB across eight CNM tasks, compared with 7,960 KB for the separate models. These figures assume one byte per weight; accuracy was measured with full-precision weights, and the authors did not test a quantized CNM model. They therefore do not demonstrate the accuracy or measured file size of an 8-bit deployment.

On six held-out tasks, closed-form CNM averaged 72.7% accuracy. TF-IDF trained on the same examples averaged 73.9%, while a per-task neural model trained from scratch on those examples averaged 58.2%. A larger static-embedding model scored 78.7%. Individual results differed: TF-IDF led on several tasks, while CNM scored higher on others. The results show that few-shot adaptation can be competitive in some settings, not that it is the best choice for every task.

For spoken intent classification, the reported comparison is within SLURP, where CNM was also trained as a fully supervised base task. Adding transcript–hypothesis alignment increased accuracy on Whisper transcripts from 51.7% to 54.3%; the paper reports gains across the tested word-error-rate bands. This is evidence from one dataset and one speech-recognition system, not a general test across speech tasks. The separate synthetic-noise tests also need qualification: CNM’s alignment variant was trained using the same noise-generation process used for the test corruption, while the comparison systems did not receive that noisy training data.

What remains uncertain

The study is limited to English, and each neural configuration was trained with a single random seed. Variation across few-shot example draws does not reveal how much results might change across training runs. The authors also report that about 12% of SMS Spam test messages appear verbatim in the training split, which they say slightly inflates the dataset’s results; the paper does not establish that the effect is equal across methods. The AnySimLite comparison is a reimplementation because some details of the original method were unavailable.

This is an arXiv preprint, so its findings should not be treated as peer-reviewed conclusions. The results suggest that a shared encoder may be useful when storage is tightly limited and many classifiers are needed. They do not establish readiness for every device or language. The paper’s baseline audit also finds that TF-IDF can remain competitive when separate per-task storage is acceptable.

Reviewed cross-references

These connections were reviewed by a model, not independently fact-checked by a human. Similarity does not imply agreement; consult the original papers and the evidence below.

  • A multilingual test for AI ticket routing—and why its high scores need context

    Supporting evidence: Both papers report that lexical baselines can be competitive: the origin paper says TF-IDF beats several tiny-model results when memory is unconstrained, while PolyRoute reports TF-IDF logistic regression at 91.9%, near its best fine-tune at 96.6%. This supports the bounded point that lexical baselines merit comparison, not that they perform similarly across tasks; the datasets and evaluation setups differ.

    Model review: · openai-codex/gpt-6-luna

    Evidence and provenance

    Selected excerpts, not complete papers. PDF extraction can omit figures or damage equations, tables and reading order; sources may be preprints.

    • 2612.00445v1 — Original paper

      Excerpt reference: static/papers/2612.00445v1.md:19-47
      Basis: Paper text
      Source file SHA-256: 45358e5b2d24cbbff52f6bbaddec756b23abec7cbce0e24b328d17e96da9593f

    • 2611.13843v1 — Original paper

      Excerpt reference: static/papers/2611.13843v1.md:13-93
      Basis: Paper text
      Source file SHA-256: 207350459a6e0739a871281043261bac6d99eff6cd806afa0aa5c434f886ebbb

Automatically matched by shared topic keywords. These links do not imply that the sources agree or establish a consensus.