NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Which Detector to Trust for Which Question: Label-Conditioned Fusion for Polished and Mixed AI Text

Detectors of AI-written text rely on two kinds of evidence. Statistical evidence asks how predictable each word was to a language model. Semantic evidence comes from a fine-tuned encoder that reads the text's meaning and style. Current systems merge the two in one fixed way and then answer one flat question, such as "human or AI?" or "which of four roles produced this?" But realistic cases like a human draft polished by ChatGPT pose two different questions with a built-in direction between them. Who wrote the wording? Who supplied the content? Machine-supplied content almost always arrives in machine wording. Machine wording, which is what a polishing pass produces, says nothing about whether the content was machine-made. We propose a detector that predicts these two questions separately, for each sentence and for the whole document. For each question it learns a separate, input-dependent weighting of the statistical and semantic evidence. It is trained with a soft penalty whenever its predictions break the known one-way implications.

The bet is concrete. Token-probability signals mainly measure wording and fail on short spans. Semantic encoders are the only plausible signal for content origin. A single shared mixing weight therefore has to trade these off badly exactly where detection is hardest: polished text, short sentences, and shifted test conditions. If the bet is right, the gains should concentrate on the "LLM-Polisher" class and on short spans, with parity elsewhere. If the gains do not land there, we will know that a simpler concatenation baseline was enough.

Core Claim

Fine-grained AI-text detection is a small multi-label problem with asymmetric dependencies, not a flat multi-class one. Two pieces of structure follow from that. First, the best mix of statistical and semantic features differs by label, so the mixing weight should be conditioned on the label being predicted, not shared. Second, the directional implications should be enforced as soft margin constraints. One holds across the two questions: machine content implies machine wording. The other holds across granularities: any machine sentence implies a machine-involved document. We claim the combination improves role recognition on polished text and sentence localization on short spans under distribution shift. We also claim it does so for a reason we can inspect: the learned weights shift toward semantic features for the content question and for short inputs.

Where This Sits

The fine-grained framing comes from Beyond Binary (LLMDetect). That paper splits detection into four roles (Human-Author, LLM-Creator, LLM-Polisher, LLM-Extender) plus a regressed involvement ratio. It finds fine-tuned DeBERTa reaches 92.49% group-average F1 on its out-of-distribution DetectEval suite while zero-shot GPT-4o reaches 40.29%, and it singles out Polisher text as the hardest case. LLMDetect motivates our work. Its roles, however, are flat and mutually exclusive, and its two task heads are independent. Our decomposition makes the overlap among roles explicit: Polisher means human content with machine wording, while Extender means a mix of human and machine sentences. Nuanced Multi-class Detection of Machine-Generated Scientific Text makes the same flat-class choice for paraphrase, summarization, and title-based generation of abstracts, and reaches 97.60% accuracy on its S2ORC subset. We treat that work as evidence that workflow-level labels can be learned, not as a structural template.

On the feature side, three methods supply the statistical stream we reuse. Log-rank scoring (DetectLLM) measures how highly the model ranked each chosen token. Lastde (Training-free detection by mining token probability sequences) treats per-token probabilities as a time series and measures their multi-scale irregularity. SeqXGPT (SeqXGPT) runs a CNN and then a Transformer over log-probability "waves" from several open models. These papers also constrain the design. Lastde degrades below about 30 words, and MGTBench reports that paraphrasing collapses detectors from 0.99 to 0.04 F1. Statistical features are therefore unreliable precisely in the regimes we care about, and any fusion must be able to turn them down. SeqXGPT and Multi-Loss Fusion (DeB-Ang) both fuse, but statically. SeqXGPT stacks its modules in a fixed sequence, and DeB-Ang combines cross-entropy, angular, and contrastive losses with fixed weights. DeB-Ang's contrastive term is also symmetric, which is exactly the assumption we drop. Machine-Generated Text Localization (AdaLoc) addresses the short-span problem by predicting three-sentence chunks over a frozen RoBERTa-Large and majority-voting the overlaps, raising GoodNews mAP from 50.67 to 78.49. Our sentence-to-document implication replaces that unweighted vote with a learned, consistency-constrained aggregation.

