Pipelines that train small models on data written by large models waste most of their compute. A large "teacher" model writes many candidate examples. A filter then throws most of them away: in Promptagator, generated search queries survive only if a retriever trained on them can find the source passage again, and in DISCO, generated counterfactuals survive only if a strong classifier agrees that the label flipped. Of the survivors, many teach the small "student" model nothing, because it already handles them. Every discarded or redundant candidate was still decoded in full, token by token, by a very large model.
Hardware designers faced the same shape of problem with zeros. Multiplying by zero is wasted work, and sparse accelerators skip it. The best of them skip a multiplication when either operand is zero, not just one, and they only count a saving when detecting the zero costs less than the work avoided. We propose carrying this logic up from arithmetic to whole examples. A candidate is useful only if two conditions both hold: the filter would keep it, and the student would learn from it. We want to detect failure of either condition from the first few generated tokens, stop decoding immediately, and refill the freed batch slot so the saving appears in wall-clock time and not only in a FLOP count. The claim to test is that this two-sided early rejection, charged honestly for the cost of its detectors, reaches the same student quality as the full pipeline for a fraction of the teacher compute. A second claim is that it beats rejection that uses only one of the two signals.
What the two directions contribute, and where the gap is
The hardware literature supplies three ideas we reuse at a coarser grain. The first is the dual-side principle. EIE showed that skipping only zero weights still wastes work on zero activations, and later designs such as FireFly-S combine both operand masks with a bitwise AND before issuing work. The second is detect at the boundary, before the expensive step. The RRAM accelerator of pattern-pruning-based weight mapping places zero detectors at the input so that crossbars never charge for zero vectors. The third is skipping must be scheduled, not just gated. TensorDash gets its 1.95x average training speedup by compacting effectual operand pairs onto lanes, and HighLight spends dedicated fetch logic to avoid idle processing elements. Gating alone saves energy but not time. The same distinction applies to batched decoding: if we abort a sequence and leave its slot empty, we save FLOPs but not GPU-hours.
The synthetic-data literature supplies the regime and its costs. TrueTeacher annotated 1.4M examples with a 540B model. UDAPDR generates a million queries and then trains an ensemble of cross-encoders to score them. It's All Relative! asks the model to re-judge its own pairs and discards those that fail. DISCO's finding that 75,000 filtered counterfactuals beat over a million noisy ones tells us the filter matters. It also tells us the rejected mass is large. Every one of these pipelines generates first and filters afterwards.
The closest existing work that links skipping to generation does something different. Skipping the Zeros in Diffusion Models skips zero dimensions of sparse scientific data inside a diffusion generator. Skipping Computations in Multimodal LLMs statically removes transformer blocks for inference. Dynamic Vocabulary Pruning shrinks the output-layer computation used for early-exit confidence checks. None of them treats the candidate example as the unit to skip. None uses the student's state as the second operand. None addresses the scheduling problem that early aborts create in batched decoding.
One of these papers constrains the design. The multimodal skipping paper finds that open-ended generation degrades badly when computation inside the model is skipped, because errors compound across tokens. Our proposal therefore never approximates the teacher's computation for candidates we keep. Each kept candidate is decoded exactly. We only decide whether to keep decoding it.
Core Claim
Let $C_{\text{gen}}$ be the teacher's cost to finish decoding a candidate and $C_{\text{filt}}$ the cost of running it through the pipeline's filter. Let $c_t$ be the cost of our two detectors after $t$ generated tokens. Aborting at prefix length $t$ pays off in expectation when
$$ \big(1 - q_t\big)\,\big(C_{\text{gen}}^{>t} + C_{\text{filt}}\big) \;>\; c_t , $$
Here $q_t$ is the detectors' estimated probability that the candidate is useful: the filter would keep it and the student's loss on it exceeds a threshold $\tau$. $C_{\text{gen}}^{>t}$ is the decoding cost remaining after token $t$. This inequality is the example-level version of the hardware rule that zero detection must cost less than the multiply it skips.
The quantity we report is compute per useful example: total teacher, detector, and filter compute divided by the number of retained examples whose student loss exceeded $\tau$ when first seen. We then check that the student trained on the retained set matches the full-pipeline student.
The "dual-side" claim is empirical and can fail. If teacher-side rejection and student-side redundancy are strongly correlated, combining the two detectors adds nothing over the better one alone. We will measure that correlation directly.
Research Program
We would build three components.
The first is a filter-outcome probe. This is a small linear or two-layer head on the teacher's hidden states over the first $t$ tokens of a generated candidate. It is trained to predict the downstream filter verdict: round-trip retrieval success for query generation, and label flip confirmed by the classifier for DISCO-style counterfactuals. Training labels come from one calibration run of the full, unmodified pipeline on a small slice of the corpus. The probe reuses activations the teacher computes anyway, so its marginal cost is tiny. That cheapness is the analogue of placing a zero detector at the input boundary. The motivation that early prefixes carry this information comes from the early-convergence observation in Dynamic Vocabulary Pruning: the final token is already among the top 10 candidates by layer 2 in 95% of cases. Whether the same holds for pass or fail verdicts over whole sequences is the first thing we test.
The second is a student-redundancy probe. The current student scores the partial candidate, for example a dual-encoder similarity between the query prefix and its source passage, and we estimate whether the finished example would carry loss above $\tau$. The student changes as it trains, so the pipeline interleaves generation and training in rounds. Redundancy is therefore a runtime property, much as activation zeros are a runtime property and weight zeros a static one. For a dual-encoder student this probe costs roughly one small-model encode per prefix.
The third is a refilling decode scheduler. When the combined decision (probe outputs AND-ed, in the FireFly-S sense) says abort, the sequence's batch slot is refilled immediately with a new candidate from the seed queue. This is the TensorDash-style compaction step, and it is what converts FLOP savings into GPU-hour savings. We would implement it on top of a continuous-batching inference server and measure throughput directly, not infer it from FLOP counts.
The analysis side asks where along the prefix the probes become reliable, how the abort threshold trades recall of good candidates against savings, and whether aborting biases the retained distribution. Early aborts could disproportionately kill long or unusual queries. That would reproduce the diversity collapse that Beyond Quantity warns causes early plateaus. To catch this, we track lexical and embedding diversity of the retained set against the full-pipeline retained set.
Baselines
The do-nothing reference is the full pipeline run as published: generate every candidate to completion, apply the original filter, and train the student on everything that passes. For query generation we re-implement the Promptagator recipe (few-shot prompted query generation, round-trip filter, dual-encoder student) with an open teacher, since FLAN-137B is not available. Absolute numbers will therefore differ from the paper, and we compare only against our own rerun. For reference, Promptagator reports 47.8 average nDCG@10 for its 8-shot retriever over 11 BEIR datasets, 45.5 zero-shot, and 52.8 with a reranker. Beating the reference means matching its nDCG@10 within noise (tested with paired bootstrap across datasets) at substantially lower total compute per useful example. Alternatively, it means exceeding it at equal compute by spending the savings on more seeds.
The strongest existing competitor on this question is the pipeline with a stronger generation-side quality mechanism, namely the pairwise generation and self-judging of It's All Relative!. That paper reports +8.6 nDCG@10 over standard query generation across five of six BEIR datasets. It spends extra teacher compute to raise yield, whereas we spend less to avoid waste. We run it on the same seeds with the same teacher and plot both methods on a single quality-versus-compute curve. The two approaches may also compose, and we test the combination. For the counterfactual setting, the reference is the DISCO pipeline, whose reported label-flip rate for accepted counterfactuals is 83% (DISCO). The student is evaluated on the NLI stress and out-of-distribution sets that paper uses.
Three ablations isolate the key ingredient. The teacher-side-only variant aborts only on the filter-outcome probe. The student-side-only variant aborts only on the redundancy probe, which amounts to online active selection. The seed-level variant makes the teacher-side prediction from the seed passage alone, before any generation. Comparing it with the prefix probe tells us whether partial generations carry information that a cheap pre-screen lacks. A fourth ablation aborts without refilling, to separate FLOP savings from wall-clock savings.
For fairness, all methods receive the same seed passages, teacher, student architecture, student training steps, and hyperparameter search budget. Detector training compute, including the calibration run, is charged to our method.
Why not just…?
Why not just use a smaller teacher? This is a real threat, and we treat it as a baseline, not a strawman. TrueTeacher relied on the 540B model as annotator. Promptagator's few-shot steering depends on scale. Neither paper, however, reports a compute-matched comparison against a smaller teacher that simply generates more candidates. We run exactly that comparison: a teacher from the same family, several times smaller, given the same total compute budget as our method. If it matches our student quality, then skipping candidates adds nothing that shrinking the teacher does not already provide, and we would report that.
Why not just train a cheap classifier on seeds and skip bad seeds before generating? This is the seed-level ablation. It is cheaper than our prefix probe and needs no decoding at all, so it wins if filter failure is mostly a property of the passage. It loses if failure depends on what the teacher happened to write, such as a hallucinated entity or a query that copies the passage. We compare the two probes' prediction quality (AUC for the filter verdict) and the resulting compute curves. The prefix probe earns its place only if it adds prediction quality beyond what the seed classifier achieves.
Why not just make the teacher itself faster with activation sparsity or pruning? Methods like AccelTran's runtime thresholding or static block skipping speed up every token. They also approximate the computation for kept candidates, which the multimodal skipping paper shows is risky for open-ended generation. Modern teachers with smooth activations such as SwiGLU produce few exact zeros unless we accept lossy thresholding. These methods are orthogonal to ours: they make each candidate cheaper, while we avoid finishing candidates at all. We run one static-pruning teacher as an additional point on the curve and check whether the two savings multiply.
Why not just do active learning on the student? That is the student-side-only ablation. It ignores whether the filter would reject a candidate, so it keeps decoding hard-looking but doomed candidates. The dual-side claim holds only if both single-sided variants fall measurably short of the combination.
Proposed Experiments
The main setting is Promptagator-style query generation on BEIR datasets with small-to-medium corpora where the full pipeline is affordable to rerun: ArguAna, SciFact, NFCorpus, Touché-2020, and Climate-FEVER, all used in BEIR and Promptagator. We report nDCG@10 with BM25 as a floor, since BEIR shows it remains strong. The second setting is DISCO-style counterfactual generation for NLI, evaluated on MNLI-hard, SNLI-hard, WANLI, and HANS. A third, lighter check applies the method to the LoTTE Lifestyle domain following the UDAPDR recipe, where the reported full-pipeline Success@5 is 74.8 (UDAPDR). Across all settings we report teacher FLOPs, measured GPU-hours, compute per useful example, recall of filter-passing candidates, and diversity of the retained set.
Four checks decide whether the idea holds. First, the filter-outcome probe must predict the round-trip verdict well within the first quarter of a typical query's tokens. If it only becomes accurate near the end of decoding, the inequality above leaves little to save and the idea fails. Second, the correlation between teacher-side rejection and student-side redundancy must be moderate. If it is near 1, the two sides are redundant; if it is near 0, the combination should compound. Third, at matched student quality the combined method must use clearly less compute than the full pipeline, the smaller-teacher baseline, and the seed-level classifier. Its wall-clock savings must track its FLOP savings only when refilling is enabled. Fourth, the retained set's diversity and the student's out-of-distribution scores must not drop relative to the full pipeline, which would indicate the probes are pruning the tail. Any one of these failing is informative, and we would report it as the result.
References
- Promptagator: Few-shot Dense Retrieval From 8 Examples
- DISCO: Distilling Counterfactuals with Large Language Models
- EIE: Efficient Inference Engine on Compressed Deep Neural Network
- FireFly-S: Exploiting Dual-Side Sparsity for Spiking Neural Networks Acceleration With Reconfigurable Spatial Architecture
- High Area/Energy Efficiency RRAM CNN Accelerator with Pattern-Pruning-Based Weight Mapping Scheme
- TensorDash: Exploiting Sparsity to Accelerate Deep Neural Network Training
- HighLight: Efficient and Flexible DNN Acceleration with Hierarchical Structured Sparsity
- TrueTeacher: Learning Factual Consistency Evaluation with Large Language Models
- UDAPDR: Unsupervised Domain Adaptation via LLM Prompting and Distillation of Rerankers
- It's All Relative! - A Synthetic Query Generation Approach for Improving Zero-Shot Relevance Prediction
- Skipping the Zeros in Diffusion Models for Sparse Data Generation
- Skipping Computations in Multimodal LLMs
- Dynamic Vocabulary Pruning in Early-Exit LLMs
- Beyond Quantity: Trajectory Diversity Scaling for Code Agents
- AccelTran: A Sparsity-Aware Accelerator for Dynamic Inference With Transformers
- BEIR: A Heterogeneous Benchmark for Zero-shot Evaluation of Information Retrieval Models