2606.06214v1 Jun 04, 2026 cs.SE

Towards the Readability of LLM-Generated Codes through Multitask Representation Engineering

Shengchao Qin
Shengchao Qin
Citations: 20
h-index: 2
Huifan Gao
Huifan Gao
Citations: 21
h-index: 3
Liuhua He
Liuhua He
Citations: 0
h-index: 0
Yinghui Pan
Yinghui Pan
Citations: 219
h-index: 9
Shenbao Yu
Shenbao Yu
Citations: 15
h-index: 2
Yifeng Zeng
Yifeng Zeng
Citations: 5
h-index: 1
Weidi Sun
Weidi Sun
Citations: 8
h-index: 2

Correctness and readability are key measures of code quality, respectively ensuring functional fidelity and ease of comprehension. While most existing research focuses on improving the correctness of large language models~(LLMs) generated codes, readability remains under-addressed. Enhancing readability through targeted control is challenging due to its subjective nature. In this article, we employ representation engineering~(RepE) as the targeted control method given its characteristics of low data dependency and low computational cost. Prior work on RepE has primarily focused on the targeted control for a single task, but improving the code readability requires the control across multiple tasks. Accordingly we proposes the multitask RepE framework and theoretically discuss the impact of the multitask steering method on the tradeoff between the code readability and correctness. We further provide comprehensive experiments in support. All the relevant implementations are open-source and available upon request.

0 Citations
0 Influential
4.5 Altmetric
22.5 Score
Original PDF

No Analysis Report Yet

This paper hasn't been analyzed by Gemini yet.

Log in to request an AI analysis.

댓글

댓글을 작성하려면 로그인하세요.

아직 댓글이 없습니다. 첫 번째 댓글을 남겨보세요!