The fusion mechanism builds on gated fusion as formalized in Gated Multimodal Units and Attentional Feature Fusion. We take one specific warning from the latter: computing a gate from a naive sum of two streams lets the noisier stream corrupt the gate. The asymmetric-constraint idea comes from LMCF, which widens classification margins along a learned directional label-influence matrix. We also take from ML-GCN the idea of encoding conditional label probabilities as directed edges. Both of those papers use static linear or precomputed structure on image and tag benchmarks, and neither touches generated text. Our implications are known a priori from how the roles are defined, so we do not need to estimate a full matrix. The novelty instead lies in letting the evidence weighting depend on the node of that small graph.

Research Program

Labels. Each sentence $s$ gets two binary labels, machine wording $w_s$ and machine content $c_s$. The document gets a machine-involvement label $d$ and the original four-way role. All of these come deterministically from existing role annotations, so no new annotation is needed:

  • Human-Author: $w=c=0$ everywhere.
  • Polisher: $w=1$, $c=0$.
  • Creator: $w=c=1$.
  • Extender: human sentences are $(0,0)$ and generated continuations are $(1,1)$.

The training corpus is HNDC from LLMDetect, supplemented with sentence-level wording labels from SeqXGPT-Bench and the AdaLoc localization data.

Feature streams. The statistical stream $h^{\text{stat}}_s$ is a small CNN over per-token log-probability and log-rank sequences from an open proxy model, together with Lastde's multi-scale entropy. The semantic stream $h^{\text{sem}}_s$ is a DeBERTa encoder that sees each sentence in its document context.

Label-conditioned gate. For each label $\ell \in \{w, c, d\}$ with learned embedding $e_\ell$, the fused representation is

$$z_{s,\ell} = \alpha_{s,\ell}\, \tilde h^{\text{stat}}_s + (1-\alpha_{s,\ell})\, \tilde h^{\text{sem}}_s, \qquad \alpha_{s,\ell} = \sigma\big(g(e_\ell,\ r_s)\big),$$

where $\tilde h$ are layer-normalized projections of the two streams to a common width, and $\sigma$ is the sigmoid. The vector $r_s$ is a low-dimensional reliability summary: span length in tokens, proxy-model entropy, and the norm of each stream. To avoid AFF's bottleneck, the gate never reads a raw sum of the streams. A per-label linear head reads $z_{s,\ell}$. The document label reads an attention-pooled version of the sentence $z_{s,d}$.

Directional consistency. We add a hinge penalty that is zero whenever the implications hold:

$$\mathcal{L}_{\text{dir}} = \sum_s \big[p(c_s) - p(w_s) - m\big]_+ \;+\; \big[\max_s p(w_s) - p(d) - m\big]_+ ,$$

where $p(\cdot)$ is the predicted probability and $m \ge 0$ is a small slack. The first term says content should not look more machine-made than wording. The second says the document is at least as machine-involved as its most machine-like sentence. Both are soft on purpose. Paraphrase "humanizing" attacks produce machine content with human-looking wording, so they violate the first implication. We want the content head free to stay high in that case, and we will measure whether it does. The full loss is per-label cross-entropy plus $\lambda \mathcal{L}_{\text{dir}}$.

Analysis. Beyond accuracy, we will plot $\alpha_{s,\ell}$ against span length, against label, and against attack condition. The mechanistic prediction is specific. Over $w$, $\alpha$ should be high on long spans and fall on short ones. Over $c$, it should be low throughout. Under paraphrase, it should fall for both. A gate that does not separate by label would falsify the central claim even if accuracy improved.

Baselines

The naive reference is zero-shot thresholding of the statistical stream alone, using Log-Rank (DetectLLM) and Lastde (Lastde, code at TrustMedia-zju/Lastde_Detector), with thresholds tuned on the training split. It answers whether learned fusion is needed at all. On these benchmarks, the reported figures are MGTBench F1 above 0.95 on long texts and Lastde's roughly 95.89% average white-box AUROC across 12 models on its own multi-domain suite. We expect this baseline to be weak on Polisher text and on short spans.

The strongest existing role-recognition method is fine-tuned DeBERTa from LLMDetect, reported at 92.49% group-average F1 on DetectEval. We will retrain it on the same HNDC split, with the same DeBERTa backbone, epochs, and hyperparameter search budget as our model. Beating it means a statistically reliable gain on DetectEval overall, plus a larger gain on the Polisher class and on documents in DetectEval's model-shift and domain-shift groups.

For sentence localization, the strongest competitors are SeqXGPT and AdaLoc. SeqXGPT reports about 97% Macro-F1 on SeqXGPT-Bench (GPT-2/GPT-Neo) and 92.8% F1 on its out-of-distribution TriviaQA split. AdaLoc reports 78.49 mAP on GoodNews. We will run both with their published configurations on the same splits. Beating them means matching on long-sentence in-distribution data and winning on sentences under 30 words and on TriviaQA. Those are the conditions where AdaLoc itself says single sentences lack enough statistical footprint.

Three ablations isolate the ingredients:

  • Concatenation: both streams concatenated, flat heads, no gate and no $\mathcal{L}_{\text{dir}}$.
  • Shared gate: a single label-agnostic gate, which removes $e_\ell$ from $g$.
  • Full gate without the penalty: the label-conditioned gate with $\lambda = 0$.

Every model uses identical backbones, the same proxy model for log-probabilities, the same data, and the same number of tuning trials, and every result is reported over five seeds.

Why not just…?

Why not just concatenate the statistical scores onto DeBERTa and fine-tune a flat classifier? This is the most serious threat. A large fine-tuned head can, in principle, learn input-dependent weighting implicitly, and in-distribution DeBERTa already reaches 92.49% F1 without any statistical features. We do not expect to beat concatenation in-distribution. Our prediction is limited to short spans, Polisher text, and DetectEval's shifted groups, where the statistical features are unreliable and a flat head trained mostly on long, clean examples will over-trust them. The concatenation ablation settles this. If it matches the full model within seed variance on those slices, we will report that label-conditioned gating is unnecessary.

Why not just add the hierarchy as multi-task heads, or as the consistency loss alone, without any gating? This tests whether the structure helps on its own, independent of fusion. The full-gate-without-penalty ablation and a concatenation-plus-penalty variant together separate the two contributions. We expect the penalty mainly to reduce incoherent predictions, such as a "human" document containing confidently machine sentences, and to improve involvement-ratio regression. We expect the gate to carry most of the Polisher and short-span gains. If the penalty alone delivers those gains, the paper's claim narrows to structured outputs.

Why not just use multiple-instance pooling, taking the maximum sentence score as the document score? Max-pooling already encodes the sentence-to-document implication exactly, and it is the method behind context-gated slide classifiers like CAMIL. It does not encode the wording-versus-content implication, and it cannot distinguish Polisher documents, where every sentence is machine-worded, from Extender documents, where only some are. We include max-pooled document prediction as a baseline for the document label. We expect it to tie on human versus machine-involved and lose on four-way role recognition.

Why not just stack zero-shot scores and the DeBERTa probability in a logistic regression? Stacking is cheap and often strong. It can, however, only weight detectors globally, or by hand-made bins such as length, and it cannot produce content-origin predictions that no single base detector outputs. We will run it with length-bin interactions. If it matches us on role F1, that is evidence the benefit comes from reliability-aware weighting rather than from representation-level fusion, which is still a useful finding.

Proposed Experiments

Main evaluation. We train on HNDC and evaluate four-way role F1 and involvement-ratio error on DetectEval, broken down by its shift groups. Separately, we evaluate sentence-level wording F1 on SeqXGPT-Bench and its TriviaQA split, and mAP on GoodNews against AdaLoc's 78.49.

Length stress test. We bucket sentences by token count: under 15, 15 to 30, and over 30. We report all models per bucket. The hypothesis predicts the largest margin over concatenation and over SeqXGPT in the shortest bucket.

Attack test. We apply MGTBench-style paraphrasing to Creator documents, which yields machine content in lightly humanized wording. We then measure whether content-head recall survives while wording-head recall drops. Success means content recall stays well above the statistical-only baseline, which MGTBench shows collapsing toward 0.04 F1. We also log how often the first consistency term is violated, as a built-in attack signal.

Proxy-mismatch test. We swap the proxy model that produces log-probabilities for one from a different family. We expect the gate's statistical weight to drop and accuracy to degrade less than for concatenation.

Decisive check. The project succeeds only if two things hold together. First, the label-conditioned gate beats both the shared gate and concatenation on Polisher F1 and on the short-span bucket under shift. Second, the learned weights separate by label in the predicted direction. If accuracy improves but the weights do not separate, or if the weights separate but accuracy does not move, we will report the result as negative for the central claim.