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

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

16 Mar 2022arXiv:2203.08597archive 2025-07-28

Kirby Kuznia, Swaroop Mishra, Mihir Parmar, Chitta Baral

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

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2203.08597")

Code

Syntology Ran 0 of 15 code samples harvested from 1 repository linked to this paper; 15 have no recorded run.

By repository: official repository: 15 samples from 1 repository, 0 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

kurbster/prompt-summarization officialmentioned in papermentioned on GitHubApache-2.0 report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

15 samples harvested; 0 ran; 0 honoured the contract we drafted; 15 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

15unverified

Licence: 0 of the 15 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from kurbster/prompt-summarization. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

clean_codes kurbster/prompt-summarization/src/codex_api.py official repository unverified Apache-2.0 (permissive) · 55137d4cd72e9581 · report
create_test_args kurbster/prompt-summarization/src/lib/run_results.py official repository unverified Apache-2.0 (permissive) · 8404998fd77c69ad · report
detect_difficulty kurbster/prompt-summarization/src/lib/codex_results.py official repository unverified Apache-2.0 (permissive) · 5bcdd21d2b771df9 · report
detect_summary kurbster/prompt-summarization/src/lib/codex_results.py official repository unverified Apache-2.0 (permissive) · 2897eee871e8c87a · report
get_completed_problems kurbster/prompt-summarization/src/lib/prompt_generation.py official repository unverified Apache-2.0 (permissive) · 4bb0d274dcde5b94 · report
get_json_len kurbster/prompt-summarization/src/lib/result_analysis.py official repository unverified Apache-2.0 (permissive) · 2b82a9649dd68f23 · report
get_probs kurbster/prompt-summarization/src/lib/experiment_results.py official repository unverified Apache-2.0 (permissive) · 757f47477f49345b · report
get_question kurbster/prompt-summarization/src/lib/testing_util.py official repository unverified Apache-2.0 (permissive) · f452e011dda0ca8f · report
get_score_of_columns kurbster/prompt-summarization/src/lib/experiment_results.py official repository unverified Apache-2.0 (permissive) · e5982ac9f842cd84 · report
get_solutions kurbster/prompt-summarization/src/lib/testing_util.py official repository unverified Apache-2.0 (permissive) · 0c83bb0f43b8dc57 · report
get_text_len kurbster/prompt-summarization/src/lib/result_analysis.py official repository unverified Apache-2.0 (permissive) · ba99639d7639c9cc · report
get_valid_problems kurbster/prompt-summarization/src/lib/testing_util.py official repository unverified Apache-2.0 (permissive) · 8bbb265e59e23293 · report
read_json kurbster/prompt-summarization/src/lib/run_results.py official repository unverified Apache-2.0 (permissive) · c26950f1affe1579 · report
read_pd kurbster/prompt-summarization/src/lib/experiment_results.py official repository unverified Apache-2.0 (permissive) · 3963b62083828389 · report
split_prob kurbster/prompt-summarization/src/lib/codex_results.py official repository unverified Apache-2.0 (permissive) · d5958c8cc311cbe7 · report

Tasks

Program Synthesis

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections