Daking Rai

dblp:339/0884 · DBLP profile ↗
← Back
4ranked-venue papers
3as first author
4since 2021 · last 2025
0009-0003-3769-4974ORCID · corroborated

Domains — the database's venue-derived domains; a paper can count in several

Artificial intelligence and machine learning · 4 · 3 first-author · 4 since 2021Graphics, computer vision, multimedia, augmented reality and games · 1 · 1 first-author · 1 since 2021

Expertise — from the expertise taxonomy: the topics of the expert's papers under the CCF categories. A weight counts papers with recency: 1 for a paper about the topic, 0.3 when the topic is its context, halved every five years.

Artificial intelligence
4 papers
Trustworthy machine learning · 44% Language models and text generation · 42% Information extraction and text analysis · 14%

Topics — the 9 heaviest of 9, each with the papers that count most for it

TopicWeightPapersLastEvidence papers
Machine learning › Trustworthy machine learning
language model interpretability
2.432025
Failure by Interference: Language Models Make Balanced Parentheses Errors When Faulty Mechanisms Overshadow Sound Ones · NeurIPS 2025
All for One: LLMs Solve Mental Math at the Last Token With Information Transferred From Other Tokens · EMNLP 2025
Explaining Large Language Model-Based Neural Semantic Parsers (Student Abstract) · AAAI 2023
Natural language and speech › Language models and text generation › mathematical reasoning
numerical reasoning
1.722025
Failure by Interference: Language Models Make Balanced Parentheses Errors When Faulty Mechanisms Overshadow Sound Ones · NeurIPS 2025
All for One: LLMs Solve Mental Math at the Last Token With Information Transferred From Other Tokens · EMNLP 2025
Machine learning › Trustworthy machine learning › interpretability
information flow analysis
0.912025
All for One: LLMs Solve Mental Math at the Last Token With Information Transferred From Other Tokens · EMNLP 2025
Machine learning › Trustworthy machine learning › interpretability
mechanistic interpretability
0.912025
Failure by Interference: Language Models Make Balanced Parentheses Errors When Faulty Mechanisms Overshadow Sound Ones · NeurIPS 2025
Natural language and speech › Language models and text generation › linguistic generalization
syntactic generalization
0.912025
Failure by Interference: Language Models Make Balanced Parentheses Errors When Faulty Mechanisms Overshadow Sound Ones · NeurIPS 2025
Natural language and speech › Language models and text generation
chain-of-thought reasoning
0.812024
An Investigation of Neuron Activation as a Unified Lens to Explain Chain-of-Thought Eliciting Arithmetic Reasoning of LLMs · ACL (1) 2024
Natural language and speech › Language models and text generation
large language model
0.712023
Explaining Large Language Model-Based Neural Semantic Parsers (Student Abstract) · AAAI 2023
Natural language and speech › Information extraction and text analysis › semantic parsing
neural semantic parsing
0.712023
Explaining Large Language Model-Based Neural Semantic Parsers (Student Abstract) · AAAI 2023
Natural language and speech › Information extraction and text analysis
semantic parsing
0.712023
Explaining Large Language Model-Based Neural Semantic Parsers (Student Abstract) · AAAI 2023

Methods — techniques the papers use, named apart from their topics

