Harshit Joshi

Harshit Joshi

Stanford University
3 previous affiliations
6Machine learning papers tracked by Lacuna
Is this you?

Research Overview

Harshit Joshi focuses on the development of specialized language models and automated program repair systems, with a particular emphasis on low-code environments and high-stakes social media analytics. His work explores the intersection of natural language processing (NLP) and software engineering, specifically addressing how machine learning models can be optimized to understand domain-specific languages, such as spreadsheet formulas, and how they can be applied to detect critical behavioral signals in temporal data. His recent research emphasizes the creation of reliable, task-oriented conversational agents that integrate complex logic and knowledge sources.

Research Trajectory

Joshi’s early research, primarily active around 2021, centered on the application of deep learning to mental health monitoring on social media. This work was characterized by an effort to move beyond static text classification toward Longitudinal Modeling of Mental Health Trajectories. Recognizing that mental health states are dynamic and evolve over time, Joshi contributed to the development of models that account for the temporal sequence of user posts. A significant technical challenge in this domain is the inherent hierarchy of social networks and the rarity of critical events, such as suicide ideation. To address the geometric mismatch between standard Euclidean models and hierarchical social structures, his work utilized Graph Representation Learning in Hyperbolic Space, which more effectively maps the branching nature of social circles and citation webs. Furthermore, his contributions in this period involved managing irregular data sequences through Temporal Decay Mechanisms for Irregularly Sampled Sequences and employing Dynamically Weighting Hard Examples to Mitigate Class Imbalance to ensure that rare but vital signals were not overshadowed by majority-class data.

In 2022, Joshi’s focus shifted toward program synthesis and the "last-mile" repair problem in low-code platforms. This transition marked a move from behavioral NLP to the formal structures of programming languages. He initially explored neurosymbolic approaches that combined the reasoning capabilities of symbolic logic with the pattern-recognition strengths of neural networks to fix broken formulas in environments like Excel and PowerApps. This work addressed the difficulty novice users face when encountering small syntactic or semantic errors that prevent a program from functioning.

By 2023, Joshi began leading projects that leveraged Large Language Models (LLMs) for these software engineering tasks. A primary concern in this phase was the efficiency and precision of models when applied to specialized domains. He investigated Preserving Semantic Integrity with Domain Specific Tokenization, arguing that general-purpose tokenizers often fragment technical terms in ways that obscure their meaning. This led to the development of smaller, more efficient language models tailored for spreadsheet formulas. Additionally, he explored the concept of Universal Programming Logic Across Diverse Languages, investigating how models trained on vast code corpora can transfer their understanding of fundamental logic—such as loops and variables—across different programming syntaxes to enable multilingual repair engines.

Most recently, in 2025, Joshi has extended this work into the realm of task-oriented agents. His current focus is on the reliability of LLM-based assistants, specifically how to move away from ad hoc conversational pipelines toward programmable frameworks that can consistently follow instructions, integrate external knowledge, and handle complex conditional logic without the common pitfalls of hallucinations or context loss.

Representative Work

Suicide Ideation Detection via Social and Temporal User Representations using Hyperbolic Learning In this work, Joshi and his collaborators addressed the limitations of traditional Euclidean embeddings for social media data. By employing hyperbolic learning, the research aimed to better capture the hierarchical and power-law distributions common in social networks. The model integrates both the social context of a user and the temporal evolution of their posts to identify markers of suicide ideation. This approach highlights the importance of geometric priors in representing complex human behaviors and social structures.

PHASE: Learning Emotional Phase-aware Representations for Suicide Ideation Detection on Social Media This research further refined the temporal modeling of mental health by introducing an emotional phase-aware representation. The work posits that the transition between different emotional states over time provides more diagnostic information than any single post in isolation. By modeling these phases, the system attempts to provide a more nuanced and longitudinal view of a user's mental state, improving the accuracy of ideation detection on platforms where data is often noisy and irregularly timed.

Neurosymbolic repair for low-code formula languages Joshi contributed to the development of LaMirage, a generator for last-mile repair engines in low-code environments. This work formalizes the problem of correcting small errors in domain-specific formula languages used in platforms like Excel. The approach is neurosymbolic, utilizing neural models to suggest potential repairs and symbolic techniques to ensure those repairs are syntactically and semantically valid. This hybrid methodology addresses the "last-mile" gap where users have a nearly correct program but lack the technical expertise to finalize the logic.

FLAME: A small language model for spreadsheet formulas As the lead author, Joshi presented FLAME, a T5-based model specifically optimized for Excel formulas. While general-purpose models like Codex are effective, their size and training requirements make them difficult to deploy for specific spreadsheet tasks. FLAME demonstrates that by leveraging domain-specific insights—such as specialized tokenization and sketch deduplication—a much smaller model (60 million parameters) can achieve competitive performance with significantly less training data. This work emphasizes the viability of Small Language Models (SLMs) for targeted industrial applications.

Repair Is Nearly Generation: Multilingual Program Repair with LLMs In this paper, Joshi introduced RING, a multilingual repair engine that treats the problem of program repair as a generation task powered by LLMs. Unlike previous repair techniques that were often language-specific and required extensive engineering to port to new domains, RING leverages the pre-trained knowledge of models like Codex to perform repairs across multiple programming languages. This research supports the hypothesis that LLMs develop a generalized understanding of programming logic that transcends specific syntax, allowing for a more scalable approach to automated software maintenance.

Coding Reliable LLM-based Integrated Task and Knowledge Agents with GenieWorksheets Joshi’s recent work introduces Genie, a programmable framework designed to improve the reliability of conversational agents. The research addresses the tendency of LLM-based assistants to fail when faced with complex user interactions or the need for strict adherence to conditional logic. By providing a structured framework for maintaining context and integrating knowledge, GenieWorksheets aims to minimize hallucinations and ensure that agents can navigate multi-step tasks consistently. This work represents a shift toward more robust, engineering-centric approaches to building AI-driven assistants.

Profile updated

See something wrong? Report a mistake