Large language models (LLMs) have demonstrated impressive instruction following capabilities, while still struggling to accurately manage the length of the generated text, which is a fundamental requirement in many real-world applications. Existing length control methods involve fine-tuning the parameters of LLMs, which is inefficient and suboptimal for practical use. In this paper, we propose a novel iterative sampling framework for text length control, integrating the Metropolis-Hastings algorithm with an importance sampling acceleration strategy. This framework efficiently and reliably regulates LLMs to generate length-constrained text without modifying the underlying parameters, thereby preserving the original capabilities of LLMs. Experimental results demonstrate that our framework achieves almost 100\% success rates of length control on Llama3.1 for tasks such as length-controlled abstractive summarization and length-constrained instruction following, with minimal additional computational overhead. This also highlights the significant potential of our method for precise length control across a broader range of applications, without compromising the versatility of LLMs.
LLM-Generated Black-box Explanations Can Be Adversarially Helpful
University of Toronto(多伦多大学);Vector Institute(矢量研究所);UMass Amherst(马萨诸塞大学阿默斯特分校);Stevens Institute of Technology(史蒂文斯理工学院);Dalhousie University(达尔豪斯大学)
Have LLMs Reopened the Pandora's Box of AI-Generated Fake News?
College of Information Sciences and Technology, Pennsylvania State University(宾夕法尼亚州立大学信息科学与技术学院);Bellisario College of Communications, Pennsylvania State University(宾夕法尼亚州立大学贝里萨里奥传播学院);Sungkyunkwan University(成均馆大学)
Can LLMs Express Their Uncertainty? An Empirical Evaluation of Confidence Elicitation in LLMs
National University of Singapore(新加坡国立大学);École Polytechnique Fédérale de Lausanne(洛桑联邦理工学院);The Hong Kong University of Science and Technology(香港科技大学)
Self-Evaluation of Large Language Model based on Glass-box Features
Faculty of Computing, Harbin Institute of Technology(哈尔滨工业大学计算机学院);Baidu Inc.(百度公司);Shandong Computer Science Center, Qilu University of Technology(齐鲁工业大学山东省计算中心)
ExpNote: Black-box Large Language Models are Better Task Solvers with Experience Notebook
Institute of Automation, Chinese Academy of Sciences(中国科学院自动化研究所);School of Artificial Intelligence, University of Chinese Academy of Sciences(中国科学院大学人工智能学院);Shanghai Artificial Intelligence Laboratory(上海人工智能实验室)
Automated Detection of Pre-training Text in Black-box LLMs
Key Laboratory of Trustworthy Distributed Computing and Service (MoE), Beijing University of Posts and Telecommunications, China(可信分布式计算与服务重点实验室,北京邮电大学,中国);Zhongguancun Laboratory, China(中关村实验室,中国)
Instruction Learning Paradigms: A Dual Perspective on White-box and Black-box LLMs
School of Artificial Intelligence, Beihang University(北京航空航天大学人工智能学院);Hangzhou International Innovation Institute, Beihang University(北京航空航天大学杭州国际创新研究院);Nanyang Technological University(南洋理工大学);University of Leicester(莱斯特大学);Kuaishou Technology(快手科技)
Cannot or Should Not? Automatic Analysis of Refusal Composition in IFT/RLHF Datasets and Refusal Behavior of Black-Box LLMs
Technical University of Munich(慕尼黑工业大学);University of Cambridge(剑桥大学);ETH Zurich(苏黎世联邦理工学院);Stanford University(斯坦福大学);TÜV Nord Mobility(北德集团移动事业部);Massachusetts Institute of Technology (MIT)(麻省理工学院)
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(北卡罗来纳州立大学)
Are Large Language Models Reliable AI Scientists? Assessing Reverse-Engineering of Black-Box Systems
Department of Computer Science Princeton University(计算机科学系普林斯顿大学);Department of Computer Science Department of Psychology Princeton University(计算机科学系心理学系普林斯顿大学)
Glimpse: Enabling White-Box Methods to Use Proprietary Models for Zero-Shot LLM-Generated Text Detection
Zhejiang University(浙江大学);School of Engineering(工程学院);Westlake University(西湖大学);School of Mathematics Physics and Statistics(数学、物理与统计学院);Shanghai Polytechnic University(上海第二工业大学);Computer Electrical and Mathematical Science and Engineering Division King Abdullah University of Science and Technology(阿卜杜拉国王科技大学计算机、电气与数学科学与工程学院)
Tsinghua University(清华大学);Zhongguancun Laboratory(中关村实验室);Institute for AI Industry Research (AIR), Tsinghua University(清华大学人工智能产业研究院(AIR));Shanghai Artificial Intelligence Laboratory(上海人工智能实验室)