English

Position: Intelligent Coding Systems Should Write Programs with Justifications

Software Engineering 2025-08-11 v1 Computation and Language Machine Learning

Abstract

Intelligent coding systems are transforming software development by enabling users to specify code behavior in natural language. However, the opaque decision-making of AI-driven coders raises trust and usability concerns, particularly for non-expert users who cannot inspect low-level implementations. We argue that these systems should not only generate code but also produce clear, consistent justifications that bridge model reasoning and user understanding. To this end, we identify two critical justification properties-cognitive alignment and semantic faithfulness-and highlight the limitations of existing methods, including formal verification, static analysis, and post-hoc explainability. We advocate exploring neuro-symbolic approaches for justification generation, where symbolic constraints guide model behavior during training and program semantics are enriched through neural representations, enabling automated consistency checks at inference time.

Keywords

Cite

@article{arxiv.2508.06017,
  title  = {Position: Intelligent Coding Systems Should Write Programs with Justifications},
  author = {Xiangzhe Xu and Shiwei Feng and Zian Su and Chengpeng Wang and Xiangyu Zhang},
  journal= {arXiv preprint arXiv:2508.06017},
  year   = {2025}
}

Comments

The first two authors contributed equally to this work