FALCON: Feedback-driven Adaptive Long/short-term memory reinforced Coding Optimization system

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Li, Zeyuan, He, Yangfan, He, Lewei, Wang, Jianhui, Shi, Tianyu, Lei, Bin, Li, Yuchen, Chen, Qiuwu
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866918063492825088
author Li, Zeyuan
He, Yangfan
He, Lewei
Wang, Jianhui
Shi, Tianyu
Lei, Bin
Li, Yuchen
Chen, Qiuwu
author_facet Li, Zeyuan
He, Yangfan
He, Lewei
Wang, Jianhui
Shi, Tianyu
Lei, Bin
Li, Yuchen
Chen, Qiuwu
contents Recently, large language models (LLMs) have achieved significant progress in automated code generation. Despite their strong instruction-following capabilities, these models frequently struggled to align with user intent in coding scenarios. In particular, they were hampered by datasets that lacked diversity and failed to address specialized tasks or edge cases. Furthermore, challenges in supervised fine-tuning (SFT) and reinforcement learning from human feedback (RLHF) led to failures in generating precise, human-intent-aligned code. To tackle these challenges and improve the code generation performance for automated programming systems, we propose Feedback-driven Adaptive Long/short-term memory reinforced Coding Optimization (i.e., FALCON). FALCON is structured into two hierarchical levels. From the global level, long-term memory improves code quality by retaining and applying learned knowledge. At the local level, short-term memory allows for the incorporation of immediate feedback from compilers and AI systems. Additionally, we introduce meta-reinforcement learning with feedback rewards to solve the global-local bi-level optimization problem and enhance the model's adaptability across diverse code generation tasks. Extensive experiments demonstrate that our technique achieves state-of-the-art performance, leading other reinforcement learning methods by more than 4.5 percentage points on the MBPP benchmark and 6.1 percentage points on the Humaneval benchmark. The open-sourced code is publicly available at https://github.com/titurte/FALCON.
format Preprint
id arxiv_https___arxiv_org_abs_2410_21349
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle FALCON: Feedback-driven Adaptive Long/short-term memory reinforced Coding Optimization system
Li, Zeyuan
He, Yangfan
He, Lewei
Wang, Jianhui
Shi, Tianyu
Lei, Bin
Li, Yuchen
Chen, Qiuwu
Machine Learning
Artificial Intelligence
Performance
Recently, large language models (LLMs) have achieved significant progress in automated code generation. Despite their strong instruction-following capabilities, these models frequently struggled to align with user intent in coding scenarios. In particular, they were hampered by datasets that lacked diversity and failed to address specialized tasks or edge cases. Furthermore, challenges in supervised fine-tuning (SFT) and reinforcement learning from human feedback (RLHF) led to failures in generating precise, human-intent-aligned code. To tackle these challenges and improve the code generation performance for automated programming systems, we propose Feedback-driven Adaptive Long/short-term memory reinforced Coding Optimization (i.e., FALCON). FALCON is structured into two hierarchical levels. From the global level, long-term memory improves code quality by retaining and applying learned knowledge. At the local level, short-term memory allows for the incorporation of immediate feedback from compilers and AI systems. Additionally, we introduce meta-reinforcement learning with feedback rewards to solve the global-local bi-level optimization problem and enhance the model's adaptability across diverse code generation tasks. Extensive experiments demonstrate that our technique achieves state-of-the-art performance, leading other reinforcement learning methods by more than 4.5 percentage points on the MBPP benchmark and 6.1 percentage points on the Humaneval benchmark. The open-sourced code is publicly available at https://github.com/titurte/FALCON.
title FALCON: Feedback-driven Adaptive Long/short-term memory reinforced Coding Optimization system
topic Machine Learning
Artificial Intelligence
Performance
url https://arxiv.org/abs/2410.21349