Pragmatic Reasoning improves LLM Code Generation 文章

ArXiv CS.CL2026-05-26NEWSen作者: Zhuchen Cao, Sven Apel, Adish Singla, Vera Demberg

摘要

arXiv:2502.15835v5 Announce Type: replace Abstract: Pragmatic reasoning helps interlocutors infer intended meaning from ambiguous or underspecified messages by considering shared context and counterfactual alternatives. Similar challenges arise in natural language-to-code generation, where user instructions often admit multiple plausible candidate programs. However, direct RSA-style inference is difficult because it requires probability estimation over large spaces of programs and alternative instructions. We propose CodeRSA, an RSA-motivated reranking method that makes pragmatic reasoning tractable through local pragmatic contests among sampled code candidates. CodeRSA constructs candidate-induced alternative instructions and estimates which candidates are most distinctively supported by the original instruction, avoiding global normalization over the full program-instruction space.

相关事件查看全部 (1)

Pragmatic Reasoning improves LLM Code Generation
2026-05-26PRODUCT_LAUNCH影响: MEDIUM

相关公司

暂无数据

相关人物

暂无数据

相关产品

暂无数据