Lune

摘要

Counting properties (e.g. determining whether certain tokens occur more than other tokens in a given input text) have played a significant role in the study of expressiveness of transformers. In this paper, we provide a formal framework for investigating the counting power of transformers. We argue that all existing results demonstrate transformers' expressivity only for (semi-)linear counting properties, i.e., which are expressible as a boolean combination of linear inequalities. Our main result is that transformers can express counting properties that are highly nonlinear. More precisely, we prove that transformers can capture all semialgebraic counting properties, i.e., expressible as a boolean combination of arbitrary multivariate polynomials (of any degree). Among others, these generalize the counting properties that can be captured by C-RASP softmax transformers, which capture only linear counting properties. To complement this result, we exhibit a natural subclass of (softmax) transformers that completely characterizes semialgebraic counting properties. Through connections with the Hilbert's tenth problem, this expressivity of transformers also yields a new undecidability result for analyzing an extremely simple transformer model -- surprisingly with neither positional encodings (i.e. NoPE-transformers) nor masking. We also experimentally validate trainability of such counting properties.

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 3 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • What Algorithms can Transformers Learn? A Study in Length Generalization 引用了 Exploring Length Generalization in Large Language Models
  • What Algorithms can Transformers Learn? A Study in Length Generalization 引用了 Neural Networks and the Chomsky Hierarchy
  • Length Generalization Bounds for Transformers 引用了 What Algorithms can Transformers Learn? A Study in Length Generalization
  • Length Generalization Bounds for Transformers 引用了 A Logic for Expressing Log-Precision Transformers
  • Length Generalization Bounds for Transformers 引用了 Masked Hard-Attention Transformers Recognize Exactly the Star-Free Languages
  • Length Generalization Bounds for Transformers 引用了 Transformers are Inherently Succinct
  • Transformers are Inherently Succinct 引用了 Length Generalization Bounds for Transformers
  • Length Generalization Bounds for Transformers 引用了 Exploring Length Generalization in Large Language Models
  • Length Generalization Bounds for Transformers 引用了 Neural Networks and the Chomsky Hierarchy
  • Transformers are Inherently Succinct 引用了 What Algorithms can Transformers Learn? A Study in Length Generalization
  • Transformers are Inherently Succinct 引用了 Masked Hard-Attention Transformers Recognize Exactly the Star-Free Languages
  • Neural Networks and the Chomsky Hierarchy 引用了 Exploring Length Generalization in Large Language Models
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper3

  1. Transformers are Inherently SuccinctPascal Bergsträßer, Ryan Cotterell, Anthony W. LinICLR 2026 · 5 次引用
  2. Length Generalization Bounds for TransformersAndy Yang, Pascal Bergsträßer, Georg Zetzsche, David Chiang 等ICML 2026
  3. MeshFlow: Mesh Generation with Equivariant Flow MatchingQi Sun, Kiyohiro Nakayama, Jing Nathan Yan, Qixing Huang 等SIGGRAPH 2026

它引用的 Paper15

  1. Exploring Length Generalization in Large Language ModelsCem Anil, Yuhuai Wu, Anders Andreassen, Aitor Lewkowycz 等NeurIPS 2022 · 267 次引用
  2. What Algorithms can Transformers Learn? A Study in Length GeneralizationHattie Zhou, Arwen Bradley, Etai Littwin, Noam Razin 等ICLR 2024 · 189 次引用
  3. A Logic for Expressing Log-Precision TransformersWilliam Merrill, Ashish SabharwalNeurIPS 2023 · 87 次引用
  4. Masked Hard-Attention Transformers Recognize Exactly the Star-Free LanguagesAndy Yang, David Chiang, Dana AngluinNeurIPS 2024 · 58 次引用
  5. Neural Networks and the Chomsky HierarchyGrégoire Delétang, Anian Ruoss, Jordi Grau-Moya, Tim Genewein 等ICLR 2023 · 45 次引用

相关 Paper

  1. Characterizing the Expressivity of Fixed-Precision Transformer Language ModelsJiaoda Li, Ryan CotterellNeurIPS 2025 · 18 次引用
  2. Softmax Transformers are Turing-CompleteHongjian Jiang, Michael Hahn, Georg Zetzsche, Anthony W. LinICLR 2026 · 12 次引用
  3. Knee-Deep in C-RASP: A Transformer Depth HierarchyAndy Yang, Michaël Cadilhac, David ChiangNeurIPS 2025 · 15 次引用
  4. On the Ability and Limitations of Transformers to Recognize Formal LanguagesSatwik Bhattamishra, Kabir Ahuja, Navin GoyalEMNLP 2020 · 7 次引用
  5. The Power of Hard Attention Transformers on Data Sequences: A formal language theoretic perspectivePascal Bergsträßer, Chris Köcher, Anthony Widjaja Lin, Georg ZetzscheNeurIPS 2024 · 7 次引用
黄昏的海面,两侧是细线勾勒的悬崖