Papers
Topics
Authors
Recent
Search
2000 character limit reached

DuoLens: A Framework for Robust Detection of Machine-Generated Multilingual Text and Code

Published 21 Oct 2025 in cs.CL, cs.AI, cs.IR, and cs.LG | (2510.18904v1)

Abstract: The prevalence of 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 LLMs (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= 0.97 to $0.99$ and macro-F1 $0.89$ to $0.94$ while reducing latency by $8$-12×12\times and peak VRAM by $3$-5×5\times at $512$-token inputs. Under cross-generator shifts and adversarial transformations (paraphrase, back-translation; code formatting/renaming), performance retains ≥92\geq 92% of clean AUROC. We release training and evaluation scripts with seeds and configs; a reproducibility checklist is also included.

Summary

No one has generated a summary of this paper yet.

Paper to Video (Beta)

No one has generated a video about this paper yet.

Whiteboard

No one has generated a whiteboard explanation for this paper yet.

Open Problems

We haven't generated a list of open problems mentioned in this paper yet.

Continue Learning

We haven't generated follow-up questions for this paper yet.