Leak-Free Span Gates for Few-Shot Self-Training

Few-shot self-training works like this: a model trained on a handful of labeled examples labels a large unlabeled pool, and a second model is trained on those guesses. It often gets worse over time, because each round inherits the previous round's mistakes. We propose an admission test for those machine-made labels. The teacher must highlight one short, unbroken stretch of the input, and it must reach the same answer when it sees only that stretch and everything else is removed exactly, not merely down-weighted. If the teacher cannot, the example is not used. The idea is that a label backed by a checkable, contiguous piece of evidence is more likely to be correct than a label backed only by high confidence.

The opportunity comes from three directions that have not been combined. Rationale extraction trains a model to highlight the text that justifies its prediction, and researchers have learned to force those highlights into contiguous spans. Sparse attention operators replace softmax with functions that can assign exactly zero weight. Label-efficient learning uses self-training when experts are scarce. Our claim is that a sufficiency check is only meaningful when the highlight is both exactly sparse and contiguous. A soft mask lets background text leak into the "rationale-only" prediction. A scattered set of keywords lets the model pass the check through lexical shortcuts. Combining the two properties turns the rationale from a byproduct into a filter on pseudo-labels.

Core Claim

The closest work is Self-training with Few-shot Rationalization (RationaleST). It trains a BERT teacher and student with a classification head and a token-selection head from 100 labels per class. It adds losses for sufficiency, completeness and coherence, and weights pseudo-labels by teacher confidence. It reaches 86% F1 on Movies against 91% fully supervised. It also reports that performance drifts downward after roughly ten self-training iterations.

In RationaleST, rationale quality shapes the training loss, but pseudo-labels are admitted by confidence. Its token selection is soft and relies on a penalty for fragmented selections. We change what decides admission.

The teacher's selector is a structured sparse projection: fusedmax from A Regularized Framework for Sparse and Structured Neural Attention. Fusedmax projects scores onto the probability simplex with a penalty on differences between neighboring weights. It outputs exact zeros and flat plateaus over contiguous spans. Let $x$ be an unlabeled input, $r(x)$ the teacher's fusedmax support with the complement tokens deleted, and $\bar r(x)$ the complement with the rationale deleted. Let $f$ be the teacher's predicted distribution and $\hat y = \arg\max f(x)$ its label. We admit $(x, \hat y)$ only when two conditions hold.

$$\arg\max f(r(x)) = \hat y \quad\text{and}\quad f_{\hat y}(\bar r(x)) \le f_{\hat y}(x) - \delta$$

The first condition requires the span alone to recover the label. The second requires that removing the span lowers the label's probability by at least a margin $\delta$.

We predict that this gate raises pseudo-label precision at matched acceptance rate relative to confidence filtering. We also predict it flattens the drift curve beyond iteration ten. Most importantly, both effects should disappear when either exact sparsity or contiguity is removed from the selector.

Fusedmax has no hard length budget, which matters for a problem raised by Interventional Rationalization. That paper documents a "sparsity trap": a fixed budget forces the selector to pad short true rationales with junk tokens that happen to correlate with the label. Under the gate, such padding would create exactly the shortcut-passing examples the gate is meant to reject.

Research Program

We build a single BERT-based teacher–student system in the RationaleST setting. The rationale head is replaced by fusedmax over per-token scores. Fusedmax is differentiable with exact Jacobians, and its original authors report it running at about 3/4 the speed of an optimized GPU softmax pipeline, so the overhead is tolerable. The Transformer backbone keeps ordinary softmax attention. The "dense noise" we target is leakage through the rationale mask, not internal attention, and we say so plainly.

We will study three things. The first is the gate's precision and recall on the pool, measured against held-out gold labels. The second is how admitted examples differ from rejected ones, including rationale length, number of spans, and overlap with human rationales. The third is whether the student trained on gated data yields rationales that are more faithful by the metrics of ERASER: A Benchmark to Evaluate Rationalized NLP Models. Those metrics are sufficiency (the model's probability given only the rationale) and comprehensiveness (the drop in probability when the rationale is removed).

As a secondary variant, we will swap fusedmax for the budgeted sequence factor of SPECTRA: Sparse Structured Text Rationalization. SPECTRA extracts deterministic, contiguous, budgeted spans through a differentiable factor-graph layer and was tested only with full supervision. Comparing the two isolates the budget question.

