MCP
MH

Michael Hahn

102 papers in the library

Papers

30
Quantitative Generalization Bounds for Multi-Layer Transformers: A Few Long Strings can Beat Many Short Ones
Marius HenryMichael Rizvi-MartelMichael Hahn
This paper provides a unified theoretical treatment of in-distribution statistical generalization and length generalization for fixed-precision multi-layer transformers. It derives quantitative generalization bounds depending on model parameter sizes, the quantization space, and the alphabet size of sequences. The analysis reveals a trade-off between the number of training samples and their length: increasing training length can be exponentially more efficient than increasing sample size. Experiments support these predictions.
arXivarXiv · · October 26, 2026
0
Hidden Reasoning Must Leak, but Need Not Be Readable: Fundamental Opportunities and Limits for Chain-of-Thought Monitoring
Mohammadali MohammadkhaniMadhava KrishnaYash SarrofMichael Hahn
This paper studies whether reasoning models can hide computation from chain-of-thought (CoT) monitors. The authors show the answer depends on task difficulty and model size: simple computations can be performed covertly, but beyond a difficulty threshold that grows with model size, solving the task necessarily leaks near-linear information about the hidden input into the CoT. Yet under plausible cryptographic assumptions, even a one-layer Transformer can encrypt its reasoning online so no polynomial-time monitor can extract the hidden computation, meaning leakage need not be readable. Theoretical and empirical results together frame both opportunities and limits of CoT monitoring.
arXivarXiv · · September 29, 2026
0
0
Provably Learning Attention with Queries
Satwik BhattamishraKulin ShahMichael HahnVarun Kanade
This paper studies learning Transformer-based sequence models from black-box output queries, where the learner adaptively queries the oracle with vector sequences. Its central result is a provable query-complexity characterization for single-head attention: an elementary algorithm learns a width-$d$ single-head attention regressor with $O(d^2)$ queries, improvable to $O(rd)$ via compressed sensing when the head dimension $r \ll d$, and the single-head method adapts to one-layer Transformers given an algorithm for learning ReLU feedforward networks. Under mild norm and margin conditions, parameters can be estimated to $\varepsilon$ accuracy with polynomially many queries from noisy outputs. Multi-head attention, however, is shown to be non-identifiable from queries, so learnability in the same sense requires additional structural assumptions, which are discussed.
PMLRPMLR · September 29, 2026
0
A Unified Formal Framework To Predict Length Generalization in Linear RNNs, Transformers and Hybrid Models
Yash SarrofFlorian KandraAndy YangAleksandra BakalovaMichael Rizvi-MartelMichael Hahn
Existing formal frameworks for predicting length generalization, such as those based on CRASP, cover Transformers but not Linear RNNs (LRNNs) or hybrid models combining the two. The paper introduces a unified RASP variant whose different slices characterize the length generalization behavior of all three model families, extending earlier Transformer guarantees to LRNNs and hybrids. Within this framework, the models length generalize on different task classes, yet all are globally constrained to sublinear communication complexity, making length generalization on copying, addition, and multiplication unlikely. Tests on standard task suites show the framework predicts empirical performance for all models.
OpenReviewOpenReview · September 18, 2026
0
Algebraic Decomposition Theory for Transformer Length Generalization
Andy YangBlerta VeseliCorentin BarloyMichaël CadilhacAndreas KrebsCharles PapermanHoward StraubingMichael Hahn
This paper gives the first complete characterization of which regular languages transformers can generalize to longer sequences. The authors show that membership in C-RASP, a formalism known to capture transformer length generalization, reduces to an algebraic property of the language's syntactic monoid: iterated wreath products of the integers. This generalizes classical Krohn-Rhodes decomposition from finite semigroups to the infinite additive group $\mathbb{Z}$, yielding a polynomial-time decision algorithm. Experiments confirm the theory's accuracy over existing classifications.
arXivarXiv · · August 13, 2026
0
0
From Expressivity to Sample Complexity: Narrow Teachers for Transformers via C-RASP
Michael Rizvi-MartelSatwik BhattamishraGuillaume RabusseauMichael Hahn
This paper advances the theoretical understanding of Transformers by addressing the gap between expressivity and learnability. The authors propose preliminary sample complexity bounds for learning C-RASP constructions, a class of handcrafted solutions that characterize Transformer expressivity. By analyzing the loss landscape, they establish conditions under which these constructions are learnable, providing a first step toward characterizing which tasks Transformers can not only represent but also efficiently learn from data.
arXivarXiv · · July 13, 2026
0
0
Systematicity between Forms and Meanings across Languages Supports Efficient Communication
Doreen OsmelakYang XuMichael HahnKate McCurdy
Languages vary widely in how meanings map to word forms. These mappings have been found to support efficient communication; however, this theory does not account for systematic relations within word forms. We examine how a restricted set of grammatical meanings (e.g. person, number) are expressed on verbs and pronouns across typologically diverse languages. Consistent with prior work, we find that verb and pronoun forms are shaped by competing communicative pressures for simplicity (minimizing the inventory of grammatical distinctions) and accuracy (enabling recovery of intended meanings). Crucially, our proposed model uses a novel measure of complexity (inverse of simplicity) based on the learnability of meaning-to-form mappings. This innovation captures fine-grained regularities in linguistic form, allowing better discrimination between attested and unattested systems, and establishes a new connection from efficient communication theory to systematicity in natural language.
ACL AnthologyACL Anthology · July 2026
0
System-Mediated Attention Imbalances Make Vision-Language Models Say Yes
Tsan Tsai ChanVarsha SureshAnisha SahaMichael HahnVera Demberg
Vision-language model (VLM) hallucination is commonly linked to imbalanced allocation of attention across input modalities: system, image and text. However, existing mitigation strategies tend towards an image-centric interpretation of these imbalances, often prioritising increased image attention while giving less consideration to the roles of the other modalities. In this study, we evaluate a more holistic, system-mediated account, which attributes these imbalances to functionally redundant system weights that reduce attention to image and textual inputs. We show that this framework offers a useful empirical perspective on the yes-bias, a common form of hallucination in which VLMs indiscriminately respond ‘yes’. Causally redistributing attention from the system modality to image and textual inputs substantially suppresses this bias, often outperforming existing approaches. We further present evidence suggesting that system-mediated attention imbalances contribute to the yes-bias by encouraging a default reliance on coarse input representations, which are effective for some tasks but ill-suited to others. Taken together, these findings firmly establish system attention as a key factor in VLM hallucination and highlight its potential as a lever for mitigation.
ACL AnthologyACL Anthology · July 2026
0
Understanding the Parameter Space Geometry of Transformers Encoding Boolean Functions
Blanka KöverAlexandra ButoiAnej SveteMichael HahnRyan Cotterell
The paper explains why transformers fail to learn sensitive functions like PARITY, even when expressible. By shifting focus from average sensitivity to the full sensitivity profile, the authors prove that the parameter-space region representing such functions is vanishingly small: randomly initialized transformers almost surely compute functions with low-sensitivity strings, making any function lacking such strings provably unlearnable.
arXivarXiv · · June 7, 2026
0
0
How Few-Shot Examples Add Up: A Causal Decomposition of Function Vectors in In-Context Learning
Entang WangYiwei WangAleksandra BakalovaMichael Hahn
This paper decomposes the function vector (FV) in few-shot in-context learning into a linear combination of example-level sub-FVs, showing that contributions from individual demonstrations are additive and composable. Beyond additivity, examples are contextualized: attention shifts toward more informative and less ambiguous demonstrations based on prior examples. A causal decomposition isolates Query-Key routing from Value updates, attributing the most consistent FV improvements to Query-Key alignment, especially in ambiguous settings, whereas Value-mediated effects are heterogeneous. This unifies additive superposition with context-dependent attention reweighting into a mechanistic account of few-shot ICL.
arXivarXiv · · May 15, 2026
0
0
On the Ability of Transformers to Verify Plans
Yash SarrofYupei DuKatharina SteinAlexander KollerSylvie ThiebauxMichael Hahn
This paper analyzes whether decoder-only transformers can verify that a given plan correctly solves a planning instance, focusing on the general setting where the number of objects, and hence the effective input alphabet, grows at test time. To handle simultaneous growth in sequence length and vocabulary size, the authors introduce C*-RASP, an extension of C-RASP that yields length-generalization guarantees for transformers. Using it, they identify a large class of classical planning domains in which transformers can provably learn to verify long plans, and structural properties that significantly affect the learnability of length-generalizable solutions; empirical experiments corroborate the theory.
OpenReviewOpenReview · · May 8, 2026
0
The Bayesian Origin of the Probability Weighting Function in Human Representation of Probabilities
Xin TongThi Thu Uyen HoangXue-Xin WeiMichael Hahn
The authors explain the long-documented inverse-S pattern in human probability judgment with a Bayesian encoding–decoding account in which probabilities are represented by noisy internal signals and decoded by Bayes-risk minimization. For bounded probability stimuli, they show the distortion decomposes into boundary regression, likelihood repulsion, and prior attraction, implying that the inverse-S weighting pattern requires encoding precision to be U-shaped, with greater sensitivity near 0 and 1. This U-shape is recovered from data across relative-frequency judgment, lottery pricing, and risky choice without imposing a functional form on the encoding, outperforming deterministic weighting functions, bounded log-odds models, uniform-encoding Bayesian accounts, and matched efficient-coding models on held-out data. In a new dot-probability experiment with bimodal stimulus statistics, the recovered prior tracks the new distribution while encoding stays U-shaped. The inverse-S weighting function is thus characterized as the joint product of a stable U-shaped encoding and a flexible prior, integrated by optimal Bayesian decoding.
OpenReviewOpenReview · · May 3, 2026
0
A Point-Spread Function for the Extreme Ultraviolet High-Resolution Imager on board Solar Orbiter
Stefan J. HofmeisterEmil KraaikampSergei ShestovLuca TeriacaAlexandros KoukrasCis VerbeeckFrederic AuchereDaniel W. SavinMichael HahnDavid Berghmans
We present the point-spread function (PSF) of the Extreme Ultraviolet High-Resolution Imager (HRIEUV) on Solar Orbiter, which observes the Sun at 174 Å. The PSF combines a diffraction component derived from mechanical drawings—showing that 26% of incoming light is diffracted, mostly by the entrance-filter mounting and mesh—and a diffuse scattering component fitted during the 2023 Mercury transit, described by a softened power law that scatters 42% of light. In total, 57% of light is redistributed; deconvolution with this PSF improves image quality and photometric accuracy, increasing bright-structure intensity by up to 40% and decreasing dark-structure intensity by up to 85%.
arXivarXiv · · May 2, 2026
0
SafeReview: Defending LLM-based Review Systems Against Adversarial Hidden Prompts
Yuan XinYixuan WengMinjun ZhuYing LingChengwei QinMichael HahnMichael BackesYue ZhangLinyi Yang
The paper introduces SafeReview, a framework that defends LLM-based peer review against adversarial hidden prompts. It jointly trains a Generator to craft attack prompts and a Defender to detect them, using a loss function inspired by Information Retrieval GANs. This co-evolution forces the Defender to adapt to continuously improving attacks, yielding significantly stronger resilience than static defenses and establishing a foundation for securing review integrity.
arXivarXiv · · April 29, 2026
0
5
Barriers to Universal Reasoning With Transformers (And How to Overcome Them)
Oliver KrausYash SarrofYuekun YaoAlexander KollerMichael Hahn
This paper studies length generalization of Transformers with Chain-of-Thought (CoT). It shows that under standard positional encodings and a finite alphabet, CoT cannot solve problems beyond $TC^0$ when requiring length-generalizable learnability, negating prior expressivity claims. However, by allowing the vocabulary to grow with problem size, the authors construct a length-generalizable Turing machine simulation where CoT length is linear in runtime. The construction overcomes two barriers—repeated copying and last-occurrence retrieval—by using unique signpost tokens per tape position and logging only value changes, enabling recovery of current tape symbols via counts. Experiments confirm that these principles improve length generalization.
arXivarXiv · · April 28, 2026
0
0
Algebraic Decomposition Theory for Transformer Length Generalization
Andy YangBlerta VeseliCorentin BarloyMichaël CadilhacAndreas KrebsCharles PapermanHoward StraubingMichael Hahn
This paper gives the first complete characterization of which regular languages transformers length-generalize on, plus a polynomial-time decision algorithm in the size of the language's syntactic monoid. The key technical move is generalizing classical finite-semigroup decomposition theory to the infinite additive group of the integers, since the standard Krohn-Rhodes building blocks fail for C-RASP, the formalism capturing length generalization. Experiments confirm this theory predicts transformer behavior more accurately than existing classifications.
OpenReviewOpenReview · · March 27, 2026
0
Barriers to Universal Reasoning with Transformers (and How to Overcome them)
Oliver KrausYash SarrofYuekun YaoAlexander KollerMichael Hahn
This paper shows that, under standard positional encodings and a finite alphabet, Transformers with Chain-of-Thought cannot length-generalize beyond $TC^0$, negating the usual expressivity benefits when learnability is the stricter requirement. Allowing the vocabulary to grow with problem size restores a length-generalizable simulation of Turing machines with linear CoT length. The construction overcomes two obstacles—repeated copying and last-occurrence retrieval—by assigning each tape position a unique signpost token and logging only value changes, recovering the current symbol via counts. Experiments confirm these encodings improve length generalization on hard problems.
OpenReviewOpenReview · · March 26, 2026
0
On the Ability of Transformers to Verify Plans
Yash SarrofYupei DuKatharina SteinAlexander KollerSylvie ThiébauxMichael Hahn
This paper analyzes the ability of decoder-only transformers to verify plans in classical planning domains. The authors introduce C*-RASP, an extension of C-RASP, to model settings where both the number of objects (and thus vocabulary size) and sequence length grow at test time. They prove that for a large class of such domains, transformers can learn to generalize to longer plans, and identify structural properties that affect the learnability of length-generalizing solutions. Experiments support the theoretical findings.
arXivarXiv · · March 20, 2026
0
0
Understanding the Emergence of Seemingly Useless Features in Next-Token Predictors
Mark RofinJalal NaghiyevMichael Hahn
This paper identifies which components of the gradient signal from next-token prediction cause Transformers to learn abstract features that appear redundant for immediate next-token prediction. The authors propose a method to estimate the influence of those gradient components on feature emergence. After validating on toy tasks, they apply it to OthelloGPT and a small language model, and then to a pretrained LLM, finding that features with extremely high or low future-token influence relate to formal reasoning domains like code.
arXivarXiv · · March 14, 2026
0
1
Discovering Interpretable Algorithms by Decompiling Transformers to RASP
Xinting HuangAleksandra BakalovaSatwik BhattamishraWilliam MerrillMichael Hahn
We present a method that decompiles a trained Transformer into a faithful RASP program, then applies causal interventions to isolate a small sufficient sub-program. On small Transformers trained on algorithmic and formal language tasks, this approach recovers simple, interpretable RASP programs from length-generalizing models, providing the most direct evidence yet that such Transformers internally implement simple programs in the RASP family.
arXivarXiv · · February 9, 2026
0
2
Discovering Interpretable Algorithms by Decompiling Transformers to RASP
Xinting HuangAleksandra BakalovaSatwik BhattamishraWilliam MerrillMichael Hahn
This paper presents a general method to extract simple, interpretable programs from trained Transformers by faithfully re-parameterizing the model as a RASP program and applying causal interventions to discover a small sufficient sub-program. Experiments on small Transformers trained on algorithmic and formal language tasks show that their method often recovers simple RASP programs from length-generalizing transformers, providing direct evidence that such models internally implement simple RASP programs.
OpenReviewOpenReview · · February 6, 2026
0
Provably Learning Attention with Queries
Satwik BhattamishraKulin ShahMichael HahnVarun Kanade
This paper studies the problem of learning a single-head attention-based regressor from black-box queries. For a model of width $d$, the authors propose an algorithm that learns the attention parameters using $O(d^2)$ queries. When the head dimension $r \ll d$, the query complexity improves to $O(rd)$ via compressed sensing. The algorithm can be extended to one-layer Transformers given a ReLU feedforward network learner. Multi-head attention is shown to be not identifiable from queries, making learnability impossible without additional assumptions.
arXivarXiv · · January 23, 2026
0
2
Systematicity between Forms and Meanings across Languages Supports Efficient Communication
Doreen OsmelakYang XuMichael HahnKate McCurdy
This paper extends efficient communication theory to account for systematic relations within word forms. The authors propose a complexity measure based on the learnability of meaning-to-form mappings, grounded in competing pressures for simplicity (minimizing grammatical distinctions) and accuracy (recovering intended meanings). Applied to verb and pronoun forms across typologically diverse languages, the model captures fine-grained regularities that distinguish attested from unattested grammatical systems, establishing a new link between efficient communication and systematicity in natural language.
arXivarXiv · · January 23, 2026
0
4
On the Ability of Transformers to Verify Plans
Yash SarrofYupei DuKatharina SteinAlexander KollerSylvie ThiebauxMichael Hahn
This paper analyzes decoder-only transformers' ability to verify whether a given plan solves a planning instance, focusing on length generalization when both sequence length and object-derived vocabulary grow. The authors introduce C*-RASP, an extension of C-RASP, to establish generalization guarantees under this simultaneous growth. They identify structural properties affecting learnability and prove transformers can learn to verify long plans in a large class of classical planning domains. Empirical experiments corroborate these theoretical findings, taking steps toward explaining when generalization in such tasks should be expected.
OpenReviewOpenReview · · January 23, 2026
0
Provably Learning Attention with Queries
Satwik BhattamishraKulin ShahMichael HahnVarun Kanade
This paper studies learning a single-head attention-based regressor with black-box queries to its outputs. For width $d$, an elementary algorithm learns the parameters with $O(d^2)$ queries, reducible to $O(rd)$ when head dimension $r \ll d$ via compressed sensing. The approach extends to one-layer Transformers if ReLU feedforward networks are learnable, and remains robust to noisy outputs under mild conditions. Multi-head attention is shown unidentifiable from queries, requiring additional assumptions for learnability.
OpenReviewOpenReview · · January 23, 2026
0
Understanding the Parameter Space Volume of Transformers Encoding Boolean Functions
Blanka KövérAlexandra ButoiAnej SveteMichael HahnRyan Cotterell
Transformers often fail to learn simple, provably expressible Boolean functions, especially sensitive ones like Parity. Prior work linked this learnability-expressivity gap to a bias toward low average sensitivity, but the mechanism was unclear. This paper examines the volume of transformer parameter space and proves that sensitive functions, even when representable, occupy a vanishingly small region that random initialization almost surely misses. Shifting focus to the full sensitivity profile, the authors show randomly initialized transformers almost surely compute functions with low-sensitivity strings; any function lacking such strings is provably unlearnable.
OpenReviewOpenReview · January 23, 2026
0
1
How Few-Shot Examples Add Up: A Causal Decomposition of Function Vectors in In-Context Learning
Entang WangYiwei WangAleksandra BakalovaMichael Hahn
This paper explains how few-shot prompts shape a model's function vector (FV) during in-context learning. Across tasks and models, an $n$-shot FV is well-approximated by a linear combination of example-level sub-FVs, showing additive contributions from individual demonstrations. Beyond additivity, models contextualize examples based on prior ones, adaptively reweighting which demonstrations dominate the FV: attention shifts toward more informative, less ambiguous examples. A causal decomposition separates Query–Key routing from Value updates, finding that contextualization's most consistent contributions to FV quality come from Query–Key alignment—especially in ambiguous settings—while Value-mediated effects are more heterogeneous.
OpenReviewOpenReview · · January 22, 2026
0
Discovering Interpretable Algorithms by Decompiling Transformers to RASP
Xinting HuangAleksandra BakalovaSatwik BhattamishraWilliam MerrillMichael Hahn
This paper presents a general method to extract simple, interpretable RASP programs from trained Transformers. The approach faithfully re-parameterizes a Transformer as a RASP program, then applies causal interventions to identify a small sufficient sub-program. Experiments on small Transformers trained on algorithmic and formal language tasks show that the method often recovers simple RASP programs, especially from length-generalizing models. The authors claim this provides the most direct evidence to date that Transformers internally implement such simple programs.
OpenReviewOpenReview · · January 22, 2026
0
System-Mediated Attention Imbalances Make Vision-Language Models Say Yes
Tsan Tsai ChanVarsha SureshAnisha SahaMichael HahnVera Demberg
Vision-language model (VLM) hallucination, particularly the 'yes-bias' where models indiscriminately respond 'yes', is attributed to system-mediated attention imbalances. This holistic account posits that functionally redundant system weights reduce attention to image and textual inputs. Causally redistributing attention from the system modality to image and textual inputs substantially suppresses this bias, often outperforming existing approaches. This establishes system attention as a key factor in VLM hallucination and a lever for mitigation.
arXivarXiv · · January 18, 2026
0
0
Softmax Transformers are Turing-Complete
Hongjian JiangMichael HahnGeorg ZetzscheAnthony Widjaja Lin
A previous conjecture that hard-attention chain-of-thought (CoT) transformers are Turing-complete left open the case of softmax-attention CoT transformers. This paper proves that length-generalizable softmax CoT transformers are Turing-complete. The proof uses a CoT extension of Counting RASP (C-RASP), which corresponds to such transformers. For causal masking with a unary alphabet (or letter-bounded languages), CoT C-RASP is Turing-complete; adding relative positional encoding yields completeness for arbitrary languages. The theory is validated by training transformers on tasks requiring complex arithmetic reasoning.
arXivarXiv · · November 25, 2025
0
16
Authors with the same name
Michael Hahn #0001 · 36 papers
Michael Hahn #0005 · 1 papers
Frequent collaborators
Daniel Wolf Savin (18)
Satwik Bhattamishra (14)
Xinting Huang (13)
Yash Sarrof (12)
Aleksandra Bakalova (9)
Alexander Koller (7)
Michael Rizvi-Martel (6)
Varun Kanade (6)
Daniel W. Savin (6)
Vera Demberg (5)
Yupei Du (5)
Thi Thu Uyen Hoang (5)