Tim Vieira

Tim Vieira

ETH Zurich
5 previous affiliations
47Machine learning papers tracked by Lacuna
Is this you?

Research Overview

Tim Vieira focuses on natural language processing, programming languages, and the design of efficient algorithms for structured prediction. His early work explored speed-accuracy trade-offs and dynamic programming optimizations for syntactic parsing. More recently, his research addresses the foundational mechanics of large language models, emphasizing tokenization, controlled generation, and exact inference techniques.

Research Trajectory

Vieira's early research investigated the computational bottlenecks of structured prediction in natural language processing. He contributed to Grammarless Parsing for Joint Inference (2012), which explored the challenge of Mitigating Combinatorial Explosion in Multi-Label Classification and the broader area of The Speed-Accuracy Trade-Off in Syntactic Parsing. Continuing this focus on efficiency, he presented Speed-Accuracy Tradeoffs in Tagging with Variable-Order CRFs and Structured Sparsity (2016), addressing the state space explosion inherent in higher-order sequence modeling.

A major theme in his subsequent work is the optimization and analysis of dynamic programming algorithms. He introduced Dyna: toward a self-optimizing declarative language for machine learning applications (2017), proposing a reinforcement learning framework to adaptively select execution strategies for declarative programs. This interest in adaptive and efficient execution extended to parsing, where he explored end-to-end training for pruning policies in Learning to Prune: Exploring the Frontier of Fast and Accurate Parsing (2017). He further formalized the search for algorithmic efficiency in Searching for More Efficient Dynamic Programs (2021).

Around this time, his research also delved into the mathematical foundations of sequence models and finite-state machines. He collaborated on If beam search is the answer, what was the question? (2020), which examined the theoretical underpinnings of decoding strategies. In the realm of formal languages, he co-authored Higher-order Derivatives of Weighted Finite-state Machines (2021), introducing algorithms to compute covariance and entropy gradients efficiently. He also contributed to Efficient Sampling of Dependency Structure (2021), advancing research directions such as Scaling Syntactic Parsing Beyond Cubic Complexity and utilizing techniques in the area of Incremental Matrix Inversion via Rank One Updates.

Vieira's work frequently bridges classical formal language theory with modern computational needs. He guided research on An Exploration of Left-Corner Transformations (2023), generalizing transformations to support semiring-weighted production rules—a contribution relevant to the problem of Ensuring Termination in Left Recursive Grammars. Expanding on his earlier work with the Dyna language, he co-developed a system for the static analysis of dynamic programs in Automating the Analysis of Parsing Algorithms (and other Dynamic Programs) (2025), which automatically infers tight asymptotic complexity bounds.

In recent years, Vieira has applied his expertise in exact inference and formal languages to the mechanics of large language models (LLMs). A significant portion of this work addresses the friction between subword tokenization and character-level generation. He detailed these issues in From Language Models over Tokens to Language Models over Characters (2025) and proposed solutions to reclaim wasted probability mass in Language Models over Canonical Byte-Pair Encodings (2025).

He has also focused heavily on constrained and controlled generation, mitigating issues related to the research direction of The Computational Overhead of Lookahead Decoding. In Syntactic Control of Language Models by Posterior Inference (2025), he utilized Sequential Monte Carlo sampling to enforce strict syntactic templates. He further accelerated constrained text generation through adaptive rejection sampling in Fast Controlled Generation from Language Models with Adaptive Weighted Rejection Sampling (2025). Additionally, Vieira has investigated the fundamental metrics used to train and align LLMs. He collaborated on Better Estimation of the Kullback--Leibler Divergence Between Language Models (2025), introducing a Rao-Blackwellized estimator to stabilize reinforcement learning loops. Most recently, he formalized the composition of neural models with finite-state transducers in Transducing Language Models (2026), enabling pretrained models to output novel formats—such as converting DNA to amino acids—without retraining.

Current Directions

Recent work investigates the intersection of formal language theory, exact inference, and modern large language models. The most recent papers in the evidence address the structural limitations of subword tokenization and the computational challenges of constrained text generation. By treating language models as probabilistic priors and applying classical finite-state transducer theory or Sequential Monte Carlo methods, this research aims to enforce strict syntactic and semantic control over neural generation. Furthermore, ongoing efforts focus on developing lower-variance estimators for model alignment and creating automated static analysis tools to derive the complexity bounds of dynamic programming algorithms.

Profile updated

See something wrong? Report a mistake