arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2605.09121cs.LGcs.AIcs.CLcs.ITmath.IT
收藏

基于LLM代理的通信理论框架:成本感知的自适应可靠性

A Communication-Theoretic Framework for LLM Agents: Cost-Aware Adaptive Reliability

INTELLERCE LLC(INTELLERCE公司)

Hamed Omidvar, Vahideh Akhlaghi

AI总结:

本文提出基于通信理论的LLM代理框架,将可靠性技术统一为六种经典运算,通过成本感知路由器实现任务级优化,展示在不同任务中动态分配资源的优势。

摘要:

基于大型语言模型(LLM)的代理依赖多种可靠性技术,如重试、多数投票和自一致性,这些技术在平行发展而非共同分析框架中。我们观察到,LLM在温度T下采样可视为Shannon编码理论中的离散随机信道p(y|x),以此作为通信理论框架的切入点。这些技术是六种经典可靠性运算的特例:多样性组合、混合重传、迭代生成-批评解码、无率采样、结构冗余验证和难度自适应路由。在该框架中,我们给出了两个闭式结果:噪声方差阈值之上,均匀平均优于质量加权平均,以及生成-批评细化的合同性准则,与我们观察到的3B-和14B参数模型之间收缩到发散的转变一致。我们进一步引入了成本感知的语义最近邻路由器,其单一拉格朗日 knob 可在不重新训练的情况下遍历质量-成本前沿。在六个涵盖本地和云模型的69个困难任务配置中,没有固定的模型-技术-预算选择占优,推动了按任务分配。在MMLU、GSM8K和HumanEval的300项困难拆分上,我们的路由器占据完整的经验帕累托前沿:在匹配质量时,其归一化成本比最强固定技术低约56%;在匹配归一化成本时,质量提升约7%(单次解码上26%)。这些结果支持将这些可靠性技术整合到一个由信道编码指导的单层可调模块中。

英文摘要:

Agents built on large language models (LLMs) rely on reliability techniques such as retry, majority voting, and self-consistency developed in parallel rather than within a common analytical framework. We observe that an LLM sampled at temperature $T$ is a discrete stochastic channel $p(y \mid x)$ in the sense of Shannon's coding theory, and use this identity as the entry point for such a framework. Each of these techniques is a special case of one of six classical reliability operators: diversity combining, hybrid retransmission, iterative generator-critic decoding, rateless sampling, structured redundant verification, and difficulty-adaptive routing. Within the framework we give two closed-form results, a noise-variance threshold above which uniform averaging beats quality-weighted averaging and a contractivity criterion for generator-critic refinement, and turn each into a design rule checkable before committing compute. We further introduce a cost-aware semantic-nearest-neighbor router whose single Lagrangian knob traverses the quality-cost frontier without retraining. Across six local and cloud channel configurations, no fixed model-technique-budget choice dominates. On a 300-item hard split of MMLU, GSM8K, and HumanEval, the router occupies the empirical Pareto frontier: at matched quality its normalized cost is $\approx$56% lower than the best fixed technique, and at matched cost it improves quality by $\approx$7% (26% over single-shot decoding). Judge-free grading of 6,900 outputs confirms that the judge tracks correctness at the item level and that the router's advantage over a fixed policy persists at most cost settings; with internal reasoning enabled, the gain of external refinement shrinks but remains significant for our incremental-redundancy operator. These results argue for consolidating reliability techniques into a single tunable layer informed by channel coding.

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

↑