CLAIMay 23, 2023

Generating Data for Symbolic Language with Large Language Models

arXiv:2305.13917v1138 citationsHas Code
Originality Highly original
AI Analysis

This addresses the problem of high annotation costs and deployment inefficiency for researchers and practitioners working on symbolic language tasks, offering a novel approach to data generation.

The paper tackles the problem of generating data for symbolic language tasks like semantic parsing and code generation, which are annotation-expensive, by proposing SymGen, a method using large language models (LLMs) as data generators. The result shows that a 1%-sized task model can achieve comparable or better performance than LLMs, and generated data with few human demonstrations can be as effective as over 10 times the amount of human-annotated data.

While large language models (LLMs) bring not only performance but also complexity, recent work has started to turn LLMs into data generators rather than task inferencers, where another affordable task model is trained for efficient deployment and inference. However, such an approach has primarily been applied to natural language tasks and has not yet been explored for symbolic language tasks with complex structured outputs (e.g., semantic parsing and code generation). In this paper, we propose SymGen which utilizes LLMs for generating various annotation-expensive symbolic language data. SymGen consists of an informative prompt to steer generation and an agreement-based verifier to improve data correctness. We conduct extensive experiments on six symbolic language tasks across various settings. Compared with the LLMs, we demonstrate the 1\%-sized task model can achieve comparable or better performance, largely cutting inference and deployment costs. We also show that generated data with only a few human demonstrations can be as effective as over 10 times the amount of human-annotated data when training the task model, saving a considerable amount of annotation effort. SymGen sheds new light on data generation for complex tasks, and we release the code at \href{https://github.com/HKUNLP/SymGen}{https://github.com/HKUNLP/SymGen}.

Code Implementations1 repo
Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes