Ryan Saul Ehrlich
· 6 previous affiliations
- Meta (United States)Since 2025
- AI Research Scientist · Since 2025
- Stanford UniversitySince 2023
- PhD student · Since 2025
- AI Research · 2023–2025
- Researcher · 2024–2025
- University of Waterloo2019–2024
- Undergrad student · 2019–2024
- Bachelor's, Software Engineering
- Software Engineer · 2023
- IDEO (United States)2020–2023
- Principal Engineer (Consulting) · 2021–2023
- Software Engineering · 2020
- Research · 2023
Research Overview
Ryan Saul Ehrlich focuses on the efficiency and scalability of Large Language Model (LLM) inference, with a particular emphasis on Inference Time Compute Scaling for Complex Reasoning and memory-efficient architectures. His work spans the optimization of Prefix Aware KV Cache Sharing for Efficient LLM Inference for high-throughput serving, the development of Reward Guided Inference for Scaling Model Performance strategies, and the empirical study of how model performance scales with repeated sampling.
Research Trajectory
Ehrlich’s early contributions focused on the behavioral limitations of large-scale pre-trained models, specifically how they process structured logic under biased conditions. In 2023, he served as the senior author on a study examining how biased examples influence piecewise function evaluation. This work demonstrated that while model size generally correlates with performance, specific prompt structures can induce inverse scaling, where larger models are more susceptible to being misled by unrepresentative data. This research established a foundation for understanding the reliability of model outputs when faced with out-of-distribution or intentionally misleading context.
By 2024, Ehrlich’s focus shifted toward the systems-level challenges of deploying these models at scale. This period was marked by participation in research addressing the memory bottlenecks inherent in transformer decoding. The primary objective was to optimize attention mechanisms in scenarios where multiple sequences share common prefixes, such as system prompts or few-shot examples. This work contributed to the development of hardware-aware implementations that transform memory-bound operations into compute-bound ones, significantly increasing throughput in large-batch settings.
Simultaneously, Ehrlich began exploring the theoretical and practical Limits of Inference Scaling with Imperfect Verifiers. This research direction investigates the "coverage" of model outputs—the probability that a correct solution exists within a large set of samples. This work addresses The Selection Bottleneck in Multi Path Reasoning, suggesting that smaller, more efficient models can achieve parity with much larger frontier models if inference-time compute is scaled through repeated sampling and effective verification.
Current Directions
Ehrlich’s more recent work (2025–2026) applies these inference-scaling principles to complex software engineering tasks and long-context management. As a lead author, he has developed systems that allow models to iteratively refine code by generating and executing test scripts. This approach scales "serial" test-time compute, moving beyond simple parallel sampling to multi-turn reasoning trajectories. A key component of this work involves Managing Non-Determinism in Automated Testing Pipelines, ensuring that the iterative feedback loop remains reliable even when faced with "flaky" tests or inconsistent execution environments.
Another significant current focus is the compression of long-context representations. By training specialized, fixed-size KV caches—referred to as "Cartridges"—Ehrlich and his collaborators have demonstrated that it is possible to maintain the performance of full-context models while significantly reducing memory consumption. This work addresses the prohibitive costs of serving models grounded in massive text corpora, such as codebases or legal archives, by amortizing the cost of context processing across multiple queries.
Representative Work
Language Models Inversely Scale on Piecewise Function Evaluation with Biased Examples As senior author, Ehrlich investigated whether pretrained language models could be misled by factually correct but unrepresentative examples. The study focused on integer-to-integer piecewise functions, comparing performance when examples were evenly distributed versus when they were biased toward a single branch of the function. The findings revealed that larger models were more likely to follow the pattern of the biased examples rather than the underlying function definition, highlighting a critical vulnerability in in-context learning as models scale.
CodeMonkeys: Scaling Test-Time Compute for Software Engineering In this first-author paper, Ehrlich explores the application of test-time compute scaling to real-world software engineering challenges using the SWE-bench dataset. The proposed system, CodeMonkeys, enables models to iteratively edit codebases by jointly generating and running testing scripts alongside their draft edits. By sampling many of these multi-turn trajectories, the system effectively scales serial compute, allowing models to explore a wider range of candidate solutions and verify them through execution.
Cartridges: Lightweight and general-purpose long context representations via self-study Serving as second author, Ehrlich contributed to the development of "Cartridges," a method for compressing massive document contexts into fixed-size KV caches. The research introduces a "Self-Study" training recipe that combines synthetic data generation with context distillation. This approach achieved a 38.6x reduction in memory and a 26.4x boost in throughput compared to standard full-context models, providing a scalable solution for retrieval-augmented generation and long-form document analysis.
Large Language Monkeys: Scaling Inference Compute with Repeated Sampling Ehrlich participated in this study of inference-time scaling, which treats repeated sampling as a primary axis for improving model capabilities. The research demonstrates that "coverage"—the fraction of problems solved by at least one sample—follows a predictable log-linear scaling law over four orders of magnitude. This work suggests that the simple technique of repeated sampling, when paired with a verifier, can allow smaller models to outperform much larger ones on difficult reasoning tasks.
Hydragen: High-Throughput LLM Inference with Shared Prefixes In this work, Ehrlich contributed to the development of Hydragen, a hardware-aware attention implementation designed for high-throughput inference. The system is specialized for scenarios where a batch of sequences shares a common prefix. By decomposing the attention operation and batching queries across sequences, Hydragen mitigates the memory-bound nature of transformer decoding, achieving significant throughput gains over existing frameworks like vLLM.
Profile updated
Loading new papers…
Other researchers whose papers cluster into the same research directions — a proxy for overlapping technical interests and shared intellectual neighborhoods.
See something wrong? Report a mistake