โ† Back to 2026-06-07 digest

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

8/10 arXiv Friday, June 5, 2026

Why This Matters

This paper is relevant to LLM integration, fine-tuning, and context engineering. It proposes a multitask representation engineering framework to improve the readability of LLM-generated codes, providing theoretical discussions and comprehensive experiments.

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. 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.

Links

Metadata

Authors: Huifan Gao, Liuhua He, Yinghui Pan, Shenbao Yu, Yifeng Zeng, Shengchao Qin, Weidi Sun

Categories: cs.SE, cs.AI

Published: Friday, June 5, 2026

Save to Vault

Save this article directly to your Obsidian vault. Opens Obsidian with the note pre-filled.

๐Ÿ“‹ Save to Obsidian Vault

Will save to: vault/inbox/signals/2026-06-07-towards-the-readability-of-llm-generated-codes-through-multitask-representation-.md