arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2606.08998cs.AIcs.CYecon.GNq-fin.EC
收藏

未被选取的令牌:采样、状态与AI智能体输出的变异性

The Token Not Taken: Sampling, State, and the Stochasticity of AI Agents

University of Pittsburgh(匹兹堡大学);Ejento.ai

Muhammad Zia Hydari, Raja Iqbal

AI总结:

本文分析AI智能体系统输出变异性的来源,区分令牌采样的内在随机性与环境、数据等外在因素,并讨论在匹配条件下变异性的可复现性及确定性执行在部署中未必导致相同行为的原因。

摘要:

智能体AI系统在不同运行中可能表现出不同的行为:相同的请求可能产生不同的计划、不同的工具调用、不同的代码编辑或不同的最终答案。这种变异性源于多个常被混淆的层面。基础模型是一个大型预训练模型,通常可适应许多下游任务,将输入上下文映射到输出的预测。在当前许多智能体中,该模型嵌入在一个编排循环中,该循环进行规划、调用工具、观察结果并更新状态。此类系统中一个明确的内在变异性来源是令牌生成:模型计算可能的下一个令牌的分数,分数被转换为概率,解码器可能使用伪随机数生成器采样令牌。一个微小的采样令牌差异随后可能向上传播为不同的工具调用、代码路径、搜索查询或智能体状态。其他变异性来源是令牌采样的外在因素,包括变化的环境、实时数据、服务基础设施、批次效应和数值细节。通过分离这些层面,本文阐明了将智能体AI系统称为随机系统的含义、在匹配条件下这种变异性何时可复现,以及为什么确定性执行在部署环境中不一定意味着相同的行为。

英文摘要:

Agentic AI systems can behave differently across runs: the same request may produce a different plan, a different tool call, a different code edit, or a different final answer. Such variability arises from several layers that are often conflated. At the core of many current agents is a foundation model, a large pretrained model adaptable to many downstream tasks, embedded in an orchestration loop that plans, calls tools, observes results, and updates state. One explicit intrinsic source of variability in such systems is token generation: the model computes scores over possible next tokens, the scores are converted into probabilities, and a decoder may sample tokens using a pseudo-random number generator. A small sampled token difference can then cascade downstream into a different tool call, code path, search query, or agent state. Other sources of variability are extrinsic to token sampling, including changing environments, live data, serving infrastructure, batch effects, and numerical details. By separating these layers, this tutorial clarifies what it means to call agentic AI systems stochastic, when such variability can be reproduced under matched conditions, and why deterministic execution need not imply identical behavior in deployed settings.

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

↑