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

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

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

Chain of thought LLMs

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

RNN simulation of PFSAs

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

2PDA simulating a PTM

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

PCFG Parsing

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.