DuoLens: A Framework for Robust Detection of Machine-Generated Multilingual Text and Code
Not on the map. Why?
Abstract (arXiv)
The prevalence of Large Language Models (LLMs) for generating multilingual text and source code has only increased the imperative for machine-generated content detectors to be accurate and efficient across domains. Current detectors, predominantly utilizing zero-shot methods, such as Fast DetectGPT or GPTZero, either incur high computational cost or lack sufficient accuracy, often with a trade-off between the two, leaving room for further improvement. To address these gaps, we propose the fine-tuning of encoder-only Small Language Models (SLMs), in particular, the pre-trained models of RoBERTA and CodeBERTa using specialized datasets on source code and other natural language to prove that for the task of binary classification, SLMs outperform LLMs by a huge margin whilst using a fraction of compute. Our encoders achieve AUROC = 0.97 to 0.99 and macro-F1 0.89 to 0.94 while reducing latency by 8-12× and peak VRAM by 3-5× at 512-token inputs. Under cross-generator shifts and adversarial transformations (paraphrase, back-translation; code formatting/renaming), performance retains ≥ 92% of clean AUROC. We release training and evaluation scripts with seeds and configs; a reproducibility checklist is also included.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 20 of its 23 references that are in the map. First posted on arXiv 21 Oct 2025.
Builds on
20 of 23 references.
References · 20
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2019Unsupervised Cross-lingual Representation Learning at Scalecited by 3,935
- 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,310
- 2024Qwen2.5-Coder Technical Reportcited by 1,203
- 2019BERT Rediscovers the Classical NLP Pipelinecited by 1,059
- 2019CodeSearchNet Challenge: Evaluating the State of Semantic Code Searchcited by 654
- 2019Release Strategies and the Social Impacts of Language Modelscited by 513
- 2023How Close is ChatGPT to Human Experts? Comparison Corpus, Evaluation, and Detectioncited by 481
- 2024Spotting LLMs With Binoculars: Zero-Shot Detection of Machine-Generated Textcited by 263
- 2021CodeNet: A Large-Scale AI for Code Dataset for Learning a Diversity of Coding Taskscited by 200
- 2023M4: Multi-generator, Multi-domain, and Multi-lingual Black-Box Machine-Generated Text Detectioncited by 121
- 2022Programming Is Hard -- Or at Least It Used to Be: Educational Opportunities And Challenges of AI Code Generationcited by 99
8 more
- 2023Ghostbuster: Detecting Text Ghostwritten by Large Language Modelscited by 91
- 2024Raidar: geneRative AI Detection viA Rewritingcited by 52
- 2024CodeMirage: Hallucinations in Code Generated by Large Language Modelscited by 23
- 2024MultiSocial: Multilingual Benchmark of Machine-Generated Text Detection of Social-Media Textscited by 14
- 2024EAGLE: A Domain Generalization Framework for AI-generated Text Detectioncited by 13
- 2025textttDroid: A Resource Suite for AI-Generated Code Detectioncited by 9
- 2024AIGCodeSet: A New Annotated Dataset for AI Generated Code Detectioncited by 5
- 2025AGENT-X: Adaptive Guideline-based Expert Network for Threshold-free AI-generated teXt detectioncited by 2
Built on by
Not cited yet.