---
title: 'EnsemJudge: Ensemble Detection for Chinese LLM Text'
url: https://www.emergentmind.com/topics/ensemjudge
type: topic
---

# EnsemJudge: Ensemble Detection for Chinese LLM Text

EnsemJudge is an ensemble-based framework for detecting Chinese LLM-generated text, designed and evaluated in the NLPCC2025 Shared Task 1. It combines heterogeneous detectors—rule-based heuristics, training-free methods, supervised classifiers, and LoRA-tuned Chinese LLMs—through a strategy assignment module, dynamic weighted voting, and optional LLM-based decision support, with the explicit aim of maintaining reliability under out-of-domain and adversarial conditions such as paraphrasing, mixed human–LLM text, and short inputs [2603.27949].

## 1. Scope, motivation, and problem formulation

EnsemJudge addresses the problem of distinguishing **human-written** from **LLM-generated** Chinese text. The motivating risks identified for this setting include academic cheating, large-scale fake news or misinformation, and mislabeled LLM content being treated as human opinion. The framework is designed for a deployment regime in which inputs are not limited to clean in-domain data, but include out-of-domain texts, adversarial paraphrases, mixed human–AI passages, and short excerpts, all of which can degrade single-detector performance substantially [2603.27949].

The framework is explicitly Chinese-centric. The underlying paper emphasizes Chinese-specific tokenization behavior, the absence of whitespace segmentation, Chinese punctuation and clause structure, and the limited availability of strong public Chinese benchmarks relative to English. It also notes that some methods effective on English degrade noticeably on Chinese, and that no single detector performs well across all Chinese text categories, including normal, short, paraphrased, and mixed cases [2603.27949].

Formally, EnsemJudge treats the decision problem as binary classification. For a text \(t\), each base detector \(M_i\) outputs a binary prediction
\[
v_{M_i}^t \in \{-1,1\},
\]
where the positive label denotes LLM-generated text and the negative label denotes human-written text. The overall system then combines these base predictions with text-dependent strategies and weights rather than relying on a fixed classifier [2603.27949].

This design suggests that EnsemJudge is best understood as a **meta-detector**: the central object is not a single model, but a mechanism for selecting, weighting, and reconciling multiple detection signals under distribution shift [2603.27949].

## 2. System architecture and dynamic voting mechanism

The EnsemJudge pipeline has five components: a collection of base models, a strategy assignment module, a dynamic voting module, a decision support module, and an optional decisive adjustment module. At inference time, the system first extracts lightweight features from the input text, uses those features to choose a strategy and associated weights, collects the selected base-model predictions, and then performs weighted voting. In uncertain cases, it can invoke a large LLM as an auxiliary arbiter [2603.27949].

The core voting score for a text \(t\) is
\[
s^t = \sum_{i=1}^{n} w_{M_i}^t \cdot v_{M_i}^t,
\]
where \(w_{M_i}^t\) denotes the weight assigned to model \(M_i\) under the strategy selected for \(t\). The final binary output is computed as
\[
y^t =
\begin{cases}
1, & \text{if } s^t + \lambda \cdot d^t \geq \tau \\
0, & \text{otherwise},
\end{cases}
\]
where \(d^t \in [-1,1]\) is the decision-support signal from an auxiliary LLM, \(\lambda\) controls the strength of that signal, and \(\tau\) is the decision threshold [2603.27949].

The strategy assignment module is text-conditional. It extracts lightweight features such as length and perplexity, clusters the training texts using these features, and assigns to each cluster a specific subset of base models plus a weight vector. At test time, a new text is mapped to a cluster, and the corresponding strategy is applied. This makes the ensemble **dynamic** rather than static: the set of active detectors and their voting strengths depend on the input regime, especially whether the text is extreme short, short, medium, or general [2603.27949].

The decision support module is invoked when the ensemble is uncertain, operationalized as cases where the voting score is near threshold. It uses Qwen2.5-72B-Instruct with few-shot in-context learning, and the few-shot examples include back-translated texts so that the model learns to recognize paraphrased LLM outputs. The resulting support score \(d^t\) is blended into the final decision through the \(\lambda\)-weighted term in the decision rule above [2603.27949].

The decisive adjustment module is a pattern-based override mechanism for highly distinctive cues, such as double newlines that appear only in LLM outputs. The authors ultimately conclude that a strong ensemble makes this module largely unnecessary and potentially risky, because adversarial artifacts can make hard-coded overrides brittle [2603.27949].

## 3. Detector ecology and heterogeneity of the ensemble

A defining property of EnsemJudge is heterogeneity. Its base model pool deliberately mixes rule-based heuristics, training-free scoring methods, supervised encoders, and instruction-tuned Chinese LLMs, with the explicit goal of exploiting complementary error profiles rather than maximizing the standalone strength of any single family [2603.27949].

