Style2Code: A Style-Controllable Code Generation Framework with Dual-Modal Contrastive Representation Learning
원문 초록
Controllable code generation, the ability to synthesize code that follows a specified style while maintaining functionality, remains a challenging task. We propose a two-stage training framework combining contrastive learning and conditional decoding to enable flexible style control. The first stage aligns code style representations with semantic and structural features. In the second stage, we fine-tune a language model (e.g., Flan-T5) conditioned on the learned style vector to guide generation. Our method supports style interpolation and user personalization via lightweight mixing. Compared to prior work, our unified framework offers improved stylistic control without sacrificing code correctness. This is among the first approaches to combine contrastive alignment with conditional decoding for style-guided code generation.
함께 살펴볼 논문
공통 태그를 근거로 연결했습니다. 실제 인용 관계나 논문의 우수성을 뜻하지 않습니다.
Kodezi Chronos: A Debugging-First Language Model for Repository-Scale, Memory-Driven Code Understanding
AgentStealth: Reinforcing Large Language Model for Anonymizing User-generated Text
Language Modeling by Language Models
Audio Flamingo 3: Advancing Audio Intelligence with Fully Open Large Audio Language Models
A Large Language Model-Empowered Agent for Reliable and Robust Structural Analysis
V2X-REALM: Vision-Language Model-Based Robust End-to-End Cooperative Autonomous Driving with Adaptive Long-Tail Modeling
토론
이 논문과 연결된 포럼 글이 아직 없습니다.