Afra Amini
· 6 previous affiliations
- Google (United States)Since 2025
- Researcher · Since 2025
- Intern · 2022–2023
- Google DeepMind (United Kingdom)Since 2025
- Research Scientist · Since 2025
- Student Researcher · 2022–2023
- ETH Zurich2017–2025
- Ph.D., Computer Science · 2021–2025
- Master's degree, Computer Science · 2019–2021
- Intern · 2017
- Research Intern · 2025
- Cafe Bazaar (Iran)2018–2019
- Data Scientist · 2018–2019
- Sharif University of Technology2014–2018
- Undergrad student · 2014–2018
Research Overview
Afra Amini focuses on the intersection of probabilistic machine learning, natural language processing, and the mathematical foundations of generative modeling. Their work emphasizes the development of principled sampling algorithms for discrete spaces, the alignment of large language models (LLMs) with human preferences, and the formal evaluation of model reasoning and factuality. Currently, Amini’s research investigates methods for stabilizing gradient estimation in complex probabilistic models and scaling test-time compute to improve the structural and logical consistency of generated text.
Research Trajectory
Amini’s early research, beginning around 2020, was situated in the domain of medical signal processing and deep learning. This period was characterized by the application of recurrent and convolutional architectures to physiological data, as seen in the development of A Hybrid Deep Model for Automatic Arrhythmia Classification based on LSTM Recurrent Networks. This work utilized dilated convolutions and residual connections to automate feature extraction from electrocardiogram (ECG) signals, moving away from traditional hand-designed heuristics toward end-to-end neural architectures.
By 2022, Amini’s focus shifted toward the interpretability of neural language models, specifically addressing the mechanisms by which models like BERT and GPT-2 process grammatical structures. In Naturalistic Causal Probing for Morpho-Syntax, Amini introduced a framework for moving beyond correlational analysis in model probing, employing causal interventions on real-world data to isolate how specific morpho-syntactic features are represented and utilized during inference. This interest in the internal mechanics of models extended to the diagnosis of reasoning failures, where Amini participated in research identifying how Which Spurious Correlations Impact Reasoning in NLI Models? affect performance in natural language inference, categorizing these failures into logical fallacies, semantic relevance, and dataset bias.
In 2023, Amini’s work transitioned into a sustained investigation of the mathematical challenges inherent in Continuous Proxies for Discrete Probability Distributions. Because text is fundamentally discrete, it lacks the smoothness required for standard gradient-based optimization and sampling. Amini addressed this by developing techniques to bridge the gap between continuous gradient-based methods and discrete token spaces. A primary contribution during this period was the development of Hamiltonian Dynamics on Piecewise Smooth Densities, which allowed for more efficient exploration of high-dimensional discrete landscapes. This theoretical work was applied to the problem of Degenerate Repetition and the Self Reinforcement Effect, providing a more principled alternative to the intuition-based heuristics commonly used in decoding algorithms.
From 2024 onward, Amini’s research has increasingly focused on the stability and efficiency of model alignment and reinforcement learning from human feedback (RLHF). This includes work on Monotonic Transformation Invariance in Optimization, which treats preference signals as relative rather than absolute magnitudes, and Stabilizing Gradient Estimation in Probabilistic Models. The latter is particularly relevant to the training of Variational Autoencoders and Bayesian Neural Networks, where high-variance gradient estimates often lead to training instability. Most recently, Amini has explored Scaling Test-Time Compute for Generative Models, shifting the computational burden from the training phase to the inference phase to achieve better structural adherence and reasoning depth.
Current Directions
Amini’s current research program is organized around three primary pillars:
Principled Sampling and Generation: Amini continues to refine gradient-based Markov Chain Monte Carlo (MCMC) methods for text. This involves creating samplers that are mathematically "faithful" to their target distributions, ensuring that generated text not only follows complex constraints but also maintains the linguistic fluency of the underlying language model.
Alignment and Preference Optimization: A significant portion of Amini’s recent work involves improving Direct Preference Optimization (DPO). By moving beyond binary "better/worse" labels to incorporate the intensity of preferences, Amini aims to create alignment strategies that are more sensitive to the nuances of human judgment, particularly in high-stakes domains like toxicity reduction and scientific communication.
Structural and Syntactic Control: Amini is investigating the use of posterior inference to enforce strict structural constraints on LLM outputs. This work treats the language model as a probabilistic prior that is conditioned on specific syntactic or logical requirements, allowing smaller models to achieve high levels of structural precision that typically require much larger architectures.
Representative Work
Structured Voronoi Sampling
In Structured Voronoi Sampling, Amini (as first author) introduced a principled approach for sampling from language models using gradient-based methods. The research addresses the lack of theoretical grounding in existing controlled text generation techniques. By defining densities over discrete distributions and developing an algorithm based on Hamiltonian Monte Carlo (HMC), the work provides a method to navigate the discrete token space using continuous gradients. This approach, known as SVS, demonstrates that gradient information can be effectively harnessed to sample from complex reference distributions where standard autoregressive decoding often fails.
Direct Preference Optimization with an Offset
Amini’s work on Direct Preference Optimization with an Offset addresses a fundamental limitation in standard DPO: the treatment of all preference pairs as equal. As first author, Amini proposed a modification to the DPO objective that accounts for the varying degrees of preference strength. For instance, the difference between a slightly awkward response and a highly toxic one is significant, yet standard binary DPO treats both as simple preference flips. By introducing an offset that reflects the magnitude of the preference, this method aligns models more effectively with the nuances of human feedback.
Better Estimation of the Kullback–Leibler Divergence
In Better Estimation of the Kullback–Leibler Divergence Between Language Models, Amini (first author) tackled the computational instability inherent in RLHF. Calculating the KL divergence between a policy model and a reference model is essential for preventing model collapse, but standard sampling-based estimates are often noisy and can yield negative values. Amini introduced a Rao-Blackwellized (RB) estimator that provides a lower-variance, provably non-negative estimate. This contribution leads to more stable reinforcement learning loops and models that better balance performance with linguistic fluency.
Syntactic Control by Posterior Inference
As the senior author of Syntactic Control of Language Models by Posterior Inference, Amini directed research into forcing LLMs to adhere to exact syntactic templates. The method utilizes Sequential Monte Carlo (SMC) sampling, treating the LLM as a prior and a syntactic tagger as a likelihood function. This approach significantly improved syntactic adherence compared to standard prompting or greedy decoding, enabling smaller models to outperform significantly larger models like GPT-4 on tasks requiring strict structural consistency.
Principled Gradient-Based MCMC for Conditional Sampling
In Principled Gradient-Based MCMC for Conditional Sampling of Text, Amini (second author) contributed to the development of samplers—specifically p-NCG and GwL—that use Metropolis-Hastings corrections to ensure convergence to a true target distribution. This work addresses the systematic biases found in previous energy-based models for text, resulting in generation that is both more fluent and more capable of following complex, multi-faceted constraints.
Naturalistic Causal Probing
In the solo-authored paper Naturalistic Causal Probing for Morpho-Syntax, Amini established a methodology for interpreting the internal representations of neural language models. By applying causal analysis to naturalistic data, the work clarifies how models like BERT represent grammatical features. This research moved the field of model probing away from simple classification tasks toward a more rigorous understanding of the functional role that specific neural activations play in the generation of grammatical text.
Profile updated
| Paper | Venue | Year |
|---|---|---|
| Reverse-Engineering the ReaderGitHubsamuki/ | EMNLP | 2024 |
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