| Detector family | Representative models | Primary role |
|---|---|---|
| Rule-based | SpecialToken, CommonPhrase, SentenceSegment, ConsecutivePunctuation | Capture niche surface artifacts |
| Training-free | Binoculars, Fast-DetectGPT, CommonToken | Zero-shot statistical detection |
| Training-based | Chinese BERT, Chinese RoBERTa, HybridFeatureRoBERTa | Supervised binary classification |
| LoRA-tuned Chinese LLMs | Qwen2.5-7B-Instruct, GLM-4-9B-Chat | Strong high-level semantic detection |

The rule-based detectors are intentionally simple. SpecialToken checks special tokens such as `\n\n`; CommonPhrase tracks Chinese phrases disproportionately associated with LLM outputs; SentenceSegment inspects clause-unit patterns; ConsecutivePunctuation captures repeated punctuation correlated with human informality. Their standalone macro F1 scores are low, but the paper argues that they contribute complementary signals in edge cases [2603.27949].

The training-free detectors rely on distributional asymmetries rather than supervised fitting. Binoculars is adapted with Qwen2.5-7B as backbone. Fast-DetectGPT is used in both standard and analytical variants with Qwen2.5-7B, Qwen2.5-7B-Instruct, and GLM-4-9B-Chat. CommonToken is a self-designed detector: it tokenizes with the GLM-4-9B tokenizer, computes token frequencies separately on LLM and human subsets of the training data, and predicts according to which side’s frequent tokens dominate the text [2603.27949].

The training-based classifiers include Chinese BERT and Chinese RoBERTa fine-tuned for binary classification, plus length-specific variants trained on 55–75-word or 110–150-word text. HybridFeatureRoBERTa extends RoBERTa by concatenating hidden representations with outputs from rule-based and training-free detectors, then training a new classification head on the joint feature vector [2603.27949].

The strongest standalone components are the LoRA-tuned Chinese LLMs trained with LLaMAFactory, especially Qwen2.5-7B-Instruct-LoRA and its short-text variants. These models are instruction-tuned to classify whether a given text is LLM-generated, and they serve as the ensemble’s high-capacity semantic anchors under adversarial and out-of-domain conditions [2603.27949].

## 4. Robustness design: adversarial reliability, length awareness, and Chinese-specific adaptation

