NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

James Townsend

University of Amsterdam
1 previous affiliation
15Machine learning papers tracked by Lacuna
Is this you?

Research Overview

James Townsend focuses on lossless compression, deep generative models, and approximate inference. His trajectory spans the development of bits-back coding techniques for latent variable models to the efficient compression of unordered data structures like graphs and multisets. Recently, his work investigates the application of linear recurrent neural networks to autoregressive audio generation.

Research Trajectory

Townsend's early research involved developing software systems for machine learning, notably contributing to Pymanopt: A Python Toolbox for Optimization on Manifolds using Automatic Differentiation. This work integrated automatic differentiation to simplify complex optimization problems on geometric structures, allowing researchers to experiment with manifold optimization without manual gradient derivation.

His focus subsequently shifted toward deep generative models and information theory, specifically the area of Bits-Back Coding for Latent Variable Compression. He provided foundational educational resources in this space with A tutorial on the range variant of asymmetric numeral systems, which detailed how the range variant (rANS) achieves near-optimal compression while operating as a Last-In-First-Out stack. Applying these principles to images, he introduced HiLLoC: lossless image compression with hierarchical latent variable models, advancing the broader field of Lossless Compression via Bits-Back Coding.

He expanded bits-back coding to time-series data in Lossless compression with state space models using bits back coding, generalizing the method to models with latent Markov structures like hidden Markov models and linear Gaussian state space models. He also collaborated on Improving Lossless Compression Rates via Monte Carlo Bits-Back Coding, which demonstrated how to asymptotically close the bitrate gap caused by the KL divergence between approximate and true posteriors using extended space representations.

Parallel to his compression research, Townsend explored the domain of Optimization with Per-Example Gradient Statistics. In Adaptive Optimization with Examplewise Gradients, he proposed a framework that leverages individual sample gradients rather than batch averages, resulting in the "Eve" optimizer which yields more stable second-moment estimates and consistent step sizes during large-batch training.

A major subsequent theme in his trajectory is the research direction of Lossless Compression of Unordered Data Structures. This line of inquiry began with Your Dataset is a Multiset and You Should Compress it Like One, which achieved significant compression gains by treating datasets as multisets and using a latent permutation model to remove redundant ordering information. He continued this work in Compressing Multisets With Large Alphabets.

Addressing the software engineering challenges of compression codecs, he developed Verified Reversible Programming for Verified Lossless Compression. This paper introduced Flipper, a domain-specific language embedded in Agda that uses formal verification to guarantee that generated encoder and decoder programs are perfect inverses, eliminating a common source of bugs in compression software.

Returning to unordered data, Townsend and collaborators tackled massive graphs in One-Shot Compression of Large Edge-Exchangeable Graphs using Bits-Back Coding. This research introduced Random Edge Coding (REC), combining bits-back techniques with a Pólya’s Urn model to compress networks with millions of nodes in quasi-linear time. He then led the development of "shuffle coding" to formalize these approaches, contributing to the area of Symmetry Exploitation via Quotient Space Representations. In Entropy Coding of Unordered Data Structures, his team established a general-purpose method for optimally compressing structures like graphs and JSON by treating arbitrary storage order as a resource. This was operationalized in Practical Shuffle Coding, which provided a high-performance framework capable of compressing billion-edge graphs at unprecedented speeds.

Most recently, his research has expanded into raw audio modeling. In Linear RNNs for autoregressive generation of long music samples, his team investigated the use of deep state space models to capture complex structures across multiple timescales for autoregressive generation.

Current Directions

Recent work investigates the challenges of autoregressive generation for long, complex sequences, particularly in the domain of raw audio and music. This involves pushing the boundaries of deep state space models and linear recurrent neural networks to efficiently capture structure across multiple timescales. By exploring new architectural choices and context-parallelism, this direction seeks to overcome the limitations of traditional causal convolution and self-attention mechanisms when training on extended raw waveforms.

Profile updated

See something wrong? Report a mistake