Rationalizing Transformer Predictions via End-To-End Differentiable Self-Training (RTP) supplies the contrasting design. It uses continuous masks with a smooth span parameterization, trains on full, rationale-only and complement inputs, and is evaluated only in fully supervised settings. We use RTP-style soft masks as the leaky counterpart to our exact-zero gate.

Baselines

The naive reference is the teacher trained on 100 labels per class with no self-training. RationaleST reports that iterative self-training adds 6.45% F1 over this initial teacher. Our reproduction must recover a gain of that order to be credible.

The strongest existing method is RationaleST itself, run with confidence re-weighting and its three rationale losses. It gets the same BERT backbone, the same five ERASER tasks, the same 100-labels-per-class splits, and the same unlabeled pool. Every method gets an equal hyperparameter search budget, tuned on the same small labeled development split. The reported reference is 86% F1 on Movies (RationaleST). Beating it means matching or exceeding that F1 at the best iteration while degrading less between iterations 10 and 20. It also means higher comprehensiveness at equal rationale length. On BeerAdvocate, no few-shot reported result was found on Lacuna. The fully supervised references are SPECTRA's token F1 of 0.61 and Inter-RAT's Palate F1 of 40.2%, both ceilings rather than targets.

A third baseline gives RationaleST an exponential-moving-average anchor teacher with a consistency loss, following ASMIL: Attention-Stabilized Multiple Instance Learning for Whole-Slide Imaging. ASMIL stabilized attention that oscillated across epochs in weakly labeled pathology. This is the most direct generic cure for drift. It also receives early stopping chosen on the development split.

The ablations isolate the key ingredient. The gate is computed with an RTP-style soft mask to test leakage. It is computed with plain sparsemax to test exact zeros without contiguity. Fusedmax is used without the gate to test whether the selector alone helps. The gate is run with a budgeted SPECTRA factor to test the sparsity trap.

Why not just…?

Why not just filter pseudo-labels by confidence? RationaleST already does this and still drifts after about ten iterations, so confidence alone is not enough in the file's evidence. Still, a stricter confidence threshold might match the gate. We therefore compare at matched acceptance rate: the gate must admit more correct labels at the same number admitted, or the claim fails.

Why not just use an EMA teacher and stop early? This is a real threat. ASMIL shows anchor-based stabilization works in a related weakly supervised regime, and early stopping sidesteps drift entirely. We run both. We also run the gate combined with the EMA teacher. If the EMA teacher plus early stopping equals the gate on F1 and faithfulness, we will report that the gate adds nothing. The gate's distinct prediction is higher pseudo-label precision and more faithful student rationales, which the EMA teacher does not target.

Why not just gate on sparsemax, a thresholded softmax, or a post-hoc saliency span? Thresholding breaks simplex normalization and gradient flow. ASMIL also argues that no single softmax temperature can both suppress background and spread weight over several informative regions. Sparsemax zeros are exact but scattered, and Rationalizing Neural Predictions and later work show that unconstrained selection gravitates to scattered keywords that pass sufficiency through shortcuts. The sparsemax and soft-mask ablations directly test whether contiguity and exactness each matter. A post-hoc Integrated Gradients span is added as a further gate variant.

Proposed Experiments

The main experiment runs 20 self-training iterations on the five ERASER tasks RationaleST used, at 100 labels per class, with five seeds. Evidence Inference is included as the clinical case. At each iteration we record task F1 and pseudo-label precision against held-out gold labels. For the final student we also record IOU and token F1 against human rationales, plus sufficiency and comprehensiveness. BeerAdvocate and Hotels repeat the study in a multi-aspect setting with aspect-level human rationales.

Three checks decide the question. The first is pseudo-label precision at matched acceptance rate: the gate must beat confidence filtering. The second is the drift curve: the gate must stay flat past iteration ten where RationaleST declines, and must add value over the EMA teacher. The third is the ablation pattern: the gains must vanish when the mask is soft or when contiguity is removed.

A final diagnostic addresses the sparsity trap. It measures how often admitted rationales contain tokens outside human rationales, comparing budget-free fusedmax with budgeted SPECTRA. If budget-free selection does not reduce such junk, the proposal's account of why the gate works is wrong even if the accuracy numbers hold.