Daking Rai
· 6 previous affiliations
- George Mason UniversitySince 2021
- Graduate Research Assistant · Since 2022
- PhD student · 2022–2026
- Graduate Teaching Assistant · 2021–2022
- LinkedIn (United States)Since 2026
- AI/ML Intern – Generative AI, PhD · Since 2026
- Varicon2020–2021
- Product Manager · 2020–2021
- Rose Foundation Nepal2015–2020
- Executive Committee Member · 2015–2020
- InfoDevelopers Pvt. Ltd.2018–2019
- AI Developer and Researcher · 2018–2019
- St. Xavier's College (Autonomous)2014–2017
- Bachelor's degree, Computer Science · 2014–2017
Research Overview
Daking Rai focuses on the mechanistic interpretability of large language models and the explainability of neural semantic parsers. His early work explored methods for improving the generalization and transparency of text-to-SQL systems. More recently, he investigates the internal computational circuitry of transformers, identifying how specific attention heads and feed-forward neurons govern arithmetic reasoning and syntactic tasks.
Research Trajectory
His early research examined the intersection of natural language processing and database interfaces, with a particular emphasis on making semantic parsers more robust and interpretable. In 2023, he explored the foundations of model transparency in Explaining Large Language Model-Based Neural Semantic Parsers (Student Abstract), contributing to the area of Quantifying Explanation Faithfulness through Input Perturbation and the broader field of Polynomial Time Algorithms for Shapley Value Estimation. To address the practical limitations of these models when faced with unfamiliar database domains, he introduced token preprocessing and component boundary marking techniques in Improving Generalization in Language Model-based Text-to-SQL Semantic Parsing: Two Simple Semantic Boundary-based Techniques. By ensuring the model's tokenizer respected semantic boundaries, this work achieved substantial performance gains on the Spider benchmark without altering the underlying architecture, advancing research in The Impact of Subword Fragmentation on Domain Adaptation.
Recognizing that explainability must also account for human factors, he investigated how non-technical users interact with these systems in Understanding the Effect of Algorithm Transparency of Model Explanations in Text-to-SQL Semantic Parsing. This 2024 study revealed a "Goldilocks" effect in AI explanations: while too much information overwhelms users and too little leads to guesswork, a medium level of transparency—combining confidence scores with feature attribution—optimizes user trust and verification accuracy.
As his focus shifted deeper into the internal workings of neural networks, he authored a comprehensive survey, A Practical Review of Mechanistic Interpretability for Transformer-Based Language Models. This work organized the taxonomy of mechanistic interpretability from a task-centric perspective, touching on emerging topics like Linear Semantic Geometry in Generative Models and serving as a guide for reverse-engineering internal computations. Applying these mechanistic principles to complex reasoning, he investigated the underlying drivers of prompting strategies in An Investigation of Neuron Activation as a Unified Lens to Explain Chain-of-Thought Eliciting Arithmetic Reasoning of LLMs. By identifying specific "reasoning neurons" in the feed-forward layers that are directly triggered by equations and text explanations, this work provided a concrete explanation for why Chain-of-Thought prompting succeeds, contributing to the study of Mathematical Dynamics of Attention and Feed-Forward Networks.
In 2025, his mechanistic investigations expanded to isolate specific algorithmic circuits responsible for syntax and mathematics. In Mechanistic Understanding of Language Models in Syntactic Code Completion, he opened the black box of CodeLlama-7b to analyze how it balances parentheses. The research revealed a heavy reliance on middle-to-late attention layers and uncovered a specific attention head suffering from "incorrect knowledge association," aligning with work in the area of Additive Decomposition of Transformer Predictions. Building directly on this discovery, he introduced the RASTEER method in Failure by Interference: Language Models Make Balanced Parentheses Errors When Faulty Mechanisms Overshadow Sound Ones. This paper demonstrated that models often fail at simple syntactic tasks because noisy internal components drown out reliable ones; by boosting the signal of sound mechanisms, the method dramatically improved accuracy without damaging general capabilities.
Continuing his analysis of computational tasks, he explored how models execute direct calculations in All for One: LLMs Solve Mental Math at the Last Token With Information Transferred From Other Tokens. By inhibiting input-specific token computations and restricting information transfer routes, he mapped how causal self-attention aggregates necessary data at the final token to solve mental math problems. Concurrently, he collaborated on A Survey on Sparse Autoencoders: Interpreting the Internal Mechanisms of Large Language Models, examining how sparse dictionary learning can disentangle complex, superimposed features within language models into interpretable components.
Current Directions
The most recent papers in the evidence indicate a sustained focus on the mechanistic interpretability of specific algorithmic capabilities, particularly mathematical reasoning and syntactic processing. Recent work investigates how information is routed across token positions and transformer layers during complex tasks, seeking to map the exact pathways that enable a model to perform mental math or code completion.
A major emerging theme in this research is the identification and mitigation of internal interference. Rather than treating model failures as an absence of knowledge, current directions explore how faulty mechanisms overshadow sound ones. By developing targeted interventions that boost reliable internal components—without requiring full model retraining—this work aims to systematically correct localized errors and improve the reliability of large language models on structured tasks. Additionally, ongoing collaborative efforts explore the use of sparse autoencoders to further disentangle the superimposed representations that complicate these mechanistic analyses.
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