LLM Complexity: Towards a Computational Complexity View of Large Language Model Inference
Computer Science > Computation and Language arXiv:2611.24943 (cs) [Submitted on 19 Oct 2026] Title: LLM Complexity: Towards a Computational Complexity View of Large Language Model Inference Authors: Yu-Hung Wu, Shao-Xiang Yuan, Chan-Hung Yu, Zih-Ching Chen, Kuan-Hao Huang, Shao-Hua Sun.
计算机科学 > 计算与语言 arXiv:2611.24943 (cs) [提交于 2026 年 10 月 19 日] 标题:LLM 复杂度:迈向大语言模型推理的计算复杂度视角 作者:Yu-Hung Wu, Shao-Xiang Yuan, Chan-Hung Yu, Zih-Ching Chen, Kuan-Hao Huang, Shao-Hua Sun。
Abstract: Computational complexity theory offers a principled framework for characterizing the efficiency of computational problems, and Large Language Models (LLMs) can similarly be viewed as computational systems executing a structured process of input, inference-time compute, and output. In this context, the number of generated tokens emerges as a natural and directly observable proxy for inference-time compute. However, we show that the tempting analogy between LLM token length and classical time complexity does not hold.
摘要:计算复杂度理论为表征计算问题的效率提供了一个原则性框架,大语言模型(LLM)同样可以被视为执行输入、推理时计算和输出这一结构化过程的计算系统。在此背景下,生成的 token 数量成为推理时计算的一种自然且可直接观察的代理指标。然而,我们证明了 LLM 的 token 长度与经典时间复杂度之间看似诱人的类比并不成立。
We disprove the hypothesis that inference-time token usage aligns monotonically with classical time complexity, demonstrating a fundamental divergence grounded in how LLMs actually allocate computation during inference. To this end, we introduce LLM Complexity, a new metric designed to quantify problem complexity from the perspective of LLMs by characterizing the area bounded above by the accuracy-token curve.
我们反驳了“推理时 token 使用量与经典时间复杂度单调对齐”的假设,并证明了这种差异源于 LLM 在推理过程中实际分配计算资源的方式。为此,我们引入了“LLM 复杂度”,这是一种旨在从 LLM 视角量化问题复杂度的新指标,通过表征准确率-token 曲线下方的面积来进行衡量。
We find that diverse LLMs induce highly consistent task rankings under LLM Complexity, indicating that the metric captures stable notions of difficulty across models. We leverage this property to construct an easy-to-hard curriculum for supervised fine-tuning, which improves accuracy while reducing token consumption. Finally, we demonstrate that LLM Complexity generalizes to real-world tasks, producing more stable cross-model correlations than human-annotated difficulty labels.
我们发现,不同的 LLM 在“LLM 复杂度”下会产生高度一致的任务排名,这表明该指标捕捉到了跨模型下稳定的难度概念。我们利用这一特性构建了用于监督微调的“由易到难”课程,在提高准确率的同时减少了 token 消耗。最后,我们证明了“LLM 复杂度”可以推广到现实世界的任务中,相比人工标注的难度标签,它能产生更稳定的跨模型相关性。