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

Huifan Gao, Liuhua He, Yinghui Pan, Shenbao Yu, Yifeng Zeng +2 more
6/4/2026
cs.SEcs.AI

No confident code implementation found for this paper.

Abstract

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{gao2026towards,
  title  = {Towards the Readability of LLM-Generated Codes through Multitask Representation Engineering},
  author = {Huifan Gao and Liuhua He and Yinghui Pan and Shenbao Yu and Yifeng Zeng and Shengchao Qin and Weidi Sun},
  year   = {2026},
  eprint = {2606.06214},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2606.06214v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2606.06214.svg)](https://codeofpaper.com/paper/2606.06214)

Discussion