paper-with-me

Papers

Structural Language Models for Any-Code Generation

2019-09-25 · Uri Alon, Roy Sadaka, Omer Levy, Eran Yahav

We address the problem of Any-Code Generation (AnyGen) - generating code without any restriction on the vocabulary or structure. The state-of-the-art in this problem is the sequence-to-sequence (seq2seq) approach, which treats code as a sequence and does not leverage any structural information. We introduce a new approach to AnyGen that leverages the strict syntax of programming languages to model a code snippet as tree structural language modeling (SLM). SLM estimates the probability of the program's abstract syntax tree (AST) by decomposing it into a product of conditional probabilities over its nodes. We present a neural model that computes these conditional probabilities by considering all AST paths leading to a target node. Unlike previous structural techniques that have severely restricted the kinds of expressions that can be generated, our approach can generate arbitrary expressions in any programming language. Our model significantly outperforms both seq2seq and a variety of existing structured approaches in generating Java and C# code. We make our code, datasets, and models available online.

📄 PDF Abstract BibTeX

Code (0)

등록된 구현이 없습니다.

Tasks

C++ codeCode GenerationLanguage ModelingLanguage Modelling

Similar Papers 제목 키워드 기반

Repo0: Design-Driven Zero-to-All Code Generation

2026-08-20 · Silin Chen, Haoyi Teng, Xiaodong Gu, Yuling Shi 외 arxiv

Large language model agents have made substantial progress in code generation, yet most existing systems assume a predefined repository architecture. This assumption does not hold in zero-to-all code generation, where an…

Code Generation

Measuring LLM Code Generation Stability via Structural Entropy

2025-08-19 · Yewei Song, Tiezhu Sun, Xunzhu Tang, Prateek Rajput 외 arxiv

Assessing the stability of code generation from large language models (LLMs) is essential for judging their reliability in real-world development. We extend prior "structural-entropy concepts" to the program domain by pa…

Code Generation

Discrete Structural Planning for Generating Diverse Translations

2018-09-27 · Raphael Shu, Hideki Nakayama

Planning is important for humans when producing complex languages, which is a missing part in current language generation models. In this work, we add a planning phase in neural machine translation to control the global …

DiversityMachine TranslationSentenceText Generation+1

VeriGRAG: Enhancing LLM-Based Verilog Code Generation with Structure-Aware Soft Prompts

2025-09-27 · Jiayu Zhao, Song Chen arxiv

Large language models (LLMs) have demonstrated strong capabilities in generating Verilog code from natural language descriptions. However, Verilog code inherently encodes structural information of hardware circuits. Effe…

Code Generation

TokenScope: Token-Level Explainability and Interpretability for Code-Oriented Tasks in Large Language Models

2026-04-30 · Amirreza Esmaeili, Fatemeh Fard arxiv

Understanding how Large Language Models (LLMs) make token-level decisions during code generation remains a major challenge for both researchers and practitioners. While recent tools provide insights into model internals …

Code Generation