Large language model (LLM) providers often hide the architectural details and parameters of their proprietary models by restricting public access to a limited API. In this work we show that, with only a conservative assumption about the model architecture, it is possible to learn a surprisingly large amount of non-public information about an API-protected LLM from a relatively small number of API queries (e.g., costing under $1000 USD for OpenAI's gpt-3.5-turbo). Our findings are centered on one key observation: most modern LLMs suffer from a softmax bottleneck, which restricts the model outputs to a linear subspace of the full output space. We exploit this fact to unlock several capabilities, including (but not limited to) obtaining cheap full-vocabulary outputs, auditing for specific types of model updates, identifying the source LLM given a single full LLM output, and even efficiently discovering the LLM's hidden size. Our empirical investigations show the effectiveness of our methods, which allow us to estimate the embedding size of OpenAI's gpt-3.5-turbo to be about 4096. Lastly, we discuss ways that LLM providers can guard against these attacks, as well as how these capabilities can be viewed as a feature (rather than a bug) by allowing for greater transparency and accountability.
Clone What You Can't Steal: Black-Box LLM Replication via Logit Leakage and Distillation
Department of Electrical Engineering and Computer Science(电气工程与计算机科学系);Embry-Riddle Aeronautical University(埃姆布里-里德尔航空大学);Department of Mathematics(数学系)
DALD: Improving Logits-based Detector without Logits from Black-box LLMs
MBZUAI(Mohamed bin Zayed 人工智能大学);University of California, Santa Barbara(加州大学圣巴巴拉分校);University of California, Los Angeles(加州大学洛杉矶分校);NEC Labs America(美国 NEC 实验室);University of North Carolina, Chapel Hill(北卡罗来纳大学教堂山分校);NC State University(北卡罗来纳州立大学)
From Service Access to Capability Theft: Cloning Task-Solving Capabilities of Proprietary LLM Agents onto Weak Open-Weight Agents
Xi’an Jiaotong University(西安交通大学);INRIA(法国国家信息与自动化研究所);University of Warwick(华威大学);Zhejiang Key Laboratory of Artificial Intelligence of Things (AIoT) Network and Data Security(浙江省人工智能物联网(AIoT)网络与数据安全重点实验室)
ISACL: Internal State Analyzer for Copyrighted Training Data Leakage
City University of Hong Kong(香港城市大学);Microsoft(微软);University of Illinois Urbana-Champaign(伊利诺伊大学厄巴纳-香槟分校);Google LLC(谷歌公司);Arizona State University(亚利桑那州立大学);Stevens Institute of Technology(史蒂文斯理工学院)
Auditing and Mitigating Privacy Leakage in Cloud-Edge Collaborative Decoding
The Hong Kong Polytechnic University(香港理工大学);Institute for AI Industry Research, Tsinghua University(清华大学人工智能产业研究院);School of Software, Tsinghua University(清华大学软件学院)
Hey, That's My Data! Label-Only Dataset Inference in Large Language Models
The Chinese University of Hong Kong(香港中文大学);Indiana University Bloomington(印第安纳大学布卢明顿分校);Yale University, School of Medicine(耶鲁大学医学院);IBM Research(IBM研究院);University of California, Davis(加州大学戴维斯分校)
Stealing Reasoning Traces from Proprietary LLM APIs
MATS Research(MATS研究院);ELLIS Institute Tübingen(图宾根ELLIS研究所);Max Planck Institute for Intelligent Systems(马克斯·普朗克智能系统研究所);Tübingen AI Center(图宾根人工智能中心);University of Tübingen(图宾根大学)
Institute of Data Science, National University of Singapore(数据科学研究院,新加坡国立大学);Integrative Sciences and Engineering Programme, NUSGS(整合科学与工程计划,NUSGS);Agency for Science, Technology, Research (A*STAR)(科技研究局(A*STAR));Department of Computer Science, National University of Singapore(计算机科学系,新加坡国立大学);University of Tokyo(东京大学);Liquid AI;CSAIL, Massachusetts Institute of Technology(CSAIL,麻省理工学院);AI Singapore;Singapore-MIT Alliance for Research and Technology Centre, Singapore(新加坡-麻省理工学院研究与技术中心,新加坡)