Less is More: Summary of Long Instructions is Better for Program Synthesis

Kirby Kuznia, Swaroop Mishra, Mihir Parmar, Chitta Baral
3/16/2022
cs.CLcs.AIcs.LG

Official code: kurbster/Prompt-Summarization (17 stars, Jupyter Notebook, Apache-2.0, last commit 2023-09-26).

Abstract

Despite the success of large pre-trained language models (LMs) such as Codex, they show below-par performance on the larger and more complicated programming related questions. We show that LMs benefit from the summarized version of complicated questions.

Show full abstract

Our findings show that superfluous information often present in problem description such as human characters, background stories, and names (which are included to help humans in understanding a task) does not help models in understanding a task. To this extent, we create a meta-dataset from the frequently used APPS dataset and the newly created CodeContests dataset for the program synthesis task. Our meta-dataset consists of human and synthesized summaries of the long and complicated programming questions. Experimental results on Codex show that our proposed approach outperforms baseline by 8.13% on the APPS dataset and 11.88% on the CodeContests dataset on average in terms of strict accuracy. Our analysis shows that summaries significantly improve performance for introductory (9.86%) and interview (11.48%) programming questions. However, it shows improvement by a small margin (~ 2%) for competitive programming questions, implying scope for future research in this direction.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

Using NLP techniques to summarize prompts for program synthesis

1710Jupyter Notebook, PythonSep 9, 20213 years agoApache-2.0

Similar Papers

Cite this paper

@article{kuznia2022less,
  title  = {Less is More: Summary of Long Instructions is Better for Program Synthesis},
  author = {Kirby Kuznia and Swaroop Mishra and Mihir Parmar and Chitta Baral},
  year   = {2022},
  eprint = {2203.08597},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2203.08597}
}

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/2203.08597.svg)](https://codeofpaper.com/paper/2203.08597)

Discussion