← Search

Saikat Chakraborty

6 accepted papers

2025

Teaching an Old LLM Secure Coding: Localized Preference Optimization on Distilled Preferences

ACL 2025long

LLM generated code often contains security issues. We address two key challenges in improving secure code generation. First, obtaining high quality training data covering a broad set of security issues is critical. To address this, we introduce a method for distilling a preference dataset of insecur…

2023

AVATAR: A Parallel Corpus for Java-Python Program Translation

ACL 2023findings

Program translation refers to migrating source code from one programming language to another. It has tremendous practical value in software development, as porting software across languages is time-consuming and costly. Automating program translation is of paramount importance in software migration,…

2023

Ranking LLM-Generated Loop Invariants for Program Verification

EMNLP 2023short findings

Synthesizing inductive loop invariants is fundamental to automating program verification. In this work we observe that Large Language Models (such as {gpt-3.5} or {gpt-4}) are capable of synthesizing loop invariants for a class of programs in a 0-shot setting, yet require several samples to generate…

Cited by 0SourcecodeScholar
2022

Towards Learning (Dis)-Similarity of Source Code from Program Contrasts

ACL 2022long

Understanding the functional (dis)-similarity of source code is significant for code modeling tasks such as software vulnerability and code clone detection. We present DISCO (DIS-similarity of COde), a novel self-supervised model focusing on identifying (dis)similar functionalities of source code. D…

Cited by 40SourcePDFScholar
2021

Retrieval Augmented Code Generation and Summarization

EMNLP 2021finding

Software developers write a lot of source code and documentation during software development. Intrinsically, developers often recall parts of source code or code summaries that they had written in the past while implementing software or documenting them. To mimic developers’ code or summary generati…

2021

Unified Pre-training for Program Understanding and Generation

NAACL 2021long

Code summarization and generation empower conversion between programming language (PL) and natural language (NL), while code translation avails the migration of legacy code from one PL to another. This paper introduces PLBART, a sequence-to-sequence model capable of performing a broad spectrum of pr…