Niranjan Hasabnis

Niranjan Hasabnis

Code Metal
3 previous affiliations
40Machine learning papers tracked by Lacuna
Is this you?

Research Overview

Niranjan Hasabnis focuses on the intersection of artificial intelligence, formal methods, and software systems, particularly for code migration and optimization. His early work addressed program analysis and compiler correctness, evolving into the development of machine learning techniques for code translation and autonomous error detection. Currently, he investigates AI-driven methods for automatic parallelization and hardware-aware code generation in high-performance computing.

Research Trajectory

Hasabnis began his research focusing on compiler correctness, program analysis, and binary translation. His early projects included developing techniques for Light-weight bounds checking and ensuring the reliability of compiler infrastructure, as detailed in Checking correctness of code generator architecture specifications. He also explored binary analysis and symbolic execution, introducing methods for Lifting Assembly to Intermediate Representation: A Novel Approach Leveraging Compilers and Extracting instruction semantics via symbolic execution of code generators.

Transitioning toward the intersection of machine learning and systems, he investigated performance optimization frameworks, such as Auto-tuning TensorFlow Threading Model for CPU Backend. His research subsequently expanded into applying neural networks to understand code semantics. As part of a broader collaboration, he contributed to MISIM, a system for neural code semantics similarity, detailed in MISIM: A Neural Code Semantics Similarity System Using the Context-Aware Semantics Structure. This work aligns with the research direction of Structural Logic in Code Language Models and the broader area of Compilation Free Static Analysis with Large Language Models. Building on these themes, he developed ControlFlag: a self-supervised idiosyncratic pattern detection system for software control structures, an autonomous system that learns to detect programming errors by mining patterns from existing codebases. To support data-driven software engineering research and ensure the quality of training data, he also created frameworks for evaluating open-source repositories, including GitRank: A Framework to Rank GitHub Repositories and an analysis of Are machine programming systems using right source-code measures to select code repositories?.

In recent years, Hasabnis has focused heavily on adapting large language models (LLMs) for high-performance computing (HPC) and formal verification. A major theme of this work is the area of Domain Specialization for Expert Performance in Small Models. He and his collaborators demonstrated that smaller, specialized models can outperform general-purpose LLMs on HPC tasks. This is evident in Scope is all you need: Transforming LLMs for HPC Code, which introduced a tokenizer that emphasizes code structure over human semantics, contributing to the direction of Structural Logic over Lexical Shortcuts in Code Models. This approach was further refined in MonoCoder: Domain-Specific Code Language Model for HPC Codes and Tasks, advancing work in Pre-Training Language Models on Specialized Corpora.

Concurrently, he has explored the intersection of LLMs and formal methods for code migration. He contributed to Tenspiler: A Verified-Lifting-Based Compiler for Tensor Operations and Verified Code Transpilation with LLMs, which uses LLMs alongside SMT solvers to translate general-purpose code into optimized domain-specific languages with formal correctness guarantees. Most recently, his research addresses the challenge of Scaling Sequential Logic to Manycore Architectures through automated parallelization. He co-authored OMPILOT: Harnessing Transformer Models for Auto Parallelization to Shared Memory Computing Paradigms, a lightweight transformer designed to parallelize C++ code using OpenMP, and PragFormer: Data-Driven Parallel Source Code Classification with Transformers, an AI assistant that identifies loops suitable for parallelization. Finally, he has investigated the limits of LLM reasoning regarding hardware execution costs, contributing to Counting Without Running: Evaluating LLMs' Reasoning About Code Complexity, which benchmarks models on predicting floating-point operation counts for CUDA kernels. Extending this line of inquiry, Hasabnis also contributed to Estimating GPU Roofline Arithmetic Intensity with Off-the-Shelf LLMs and Compiler Artifacts, evaluating how off-the-shelf LLMs, compiler artifacts, and agentic workflows can estimate arithmetic intensity and identify bandwidth- versus compute-bound workloads without hardware execution.

Current Directions

The most recent papers in the evidence indicate a strong focus on applying specialized, domain-specific AI models to high-performance computing and software verification. A primary current direction involves automating the parallelization of sequential code for shared-memory systems. This includes developing lightweight transformer models that can accurately predict and insert OpenMP pragmas, effectively bridging the gap between traditional compiler analysis and modern machine learning capabilities.

Additionally, recent work investigates verified code transpilation, utilizing large language models in tandem with formal methods—such as SMT solvers—to migrate legacy code into optimized, domain-specific languages with mathematical guarantees of correctness. Finally, ongoing research explores the capacity of language models to reason about hardware-specific code complexity, evaluating whether AI aided by compiler artifacts can accurately predict computational costs and Roofline arithmetic intensity without executing target workloads on hardware.

Profile updated

See something wrong? Report a mistake