SEK: Self-Explained Keywords Empower Large Language Models for Code Generation
Lishui FanMCMouxiang ChenZLZhongxin Liu
Lishui Fan
MCMouxiang Chen
ZLZhongxin Liu
+3
Large language models (LLMs) often misunderstand or overlook problem-specific undertrained keywords, harming code generation accuracy. SEK (Self-Explained Keywords) mitigates this by having the LLM itself extract and explain those key terms using well-trained terms in the prompt. On four benchmarks (HumanEval(+), MBPP(+), APPS, BigCodeBench) with five LLMs, SEK consistently improves code generation, e.g., raising DeepSeek-Coder-V2-Instruct's Pass@1 on HumanEval from 85.4% to 93.3%, by shifting attention from low-frequency keywords to their explanations.

ACL Anthology · July 2025