Sean Michael McLeish

University of Maryland, College Park
5 previous affiliations
15Machine learning papers tracked by Lacuna
Is this you?

Research Overview

Sean Michael McLeish focuses on algorithmic reasoning, language modeling, and the scaling of test-time computation. His early work explored how recurrent neural networks and transformer architectures can extrapolate logical and mathematical operations to unseen lengths. Recently, his research investigates latent reasoning and context compression techniques to enhance the efficiency and depth of large language models.

Research Trajectory

Sean Michael McLeish’s research trajectory begins with investigations into how neural networks can reliably synthesize and execute algorithms. In his early work, he explored the capabilities of recurrent neural networks for logical extrapolation. In [[Re] End-to-end Algorithm Synthesis with Recurrent Networks: Logical Extrapolation Without Overthinking](/work/re-end-to-end-algorithm-synthesis-with-recurrent), he extended prior findings to demonstrate that networks equipped with skip connections and progressive loss functions can learn algorithms and generalize to complex problems while avoiding performance degradation.

Expanding this focus to large language models, he evaluated how well these architectures handle procedural tasks. In The CLRS-Text Algorithmic Reasoning Language Benchmark, he and his collaborators converted classical algorithmic execution traces into textual formats. This benchmark revealed that while fine-tuned language models can mimic algorithms on small inputs, they struggle to generalize to larger problems compared to specialized graph neural networks. This work contributed to the broader area of Mitigating Length Extrapolation Failure in Transformers. Exploring alternative solutions to this reasoning gap, he evaluated general-purpose models in Benchmarking ChatGPT on Algorithmic Reasoning. The study showed that models equipped with external tools, such as code interpreters, could outperform specialized neural reasoners, advancing the research direction of Why Generalist Models Outperform Domain Specialists.

To address length generalization directly within transformer architectures, he introduced Abacus Embeddings in Transformers Can Do Arithmetic with the Right Embeddings. By tracking a digit's position relative to the start of a number rather than using absolute sequence positions, this method enabled a model trained on short addition problems to solve significantly longer ones with high accuracy.

Moving into 2025, his research increasingly emphasized scaling laws and the optimization of test-time computation. In Gemstones: A Model Suite for Multi-Faceted Scaling Laws, he investigated scaling principles beyond fixed architectures, providing insights into the area of Why Theoretical FLOPs Fail to Predict Real Latency. He also explored how recurrent mechanisms can decouple parameter count from inference compute. With collaborators, he developed a novel architecture in Scaling up Test-Time Compute with Latent Reasoning: A Recurrent Depth Approach. By looping through internal layers to process information in a continuous latent space, the model improved performance on math and coding tasks simply by increasing internal iterations. This contributed to research directions such as Recurrent Depth and Parameter Sharing in Transformers and Adaptive Computation through Dynamic Depth and Latent Recurrence. Building on these concepts, he explored converting existing architectures in Teaching Pretrained Language Models to Think Deeper with Retrofitted Recurrence, demonstrating that a curriculum of recurrences can increase a model's effective depth and preserve performance while reducing computational costs.

In 2026, his collaborative work expanded into context management and memory consolidation. He participated in the development of Latent Context Language Models in End-to-End Context Compression at Scale, which compress input sequences into latent embeddings to efficiently process long contexts. Additionally, in Language Models Need Sleep, he contributed to a training technique that allows models to consolidate information from limited attention windows into persistent fast weights through offline recurrent passes, improving performance on tasks requiring deep sequential reasoning.

Current Directions

Recent work investigates the optimization of test-time computation and memory management in large language models. The most recent papers in the evidence address the challenge of processing extensive contexts by compressing inputs into latent representations, enabling more efficient long-horizon reasoning. Furthermore, ongoing research explores mechanisms for continual learning and memory consolidation, such as offline recurrent processing phases that allow models to retain information beyond their standard attention windows. These directions collectively aim to enhance the depth and efficiency of sequential reasoning without strictly relying on proportional increases in parameter size.

Profile updated

See something wrong? Report a mistake