@inproceedings{ed399d0aa17c426b99b7cb663c0dee96,
title = "Copy Automata as a Diagnostic Tool for Pattern-Copying in Transformers: Hierarchy, Bounds, and the Limits of Hard-Attention Theory",
abstract = "We study pattern copying in Transformers through Copy Automata, deterministic finite automata equipped with a copy output function, used as a diagnostic abstraction rather than a predictive theory We establish three results: an Encoding Theorem for bounded-precision Transformers, a Hard-Attention Separation Theorem giving task-specific head-count requirements, and a counting bound for level-k identification Empirically, small-scale and GPT-2-scale experiments show that Level-3 context-dependent bijections remain the hardest case Five probes, covering gradients, non-gradient solvers, structured mappings, capacity scaling, and induction-score recovery, suggest that Level-3 failure is better explained by a combination of soft-attention capacity mismatch and optimisation difficulty than by raw hard-attention capacity alone We summarise this gap with a soft-attention capacity-discount heuristic The main contribution is a diagnostic account of where hard-attention theory breaks down for softmax Transformers.",
keywords = "Copy Automata, Hard Attention, In-context Learning, Induction Heads, Mechanistic Interpretability, Transformers",
author = "Yanming Cheng and Di Zhang",
note = "Publisher Copyright: {\textcopyright} The Author(s), under exclusive license to Springer Nature Singapore Pte Ltd. 2027.; 22nd International Conference on Intelligent Computing, ICIC 2026 ; Conference date: 22-07-2026 Through 26-07-2026",
year = "2027",
doi = "10.1007/978-981-92-3410-3\_22",
language = "English",
isbn = "9789819234097",
series = "Lecture Notes in Computer Science",
publisher = "Springer Science and Business Media Deutschland GmbH",
pages = "251--263",
editor = "De-Shuang Huang and Qinhu Zhang and Yijie Pan and Chuanlei Zhang and Wei Chen and Bo Li and Wenzheng Bao and Prashan Premaratne",
booktitle = "Advanced Intelligent Computing Technology and Applications - 22nd International Conference on Intelligent Computing, ICIC 2026, Proceedings",
}