Franz Nowak
About
I am a PhD student in Computer Science and Natural Language Processing at ETH Zürich, working at rycolab. I studied Computer Science at Cambridge, then spent two years working in the software industry before returning to academia for a master’s degree and PhD at ETH.
In my research, I mainly focus on using formal languages and computation theory to explore the capabilities of different LLM architectures.
Interests
- Formal language theory applied to neural LMs (e.g. showing that transformers can recognize palindromes)
- Biologically inspired machine learning (like predictive coding)
Collaborations
I am currently looking for motivated master’s students who would like to work on the formal expressivity of neural sequence models. If you are interested, send me an email!
News
- Sep 2025 - Paper accepted at NeurIPS 2025: Bridging Expressivity and Scalability with Adaptive Unitary SSMs
- Jul 2025 - Tutorial talk at ICML 2025: The Underlying Logic of Language Models: Structural Decomposition.
- June 2025 - Paper accepted at ACL 2025 in Vienna: The Harmonic Structure of Information Contours
- Oct 2024 - Two papers accepted at EMNLP 2024 in Miami: Predicting Surprisal Contours in Long-form Discourse and An L* Algorithm for Deterministic Weighted Regular Languages
- Sep 2024 - AICoffeeBreak interview about Turing completeness of neural language models
- Aug 2024 - ACL 2024 Tutorial on the Representational Capacity of Neural Language Models
- May 2024 - Two papers accepted at ACL 2024 in Bangkok: On the Representational Capacity of Neural Language Models with Chain-of-Thought Reasoning and What Languages are Easy to Language-Model?
- Mar 2024 - Paper accepted at NAACL 2024 in Mexico City: Lower Bounds on the Expressivity of Recurrent Neural Language Models
Selected Publications
On the Representational Capacity of Neural Language Models with Chain-of-Thought Reasoning
ACL 2024
Franz Nowak*, Anej Svete*, Alexandra Butoi, and Ryan Cotterell
Large Language Models (LLMs) have been shown to be better at logical reasoning when allowed to output additional tokens. This is known as Chain-of-Thought (CoT) reasoning. We formally investigate how much more powerful Transformer and RNN language models become when doing CoT reasoning compared to real-time generation. We find that Transformers and RNNs with fixed precision can simulate probabilistic FSAs, while with unbounded precision they can simulate probabilistic Turing machines.
Lower Bounds on the Expressivity of Recurrent Neural Language Models
NAACL 2024
Anej Svete*, Franz Nowak*, Anisha Mohamed Sahabdeen, and Ryan Cotterell
Recurrent Neural Networks (RNNs) are more expressive than Transformers as they can keep state over arbitrarily long sequences. This means RNNs, unlike Transformers, can simulate non-deterministic probabilistic finite-state automata (PFSAs) in real time. We show this by construction, providing the weights required to encode PFSAs in an RNN language model.
On the Representational Capacity of Recurrent Neural Language Models
EMNLP 2023
Franz Nowak, Anej Svete, Li Du, and Ryan Cotterell
RNN language models are starting to make a comeback in NLP, showing performance comparable to Transformers. In this work, we investigate the types of language distributions that RNN language models can express. We find that when allowed additional empty tokens, RNNs can simulate a certain type of probabilistic Turing machine, while without them, their expressivity is upper bounded by real-time probabilistic Turing machines.
A Fast Algorithm for Computing Prefix Probabilities
ACL 2023
Franz Nowak and Ryan Cotterell
The first language models were based on prefix-parsing Probabilistic Context-Free Grammars (PCFGs). The classic algorithm for this task is based on the famous CKY algorithm. However, it is not optimally efficient with respect to the grammar size. This paper proposes a speedup of this classic algorithm, resulting in better asymptotic complexity in terms of grammar size.



