Domain-Guided Mixture-of-Experts for Cross-Domain Large Language Model-Generated Text Detection
Abstract
Reliable detection of large language model (LLM)-generated text remains challenging when training and test data differ in text domains and underlying generators. To address this problem, we develop a domain-guided detection framework that integrates multi-task Mixture-of-Experts (MMoE) representation learning, domain-supervised expert routing, and supervised contrastive learning. Specifically, a first-stage MMoE module learns complementary representations for domain recognition and LLM-generated text detection through task-specific gates over shared experts. The domain representation is further transformed and fused with the detection representation to support the subsequent classification stage. A second-stage MoE classifier then uses an auxiliary domain-classification objective to directly supervise its routing distribution, encouraging domain-related expert specialization while allowing each input to be adaptively processed by multiple detection experts. This design does not rely on an explicit expert-utilization balancing regularizer. In addition, supervised contrastive learning is applied to the fused detection representation to improve class discrimination and promote more transferable representations under distribution shifts. Experiments on the English track of SemEval-2024 Task 8 demonstrate that the proposed framework achieves strong performance on the adversarial Outfox test set, with an accuracy of 0.925. Generator-wise evaluation further shows stable detection performance across most generator conditions, including the test-only GPT-4 setting, while targeted ablations consistently verify the contributions of domain supervision and the second-stage routed MoE. These results demonstrate the effectiveness of combining task-specific representation learning, domain-guided routing, and contrastive regularization for cross-domain LLM-generated text detection.