English

Reverse-Engineering Decoding Strategies Given Blackbox Access to a Language Generation System

Machine Learning 2023-09-12 v1 Computation and Language Cryptography and Security

Abstract

Neural language models are increasingly deployed into APIs and websites that allow a user to pass in a prompt and receive generated text. Many of these systems do not reveal generation parameters. In this paper, we present methods to reverse-engineer the decoding method used to generate text (i.e., top-kk or nucleus sampling). Our ability to discover which decoding strategy was used has implications for detecting generated text. Additionally, the process of discovering the decoding strategy can reveal biases caused by selecting decoding settings which severely truncate a model's predicted distributions. We perform our attack on several families of open-source language models, as well as on production systems (e.g., ChatGPT).

Keywords

Cite

@article{arxiv.2309.04858,
  title  = {Reverse-Engineering Decoding Strategies Given Blackbox Access to a Language Generation System},
  author = {Daphne Ippolito and Nicholas Carlini and Katherine Lee and Milad Nasr and Yun William Yu},
  journal= {arXiv preprint arXiv:2309.04858},
  year   = {2023}
}

Comments

6 pages, 4 figures, 3 tables. Also, 5 page appendix. Accepted to INLG 2023

R2 v1 2026-06-28T12:17:07.639Z