context-aware mean ablation · 0.9attention-based peeking · 0.9attention head analysis · 0.9activation steering · 0.9ablation · 0.9neuron activation analysis · 0.8GPT-4-based neuron identification · 0.8explanation methods · 0.7
YearPublicationVenuePosition
2025 All for One: LLMs Solve Mental Math at the Last Token With Information Transferred From Other Tokens
abstract
Large language models (LLMs) demonstrate proficiency across numerous computational tasks, yet their inner workings remain unclear.In theory, the combination of causal self-attention and multilayer perceptron layers allows every token to access and compute information based on all preceding tokens.In practice, to what extent are such operations present?In this paper, on mental math tasks (i.e., direct math calculation via next-token prediction without explicit reasoning), we investigate this question in three steps: inhibiting input-specific token computations in the initial layers, restricting the routes of information transfer across token positions in the next few layers, and forcing all computation to happen at the last token in the remaining layers.With two proposed techniques, Context-Aware Mean Ablation (CAMA) and Attention-Based Peeking (ABP), we identify an All-for-One subgraph (AF1) with high accuracy on a wide variety of mental math tasks, where meaningful computation occurs very late (in terms of layer depth) and only at the last token, which receives information of other tokens in few specific middle layers.Experiments on a variety of models and arithmetic expressions show that this subgraph is sufficient and necessary for high model performance, transfers across different models, and works on a variety of input styles.Ablations on different CAMA and ABP alternatives reveal their unique advantages over other methods, which may be of independent interest.
Siddarth Mamidanna, Daking Rai, Ziyu Yao 0002, Yilun Zhou
EMNLP2
2025 Failure by Interference: Language Models Make Balanced Parentheses Errors When Faulty Mechanisms Overshadow Sound Ones
abstract
Despite remarkable advances in coding capabilities, language models (LMs) still struggle with simple syntactic tasks such as generating balanced parentheses. In this study, we investigate the underlying mechanisms behind the persistence of these errors across LMs of varying sizes (124M–7B) to both understand and mitigate the errors. Our study reveals that LMs rely on a number of components (attention heads and FF neurons) that independently make their own predictions. While some components reliably promote correct answers across a generalized range of inputs (i.e., implementing "sound mechanisms''), others are less reliable and introduce noise by promoting incorrect tokens (i.e., implementing "faulty mechanisms''). Errors occur when the faulty mechanisms overshadow the sound ones and dominantly affect the predictions. Motivated by this insight, we introduce RASteer, a steering method to systematically identify and increase the contribution of reliable components for improving model performance. RASteer substantially improves performance on balanced parentheses tasks, boosting accuracy of some models from $0$\% to around $100$\% without impairing the models' general coding ability. We further demonstrate its broader applicability in arithmetic reasoning tasks, achieving performance gains of up to around $20$\%.
Daking Rai, Samuel Miller, Kevin Moran, Ziyu Yao 0002
NeurIPS1
2024 An Investigation of Neuron Activation as a Unified Lens to Explain Chain-of-Thought Eliciting Arithmetic Reasoning of LLMs
abstract
Large language models (LLMs) have shown strong arithmetic reasoning capabilities when prompted with Chain-of-Thought (CoT) prompts.However, we have only a limited understanding of how they are processed by LLMs.To demystify it, prior work has primarily focused on ablating different components in the CoT prompt and empirically observing their resulting LLM performance change (Madaan and Yazdanbakhsh, 2022;Wang et al., 2023;Ye et al., 2023).Yet, the reason why these components are important to LLM reasoning is not explored.To fill this gap, in this work, we investigate "neuron activation" as a lens to provide a unified explanation to observations made by prior work.Specifically, we look into neurons within the feed-forward layers of LLMs that may have activated their arithmetic reasoning capabilities, using Llama2 (Touvron et al., 2023) as an example.To facilitate this investigation, we also propose an approach based on GPT-4 to automatically identify neurons that imply arithmetic reasoning.Our analyses revealed that the activation of reasoning neurons in the feed-forward layers of an LLM can explain the importance of various components in a CoT prompt, and future research can extend it for a more complete understanding. 1
Daking Rai, Ziyu Yao 0002
ACL (1)1
2023 Explaining Large Language Model-Based Neural Semantic Parsers (Student Abstract)
abstract
While large language models (LLMs) have demonstrated strong capability in structured prediction tasks such as semantic parsing, few amounts of research have explored the underlying mechanisms of their success. Our work studies different methods for explaining an LLM-based semantic parser and qualitatively discusses the explained model behaviors, hoping to inspire future research toward better understanding them.
Daking Rai, Yilun Zhou, Bailin Wang, Ziyu Yao 0002
AAAI1