UniGenCoder: Merging Seq2Seq and Seq2Tree Paradigms for Unified Code Generation
원문 초록
Deep learning-based code generation has completely transformed the way developers write programs today. Existing approaches to code generation have focused either on the Sequence-to-Sequence paradigm, which generates target code as a sequence of tokens, or the Sequence-to-Tree paradigm, which outputs code as a sequence of actions. While these two paradigms are intuitively complementary, their combination has not been previously explored. By comparing the code generated under these two paradigms, we find that integrating them holds significant potential. In this paper, we propose UniGenCoder for code-related generation tasks, which consists of a shared encoder, a shared decoder with a minimal set of additional parameters to unify two paradigms, and a selector that dynamically chooses optimal paradigm for each instance. Also, during the model training, we first perform the multi-task learning and distillation strategies to facilitate knowledge transfer between two paradigms, and then leverage contrastive learning to train the selector. Experimental results on the text-to-code and code-to-code generation tasks demonstrate the effectiveness of our proposed model. We release our code at https://github.com/DeepLearnXMU/UniGenCoder.
함께 살펴볼 논문
공통 태그를 근거로 연결했습니다. 실제 인용 관계나 논문의 우수성을 뜻하지 않습니다.
Robust-Multi-Task Gradient Boosting
SGCL: Unifying Self-Supervised and Supervised Learning for Graph Recommendation
Uni-DVPS: Unified Model for Depth-Aware Video Panoptic Segmentation
SSCL-IDS: Enhancing Generalization of Intrusion Detection with Self-Supervised Contrastive Learning
CoReGAN: Contrastive Regularized Generative Adversarial Network for Guided Depth Map Super Resolution
MaskChanger: A Transformer-Based Model Tailoring Change Detection with Mask Classification
토론
이 논문과 연결된 포럼 글이 아직 없습니다.