The rapid advancement in large language models (LLMs) has significantly enhanced their ability to generate coherent and contextually relevant text, raising concerns about the misuse of AI-generated content and making it critical to detect it. However, the task remains challenging, particularly in unseen domains or with unfamiliar LLMs. Leveraging LLM next-token distribution outputs offers a theoretically appealing approach for detection, as they encapsulate insights from the models' extensive pre-training on diverse corpora. Despite its promise, zero-shot methods that attempt to operationalize these outputs have met with limited success. We hypothesize that one of the problems is that they use the mean to aggregate next-token distribution metrics across tokens, when some tokens are naturally easier or harder to predict and should be weighted differently. Based on this idea, we propose the Perplexity Attention Weighted Network (PAWN), which uses the last hidden states of the LLM and positions to weight the sum of a series of features based on metrics from the next-token distribution across the sequence length. Although not zero-shot, our method allows us to cache the last hidden states and next-token distribution metrics on disk, greatly reducing the training resource requirements. PAWN shows competitive and even better performance in-distribution than the strongest baselines (fine-tuned LMs) with a fraction of their trainable parameters. Our model also generalizes better to unseen domains and source models, with smaller variability in the decision boundary across distribution shifts. It is also more robust to adversarial attacks, and if the backbone has multilingual capabilities, it presents decent generalization to languages not seen during supervised training, with LLaMA3-1B reaching a mean macro-averaged F1 score of 81.46% in cross-validation with nine languages.
On the Fallacy of Global Token Perplexity in Spoken Language Model Evaluation
Carnegie Mellon University(卡内基梅隆大学);National Taiwan University(国立台湾大学);Toyota Technological Institute at Chicago(芝加哥丰田技术研究所);Massachusetts Institute of Technology(麻省理工学院)
Is my model perplexed for the right reason? Contrasting LLMs' Benchmark Behavior with Token-Level Perplexity
College of Informatics, University of Amsterdam(阿姆斯特丹大学信息学学院);Department of Medical Informatics, Amsterdam University Medical Center(阿姆斯特丹大学医学中心医学信息学系);ILLC, University of Amsterdam(阿姆斯特丹大学逻辑、语言与计算研究所)
What is Wrong with Perplexity for Long-context Language Modeling?
State Key Lab of General Artificial Intelligence, School of Intelligence Science and Technology, Peking University(一般人工智能国家重点实验室,智能科学与技术学院,北京大学);MIT CSAIL(麻省理工学院计算机科学与人工智能实验室);Alibaba Group(阿里巴巴集团);TUM CIT, MCML, MDSI(技术大学(TUM) CIT、MCML、MDSI);MIT EECS, CSAIL(麻省理工学院电子工程与计算机科学系,计算机科学与人工智能实验室);Institute for Artificial Intelligence, Peking University(人工智能研究院,北京大学)
Adaptation Odyssey in LLMs: Why Does Additional Pretraining Sometimes Fail to Improve?
Concordia University(康考迪亚大学);Mila-Quebec AI Institute(米拉-魁北克人工智能研究所);University of Tübingen(蒂宾根大学);Tübingen AI Center(蒂宾根人工智能中心);Cohere For AI(Cohere人工智能项目);Laval University(拉瓦尔大学)
QuickSilver -- Speeding up LLM Inference through Dynamic Token Halting, KV Skipping, Contextual Token Fusion, and Adaptive Matryoshka Quantization
Manipal University Jaipur(马尼帕尔大学斋浦尔分校);Vellore Institute of Technology(韦洛尔理工学院);NIT Silchar(西尔查尔国立理工学院);Harrisburg University of Science and Technology(哈里斯堡科技大学);Meta AI;Amazon AI;IISER Kolkata(加尔各答印度科学教育与研究所);BITS Pilani, Goa(比尔拉理工学院果阿分校)
An Interpretable N-gram Perplexity Threat Model for Large Language Model Jailbreaks
University of Tübingen(图宾根大学);Tübingen AI Center(图宾根人工智能中心);Max Planck Institute for Intelligent Systems(智能系统马克斯·普朗克研究所);ELLIS Institute Tübingen(图宾根ELLIS研究所)
You only need 4 extra tokens: Synergistic Test-time Adaptation for LLMs
The Hong Kong University of Science and Technology (Guangzhou)(香港科技大学(广州));The Hong Kong University of Science and Technology(香港科技大学);Tsinghua University(清华大学)