Zhengbao Jiang

Zhengbao Jiang

Auto-generated profile, based on publicly available information

Zhengbao Jiang

Carnegie Mellon University

Research Focus & Metrics

Academic Career Length

8Years (2019-Present)

(Calculated once Scilit publication data is synced: current year − year of first publication + 1)

Representative Publications

View All Publications
16 January 2023 in ACM Computing Surveys
Verified
Journal Article
Open access
PLPengfei Liu
Pengfei Liu
WYWeizhe Yuan
Weizhe Yuan
JFJinlan Fu
Jinlan Fu
ZJZhengbao Jiang
Zhengbao Jiang
HHHiroaki Hayashi
Hiroaki Hayashi
GNGraham Neubig
Graham Neubig
This article surveys and organizes research works in a new paradigm in natural language processing, which we dub “prompt-based learning.” Unlike traditional supervised learning, which trains a model to take in an input x and predict an output y as P ( y|x ), prompt-based learning is based on language models that model the probability of text directly. To use these models to perform prediction tasks, the original input x is modified using a template into a textual string prompt x′ that has some unfilled slots, and then the language model is used to probabilistically fill the unfilled information to obtain a final string x̂ , from which the final output y can be derived. This framework is powerful and attractive for a number of reasons: It allows the language model to be pre-trained on massive amounts of raw text, and by defining a new prompting function the model is able to perform few-shot or even zero-shot learning, adapting to new scenarios with few or no labeled data. In this article, we introduce the basics of this promising paradigm, describe a unified set of mathematical notations that can cover a wide variety of existing work, and organize existing work along several dimensions, e.g., the choice of pre-trained language models, prompts, and tuning strategies. To make the field more accessible to interested beginners, we not only make a systematic review of existing works and a highly structured typology of prompt-based concepts but also release other resources, e.g., a website NLPedia–Pretrain including constantly updated survey and paperlist.

1 January 2023
Verified
Conference Paper
Open access
PDF file
ZJZhengbao Jiang
Zhengbao Jiang
FXFrank F. Xu
Frank F. Xu
LGLuyu Gao
Luyu Gao
ZSZhiqing Sun
Zhiqing Sun
QLQian Liu
Qian Liu
GNGraham Neubig
Graham Neubig
Zhengbao Jiang, Frank Xu, Luyu Gao, Zhiqing Sun, Qian Liu, Jane Dwivedi-Yu, Yiming Yang, Jamie Callan, Graham Neubig. Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing. 2023.

8 September 2021 in Transactions of the Association for Computational Linguistics
Verified
Journal Article
Open access
PDF file
ZJZhengbao Jiang
Zhengbao Jiang
JAJun Araki
Jun Araki
HDHaibo Ding
Haibo Ding
GNGraham Neubig
Graham Neubig
Recent works have shown that language models (LM) capture different types of knowledge regarding facts or common sense. However, because no model is perfect, they still fail to provide appropriate answers in many cases. In this paper, we ask the question, “How can we know when language models know, with confidence, the answer to a particular query?” We examine this question from the point of view of calibration, the property of a probabilistic model’s predicted probabilities actually being well correlated with the probabilities of correctness. We examine three strong generative models—T5, BART, and GPT-2—and study whether their probabilities on QA tasks are well calibrated, finding the answer is a relatively emphatic no. We then examine methods to calibrate such models to make their confidence scores correlate better with the likelihood of correctness through fine-tuning, post-hoc probability modification, or adjustment of the predicted outputs or inputs. Experiments on a diverse range of datasets demonstrate the effectiveness of our methods. We also perform analysis to study the strengths and limitations of these methods, shedding light on further improvements that may be made in methods for calibrating LMs. We have released the code at https://github.com/jzbjyb/lm-calibration.

22 October 2023 in arXiv
Verified
Preprint
Open access
PDF file
ZJZhengbao Jiang
Zhengbao Jiang
FXFrank F. Xu
Frank F. Xu
LGLuyu Gao
Luyu Gao
ZSZhiqing Sun
Zhiqing Sun
QLQian Liu
Qian Liu
GNGraham Neubig
Graham Neubig
Despite the remarkable ability of large language models (LMs) to comprehend and generate language, they have a tendency to hallucinate and create factually inaccurate output. Augmenting LMs by retrieving information from external knowledge resources is one promising solution. Most existing retrieval augmented LMs employ a retrieve-and-generate setup that only retrieves information once based on the input. This is limiting, however, in more general scenarios involving generation of long texts, where continually gathering information throughout generation is essential. In this work, we provide a generalized view of active retrieval augmented generation, methods that actively decide when and what to retrieve across the course of the generation. We propose Forward-Looking Active REtrieval augmented generation (FLARE), a generic method which iteratively uses a prediction of the upcoming sentence to anticipate future content, which is then utilized as a query to retrieve relevant documents to regenerate the sentence if it contains low-confidence tokens. We test FLARE along with baselines comprehensively over 4 long-form knowledge-intensive generation tasks/datasets. FLARE achieves superior or competitive performance on all tasks, demonstrating the effectiveness of our method. Code and datasets are available at https://github.com/jzbjyb/FLARE.

1 January 2024
Verified
Conference Paper
Open access
PDF file
TZTongyao Zhu
Tongyao Zhu
QLQian Liu
Qian Liu
LPLiang Pang
Liang Pang
ZJZhengbao Jiang
Zhengbao Jiang
MKMin-Yen Kan
Min-Yen Kan
MLMin Lin
Min Lin
Tongyao Zhu, Qian Liu, Liang Pang, Zhengbao Jiang, Min-Yen Kan, Min Lin. Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers). 2024.

18 February 2023 in arXiv
Verified
Preprint
Open access
PDF file
SZShuyan Zhou
Shuyan Zhou
UAUri Alon
Uri Alon
FXFrank F. Xu
Frank F. Xu
ZWZhiruo Wang
Zhiruo Wang
ZJZhengbao Jiang
Zhengbao Jiang
GNGraham Neubig
Graham Neubig
Publicly available source-code libraries are continuously growing and changing. This makes it impossible for models of code to keep current with all available APIs by simply training these models on existing code repositories. Thus, existing models inherently cannot generalize to using unseen functions and libraries, because these would never appear in the training data. In contrast, when human programmers use functions and libraries for the first time, they frequently refer to textual resources such as code manuals and documentation, to explore and understand the available functionality. Inspired by this observation, we introduce DocPrompting: a natural-language-to-code generation approach that explicitly leverages documentation by (1) retrieving the relevant documentation pieces given an NL intent, and (2) generating code based on the NL intent and the retrieved documentation. DocPrompting is general: it can be applied to any programming language and is agnostic to the underlying neural model. We demonstrate that DocPrompting consistently improves NL-to-code models: DocPrompting improves strong base models such as CodeT5 by 2.85% in pass@1 (52% relative gain) and 4.39% in pass@10 (30% relative gain) in execution-based evaluation on the popular Python CoNaLa benchmark; on a new Bash dataset tldr, DocPrompting improves CodeT5 and GPT-Neo1.3B by up to absolute 6.9% exact match.