paper-with-me

Papers

Generating Equivalent Representations of Code By A Self-Reflection Approach

2024-10-04 · Jia Li, Ge Li, Lecheng Wang, Hao Zhu, Zhi Jin

Equivalent Representations (ERs) of code are textual representations that preserve the same semantics as the code itself, e.g., natural language comments and pseudocode. ERs play a critical role in software development and maintenance. However, how to automatically generate ERs of code remains an open challenge. In this paper, we propose a self-reflection approach to generating ERs of code. It enables two Large Language Models (LLMs) to work mutually and produce an ER through a reflection process. Depending on whether constraints on ERs are applied, our approach generates ERs in both open and constrained settings. We conduct a empirical study to generate ERs in two settings and obtain eight findings. (1) Generating ERs in the open setting. In the open setting, we allow LLMs to represent code without any constraints, analyzing the resulting ERs and uncovering five key findings. These findings shed light on how LLMs comprehend syntactic structures, APIs, and numerical computations in code. (2) Generating ERs in the constrained setting. In the constrained setting, we impose constraints on ERs, such as natural language comments, pseudocode, and flowcharts. This allows our approach to address a range of software engineering tasks. Based on our experiments, we have three findings demonstrating that our approach can effectively generate ERs that adhere to specific constraints, thus supporting various software engineering tasks. (3) Future directions. We also discuss potential future research directions, such as deriving intermediate languages for code generation, exploring LLM-friendly requirement descriptions, and further supporting software engineering tasks. We believe that this paper will spark discussions in research communities and inspire many follow-up studies.

📄 PDF Abstract BibTeX arXiv:2410.03351

Code (0)

등록된 구현이 없습니다.

Tasks

Code Generation

Similar Papers 제목 키워드 기반

OriGen:Enhancing RTL Code Generation with Code-to-Code Augmentation and Self-Reflection

2024-07-23 · Fan Cui, Chenyang Yin, Kexing Zhou, Youwei Xiao 외

Recent studies have demonstrated the significant potential of Large Language Models (LLMs) in generating Register Transfer Level (RTL) code, with notable advancements showcased by commercial models such as GPT-4 and Clau…

Code GenerationKnowledge Distillation

Perceptual Self-Reflection in Agentic Physics Simulation Code Generation

2026-02-12 · Prashant Shende, Bradley Camburn arxiv

We present a multi-agent framework for generating physics simulation code from natural language descriptions, featuring a novel perceptual self-reflection mechanism for validation. The system employs four specialized age…

Code Generation

Meta-Reinforcement Learning with Self-Reflection for Agentic Search

2026-03-11 · Teng Xiao, Yige Yuan, Hamish Ivison, Huaisheng Zhu 외 arxiv

This paper introduces MR-Search, an in-context meta reinforcement learning (RL) formulation for agentic search with self-reflection. Instead of optimizing a policy within a single independent episode with sparse rewards,…

Reinforcement Learning

Illusions of reflection: open-ended task reveals systematic failures in Large Language Models' reflective reasoning

2025-10-21 · Sion Weatherhead, Flora Salim, Aaron Belbasis arxiv

Humans do not just find mistakes after the fact -- we often catch them mid-stream because 'reflection' is tied to the goal and its constraints. Today's large language models produce reasoning tokens and 'reflective' text…

G3R: Generating Rich and Fine-grained mmWave Radar Data from 2D Videos for Generalized Gesture Recognition

2024-04-23 · Kaikai Deng, Dong Zhao, Wenxin Zheng, Yue Ling 외

Millimeter wave radar is gaining traction recently as a promising modality for enabling pervasive and privacy-preserving gesture recognition. However, the lack of rich and fine-grained radar datasets hinders progress in …

DecoderGesture RecognitionPrivacy Preserving