CERT: Continual Pre-training on Sketches for Library-oriented Code Generation
Daoguang ZanBei ChenDejian YangZeqi LinMinsu KimBei GuanYongji WangWeizhu ChenJian-Guang Lou
Daoguang Zan
Bei Chen
Dejian Yang
Zeqi Lin
Minsu Kim
Bei Guan
Yongji Wang
Weizhu Chen
Jian-Guang Lou
+9
This paper addresses library-oriented code generation, where expensive text-code paired data are scarce because of the many third-party libraries programmers reuse. Observing that such snippets tend to share similar code sketches, the authors propose CERT, which first has a sketcher generate a sketch and then a generator fill in the details; both components are continually pre-trained on unlabelled code from a base model. Two benchmarks, PandasEval and NumpyEval, are built for evaluation, and CERT surpasses the base model by an absolute 15.67% in pass@1 on PandasEval.

IJCAI · July 2022