arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2512.03816cs.LGcs.CR
收藏

LLM API 的对数概率跟踪

Log Probability Tracking of LLM APIs

Université de Rennes(里昂大学);Inria(法国国家信息与自动化技术研究所);CNRS/IRISA(国家科学研究中心/里昂信息与自动化研究所);LAAS(国家科学研究中心拉瓦尔研究所);CNRS(国家科学研究中心)

Timothée Chauvin, Erwan Le Merrer, François Taïani, Gilles Tredan

AI总结:

通过LLM API的对数概率进行低成本持续监控,能检测微调变化并提升审计效率

摘要:

当通过API提供商使用大语言模型时,用户期望被服务的模型在时间上保持一致,这一特性对于下游应用的可靠性以及研究的可重复性至关重要。现有的审计方法在定期间隔内应用到广泛可用的LLM API时成本过高。这意味着在实践中,模型更新往往得不到充分监控。在本工作中,我们表明尽管LLM对数概率(logprobs)通常是非确定性的,但它们仍可以作为LLM API持续监控的基础。我们应用了一种基于每个token对数概率平均值的简单统计测试,仅请求单个token的输出。这足以检测到微调一步的变化,使这种方法比现有方法更敏感,同时成本低1000倍。我们引入了TinyChange基准作为在小而现实的模型变化背景下衡量审计方法灵敏度的方式。

英文摘要:

When using an LLM through an API provider, users expect the served model to remain consistent over time, a property crucial for the reliability of downstream applications and the reproducibility of research. Existing audit methods are too costly to apply at regular time intervals to the wide range of available LLM APIs. This means that model updates are left largely unmonitored in practice. In this work, we show that while LLM log probabilities (logprobs) are usually non-deterministic, they can still be used as the basis for cost-effective continuous monitoring of LLM APIs. We apply a simple statistical test based on the average value of each token logprob, requesting only a single token of output. This is enough to detect changes as small as one step of fine-tuning, making this approach more sensitive than existing methods while being 1,000x cheaper. We introduce the TinyChange benchmark as a way to measure the sensitivity of audit methods in the context of small, realistic model changes.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