计算机科学
推论
理论(学习稳定性)
钥匙(锁)
离群值
灵敏度(控制系统)
趋同(经济学)
人工智能
机器学习
算法
语言模型
资源(消歧)
均方预测误差
数据挖掘
因果推理
异常检测
集合(抽象数据类型)
结构化预测
组分(热力学)
培训(气象学)
训练集
稳健性(进化)
建筑
作者
Haoyi Niu,Lin Lü,Weichi Zhao,Feng Gao,Xiang Gao
出处
期刊:
日期:2025-09-19
卷期号:: 483-488
标识
DOI:10.1109/aiahpc66801.2025.11290434
摘要
Accurate prediction of output length in large language model (LLM) inference is critical for efficient resource management, yet remains challenging due to the high variability and semantics-dependent nature of generated responses. In this work, we propose Prompt2Length, a lightweight and effective framework that predicts the output length bucket of an LLM request based solely on its input prompt. Our approach leverages a DistilBERT-based architecture for computational efficiency and introduces two key enhancements: a normal distribution-based filtering strategy to improve training stability by reducing outlier bias, and a semantic-preserving prompt augmentation method that enhances sensitivity to length-controlling linguistic cues. Evaluated across five diverse NLP tasks, Prompt2Length achieves state-of-the-art accuracy, with up to 96.8% accuracy and significant gains on complex tasks. Experimental results also show rapid convergence and robust performance, demonstrating that Prompt2Length enables accurate and efficient length prediction, making it a practical solution for optimizing LLM inference serving systems.
科研通智能强力驱动
Strongly Powered by AbleSci AI