Pith. sign in

REVIEW 1 cited by

Outline, Then Details: Syntactically Guided Coarse-To-Fine Code Generation

Not yet reviewed by Pith; the record is open.

This paper has not been read by Pith yet. Machine review is queued; the pith claim, tier, and objections will appear here once it completes.

SPECIMEN: schema-true, not a live event

T0 review · schema-true

One-sentence machine reading of the paper's core claim.

pith:XXXXXXXX · record.json · timestamp

arxiv 2305.00909 v4 pith:SLP3SD4P submitted 2023-04-28 cs.PL cs.AIcs.LG

classification cs.PLcs.AIcs.LG
keywords languagechaincodercodecodescomponentsgenerategeneratesgeneration
verification ladder T0 review T1 audit T2 compute T3 formal
0 comments
read the original abstract

For a complicated algorithm, its implementation by a human programmer usually starts with outlining a rough control flow followed by iterative enrichments, eventually yielding carefully generated syntactic structures and variables in a hierarchy. However, state-of-the-art large language models generate codes in a single pass, without intermediate warm-ups to reflect the structured thought process of "outline-then-detail". Inspired by the recent success of chain-of-thought prompting, we propose ChainCoder, a program synthesis language model that generates Python code progressively, i.e. from coarse to fine in multiple passes. We first decompose source code into layout frame components and accessory components via abstract syntax tree parsing to construct a hierarchical representation. We then reform our prediction target into a multi-pass objective, each pass generates a subsequence, which is concatenated in the hierarchy. Finally, a tailored transformer architecture is leveraged to jointly encode the natural language descriptions and syntactically aligned I/O data samples. Extensive evaluations show that ChainCoder outperforms state-of-the-arts, demonstrating that our progressive generation eases the reasoning procedure and guides the language model to generate higher-quality solutions. Our codes are available at: https://github.com/VITA-Group/ChainCoder.

Discussion (0). Continue with ORCID to comment.

Forward citations

Cited by 1 Pith paper

Reviewed papers in the Pith corpus that reference this work. Sorted by Pith novelty score. Full citation record

  1. CodeSCM: Causal Analysis for Multi-Modal Code Generation

    cs.CL 2025-02 conditional novelty 5.0 of 10

    A causal framework with latent mediators quantifies how prompt modalities affect code LLMs, finding that input-output examples and function-header names are influential beyond natural language instructions.

Pith tools