The paper gives EnsemJudge an explicit notion of **reliability** under adversarial transformation. Let \(S\) be a detection system, \(\mathcal{D}\) a set of LLM-generated texts, and \(\mathcal{F}\) a family of adversarial transformations. The transformed corpus is
\[
\mathcal{D}' = \{ f(t) \mid t \in \mathcal{D}, f \in \mathcal{F} \},
\]
and reliability is defined as
\[
\text{Rel}(S, \mathcal{D}, \mathcal{F}) = \mathbb{E}_{t \in \mathcal{D}, f \in \mathcal{F}}[\text{Acc}(S, f(t))].
\]
Because enumerating all \(f \in \mathcal{F}\) is infeasible, the implementation approximates this with a representative subset \(\mathcal{F}'\), centered on paraphrasing and excerpting attacks [2603.27949].

Two adversarial augmentation mechanisms are central. First, **back-translation** with `mbart-large-50-many-to-many-mmt` produces Chinese \(\rightarrow\) English \(\rightarrow\) Chinese paraphrases. Second, **text excerpting** creates shorter segments from longer passages. These augmentations are derived solely from the official training set, satisfying the shared-task restriction against external corpora, and they are used to probe which detectors remain stable when text form changes but authorship does not [2603.27949].

Length is treated as a first-class variable. The paper reports that all detectors improve on longer texts, with performance saturating around 500 characters, and that Qwen2.5-7B-Instruct-LoRA improves by 39.0%, 14.5%, and 1.1% as length increases across the reported bins. EnsemJudge therefore uses length-specific models, length-specific thresholds for Binoculars and Fast-DetectGPT, and separate ensemble weight vectors for “extreme short,” “short,” “medium,” and “general” cases [2603.27949].

The framework is also explicitly adapted to Chinese linguistic structure. Training-based detectors use Chinese BERT and Chinese RoBERTa; LLM backbones include Qwen2.5 and GLM-4; CommonToken uses the GLM-4-9B tokenizer; and rule-based features target Chinese punctuation and sentence segmentation. The paper argues that these design choices are not interchangeable with English-oriented defaults, and that Chinese-optimized models such as Qwen2.5 are more robust under paraphrasing than many English-derived detection methods [2603.27949].

This suggests that EnsemJudge’s robustness is not solely an effect of “more models.” It also depends on the deliberate coupling of adversarial augmentation, length-aware specialization, and language-specific feature design [2603.27949].

## 5. Dataset, evaluation protocol, and empirical performance

EnsemJudge is trained and evaluated on the dataset of **NLPCC2025 Shared Task 1**, with DetectRL-ZH as the training source. The split summarized in the paper is: Train \(= 24{,}300\) LLM / \(8{,}100\) human, Dev \(= 1{,}700\) LLM / \(1{,}100\) human, and Test \(= 5{,}500\) LLM / \(5{,}500\) human. The test set is deliberately out-of-domain in both content domain and generating LLM source, and it includes adversarial subsets—Mixed, Paraphrase, and Perturbation—as well as varying-length subsets at 64, 128, 256, and 512 characters [2603.27949].

The primary shared-task metric is **macro F1-score**. On the full test set, EnsemJudge achieves **0.9922** macro F1. The subset breakdown reported in the paper is: Normal \(= 1.0000\), Mixed \(= 0.9970\), Paraphrase \(= 0.9870\), Perturbation \(= 0.9990\), and by length, 64 \(= 0.9590\), 128 \(= 0.9780\), 256 \(= 0.9940\), 512 \(= 1.0000\) [2603.27949].

The margin over individual base detectors is substantial. Representative full-test macro F1 values are: SpecialToken \(= 0.3334\), SentenceSegment \(= 0.5899\), CommonToken(GLM-4-9B) \(= 0.7327\), Fast-DetectGPT variants \(\approx 0.814\)–\(0.83\), Binoculars \(= 0.8317\), ChineseBERT \(= 0.7719\), ChineseRoBERTa \(= 0.7701\), HybridFeatureRoBERTa \(= 0.8555\), GLM-4-9B-Chat-LoRA \(= 0.8907\), Qwen2.5-7B-Instruct-LoRA \(= 0.9409\), and Qwen2.5-7B-Instruct-LoRA (Short Text) \(= 0.9572\). EnsemJudge’s \(0.9922\) therefore exceeds the strongest single model by roughly 3.5 points [2603.27949].

The robustness analysis is especially revealing. On the **Mixed** subset, the best single model reported is Qwen2.5-7B-Instruct-LoRA (Short Text) at \(0.9064\), whereas EnsemJudge reaches \(0.9970\). On **Paraphrase**, Qwen2.5-7B-Instruct-LoRA reaches \(0.9589\), while EnsemJudge reaches \(0.9870\). On **Perturbation**, EnsemJudge reaches \(0.9990\), matching the best standalone result. The paper also shows that training-free methods are especially fragile under attack—for example, Binoculars drops from \(0.9890\) on Normal to \(0.4828\) on Mixed, \(0.3777\) on Paraphrase, and \(0.3444\) on Perturbation—whereas Qwen2.5-7B-Instruct-LoRA remains comparatively stable [2603.27949].

The short-text regime is another major test. Qwen2.5-7B-Instruct-LoRA achieves only \(0.4544\) at length 64, but its Extreme Short variant rises to \(0.9227\). EnsemJudge, by combining length-aware strategies, reaches \(0.9590\) at 64 characters. This is one of the clearest demonstrations that the framework’s dynamic strategy assignment, rather than mere model averaging, is central to its performance [2603.27949].

## 6. Position within ensemble-judge research and open limitations

Despite its name, EnsemJudge belongs to a different lineage from response-quality “LLM-as-a-judge” systems. It is a detector of **Chinese LLM-generated authorship**, not a benchmark or reward model for evaluating candidate answers. This places it closer to ensemble meta-detection than to systems such as JudgeBlender, which ensembles prompts and small LLMs for automatic relevance assessment [2412.13268], Auto-Prompt Ensemble, which learns auxiliary evaluation dimensions and aggregates them through Collective Confidence [2510.06538], or AudioJudge, which decomposes speech assessment into lexical, paralinguistic, and quality judges [2507.12705].

At the same time, EnsemJudge shares a family resemblance with those systems in its reliance on heterogeneity, conditional aggregation, and specialized subcomponents. A plausible implication is that it can be read as a concrete demonstration of a broader principle also visible in multilingual and multimodal judge research: complementary failure modes can be exploited if the aggregation mechanism is sufficiently structured. SEMJ, for example, treats cross-lingual inconsistency as a useful signal for iterative refinement rather than mere noise [2606.08092], while judge-aware ranking frameworks model judge-specific reliability rather than treating all evaluators equally [2601.21817]. EnsemJudge adopts the same spirit in a different domain by assigning different subsets of detectors and different weights to different text regimes [2603.27949].

The paper nonetheless identifies clear limitations. The framework is heavily tuned to the NLPCC2025 Shared Task 1 setting, and may require retuning for other datasets or domains. Its components are Chinese-specific, including tokenization, pretrained backbones, and rule patterns, so cross-lingual transfer is not established. Strategy assignment, cluster formation, and weight tuning are largely manual or heuristic rather than learned end-to-end. The adversarial space remains partial, focused on paraphrase, excerpting, mixing, and perturbation rather than more complex style-transfer or human-edit attacks. Finally, the decision support module relies on Qwen2.5-72B-Instruct, which is computationally expensive even if only invoked for uncertain cases [2603.27949].

These limitations do not diminish the paper’s central result. EnsemJudge shows that, for Chinese LLM-generated text detection under strong out-of-domain and adversarial shift, reliability is not well served by a single detector family. It emerges instead from a deliberately engineered ensemble in which rule-based, probabilistic, supervised, and instruction-tuned components are combined through length-aware, cluster-specific, and uncertainty-sensitive voting [2603.27949].

Source: https://www.emergentmind.com/topics/ensemjudge