Manuscript Offprint

arXiv:2610.02516

Student-Guided Teacher Distillation for Efficient LLM Task Routing: Positioning Against Jev-Style System-1 Classifiers

Haifeng Wu, Srinivasan Manoharan, Jian Wan, Fangbo Tu, Junhua Zhao, Xin Chen

Abstract

Large zero-shot classifiers are useful for routing user requests to specialized LLM tasks, but scoring every request against a large candidate set is expensive: a zero-shot natural language inference (NLI) classifier must evaluate one premise-hypothesis pair per candidate label, so its cost scales linearly with the size of the taxonomy. We study a student-guided teacher distillation pipeline for a fixed taxonomy of 60 LLM task categories, in which a compact ModernBERT classifier predicts the full category distribution in a single forward pass and retrieves a small top-k candidate set, and a larger DeBERTa-v3 zero-shot NLI classifier then reranks only those candidates rather than all 60 labels; the resulting teacher labels iteratively improve the student, which in turn produces sharper candidate sets for the next labeling round. Unlike generic embedding retrieval or the clustering-derived shortlists used in extreme multi-label classification, the candidate generator here is trained end-to-end on the target taxonomy and is the same model that serves production traffic, distinguishing it from LLM-routing work that routes between candidate models rather than into a fixed semantic task taxonomy, and from concurrent “System 1” encoder-classifier proposals such as TypeSafe AI’s Jev [1] and the open-source Laya [2] project, whose training methodology is undocumented or RL-based. Our best student checkpoint reaches 77.5% teacher agreement on a 200-example evaluation set (the deployed checkpoint, v4, reaches 76.5%), and preliminary coverage measurements on two convenience samples show Coverage@16 of 91–100%, suggesting top-k candidate sets retain most of the teacher’s decision-relevant information. We further show that truncated top-k teacher scores should not be treated as full 60-class soft targets for KL distillation, since zeroing the untruncated classes destroys the “dark knowledge” that soft-label distillation depends on and introduces a systematic bias rather than a harmless sparse approximation. A complete evaluation of the student-guided iterative method — including candidate coverage at multiple k on a certified held-out set, an embedding-retrieval baseline, and a larger human-reviewed test set — remains in progress and is scoped explicitly in Section 7.

Keywords: Jev, TypeSafe AI, System 1 models, knowledge distillation, zero-shot NLI classification, LLM task routing, extreme multi-label classification, ModernBERT, DeBERTa-v3, iterative self-training

1 Introduction

LLM applications increasingly rely on routers that classify a user request before selecting a downstream agent, tool, or model. A router must be fast because it runs on every request, but it must also distinguish between fine-grained and semantically similar tasks such as debugging, code review, deployment, documentation, and pull-request management.

Zero-shot natural language inference models provide a convenient way to build such routers without collecting a large manually labeled dataset. However, the teacher must evaluate the input against every candidate label as a separate premise-hypothesis pair. With 60 labels and hundreds of thousands of requests, this repeated pairwise computation becomes the dominant cost of dataset creation.

Knowledge distillation can produce a fast student that predicts all 60 classes in one forward pass. The central observation of this work is that the student can also be used before teacher inference: its probability vector provides a task-aware candidate ranking. The teacher then only needs to rerank a small top-k subset.

Figure

Figure 1: The iterative student-guided labeling loop. The student’s top-k candidates bound what the teacher must score; the resulting hard/soft labels retrain the student for the next round, which can then attempt a smaller k once coverage at the current k is confirmed.

We investigate the iterative process illustrated in Figure 1: the student proposes a top-k candidate set, the teacher reranks only those candidates, and the resulting hard/soft labels retrain the student for the next round.

The goal is not to replace the teacher’s decision rule with semantic similarity. The goal is to reduce the teacher’s labeling cost while preserving the teacher’s final classification behavior.

Why this is not just faster NLI. A concurrent and unrelated line of industry work makes a related efficiency argument at a different layer of the stack. TypeSafe AI’s “System One models,” introduced with the Jev model [1], propose training a single model to emit calibrated, type-safe structured decisions directly, positioned as a fast “System 1” layer beneath slower, deliberative “System 2” LLM reasoning. As of this writing, no technical report, architecture description, or training methodology for Jev or its “RLCD” (Reinforcement Learning for Calibrated Decisions) training procedure has been published beyond marketing benchmarks on TypeSafe’s own site; independent community discussion has not established what, mechanistically, distinguishes it from constrained decoding over an existing model [1]. We note this only as motivating context for why fast, calibrated, structured decision-making is an active industry concern, and flag for the record that TypeSafe’s “RLCD” acronym is an unrelated coincidental reuse of the name from Yang et al. [3]’s earlier and unrelated Reinforcement Learning from Contrastive Distillation alignment method. The System 1/System 2 framing itself is also not new to either work: it has previously been used to describe distilling slow chain-of-thought reasoning into fast direct generation [4]. A further, independently confusing detail is that an open-source project, Laya [2], has since positioned itself as a direct Jev alternative — also built on a ModernBERT-family encoder (ModernBERT-large and mmBERT-base) for single-forward-pass typed decisions, and also trained with what it calls “RLCD,” though there it denotes reinforcement learning against strictly proper scoring rules rather than TypeSafe’s “Reinforcement Learning for Calibrated Decisions” or Yang et al. [3]’s

Reinforcement Learning from Contrastive Distillation: three unrelated methods now share one acronym. We cite Laya only as further evidence that compact encoder classifiers are being actively explored as fast alternatives to Jev-style System 1 models — it is, like Jev, a README-level project with no accompanying technical report or peer-reviewed evaluation at time of writing, and its training method (policy-gradient optimization against a scoring rule, over general typed-decision tasks) and evaluation focus (open-ended typed decisions across 100+ languages) are unrelated to the teacher-distillation, fixed-60-class-taxonomy routing problem this paper studies. Our contribution differs from this entire family in scope and in what is actually demonstrated: rather than proposing a new frontier model class, we study a concrete, reproducible training pipeline — built from two existing open-weight encoders — for the specific problem of cutting the labeling cost of a zero-shot NLI teacher for a fixed taxonomy, with results reported against measurable baselines.

Our contributions are:

  1. A student-guided candidate selection pipeline for efficient teacher labeling in fixed-taxonomy LLM routing, in which the first-stage model is a direct, end-to-end classifier over the true taxonomy rather than a generic embedding retriever or a clustering-derived label-tree short-list.

  2. An iterative distillation procedure in which each improved student proposes candidates for the next teacher-labeling round, narrowing the candidate set as coverage permits.

  3. An evaluation framework that measures candidate recall, teacher agreement, classification quality, and labeling throughput together.

  4. An empirical analysis of why truncated top-k teacher distributions should be separated from true full-taxonomy KL targets, connecting this failure mode to partial-label learning [5] and to the role of non-top-class “dark knowledge” in soft-label distillation [6].

References (31)