Skip to main content
QUICK REVIEW

[논문 리뷰] Controlled Text Generation with Natural Language Instructions

Wangchunshu Zhou, Yuchen Eleanor Jiang|arXiv (Cornell University)|2023. 04. 27.
Topic ModelingComputer Science인용 수 10
한 줄 요약

본 논문은 InstructCTG를 도입한다. 이는 생성 제약을 자연어 지시문으로 말로 표현하고 사전 학습된 모델을 미세 조정하는 학습 시 프레임워크로, 디코딩 없이도 유연하고 지시 기반의 제어 텍스트 생성을 가능하게 하며 보지 못한 제약에 대해 강한 few-shot 일반화를 가진다.

ABSTRACT

Large language models generate fluent texts and can follow natural language instructions to solve a wide range of tasks without task-specific training. Nevertheless, it is notoriously difficult to control their generation to satisfy the various constraints required by different applications. In this work, we present InstructCTG, a controlled text generation framework that incorporates different constraints by conditioning on natural language descriptions and demonstrations of the constraints. In particular, we first extract the underlying constraints of natural texts through a combination of off-the-shelf NLP tools and simple heuristics. We then verbalize the constraints into natural language instructions to form weakly supervised training data. By prepending natural language descriptions of the constraints and a few demonstrations, we fine-tune a pre-trained language model to incorporate various types of constraints. Compared to existing search-based or score-based methods, InstructCTG is more flexible to different constraint types and has a much smaller impact on the generation quality and speed because it does not modify the decoding procedure. Additionally, InstructCTG allows the model to adapt to new constraints without re-training through the use of few-shot task generalization and in-context learning abilities of instruction-tuned language models.

연구 동기 및 목표

  • 대형 언어 모델 출력 제어가 디코딩 시 제약을 넘어서 필요하다는 점을 동기화한다.
  • 제약의 자연어 표현을 사용하는 학습 시 튜닝 접근 방식을 제안한다.
  • 잠재 제약으로 문장을 주석하고 이를 지시문으로 말로 표현하여 약한 감독 학습 코퍼스를 합성한다.
  • 강한 제약 만족도와 유창성, 보지 못한 제약과 소수-shot 시나리오에 대한 일반화를 시연한다.

제안 방법

  • 자연어 문장을 위한 lexical, syntactic, semantic, style, length 제약을 자동으로 추정하여 대규모 약약한 감독 학습 코퍼스를 합성한다.
  • 각 제약을 자연어 지시문으로 말로 표현하고 이를 대상 문장과 연결해 학습 페어를 구성한다.
  • 강화된 코퍼스로 미리 학습된 지시문 튜닝 모델(T0-11B)을 미세 조정한다.
  • 맥락 내 학습을 통해 제약의 다중 시연을 도입하여 보지 못한 제약에 대한 소수-shot 일반화를 가능하게 한다.
  • 제약 음성화를 통해 작업 프롬프트를 제약 말로 구성하여 조건부 텍스트 생성으로 확장한다(예: paraphrase and question generation).
  • ‘and’로 연계를 통해 제약의 구성 작용을 허용한다.
  • 추론 시 표준 디코딩 절차를 유지하고 디코더를 수정하지 않는다.
Figure 1 : A cartoon of the InstructCTG framework. InstructCTG is an instruction-tuned model for controlled text generation. In our experiments, we consider lexical , syntax , semantic , style , and length constraints.
Figure 1 : A cartoon of the InstructCTG framework. InstructCTG is an instruction-tuned model for controlled text generation. In our experiments, we consider lexical , syntax , semantic , style , and length constraints.

실험 결과

연구 질문

  • RQ1자연어로 말로 표현된 제약이 디코딩 시간 제약만큼이나 효과적으로 생성을 안내할 수 있는가?
  • RQ2약한 감독 제약 데이터로의 지시문 튜닝이 unseen 제약에 대해 제로샷과 소수샷에서 얼마나 잘 전달되는가?
  • RQ3이 방법이 조건부 생성 작업과 다수 제약의 연결에 일반화되는가?
  • RQ4데모와 여러 템플릿이 보인 제약 및 보이지 않는 제약의 만족도와 유창성에 미치는 영향은?

주요 결과

  • InstructCTG는 어휘, 구문, 의미, 스타일 및 길이 제약 전반에서 기준선보다 동등하거나 더 나은 제약 충족도를 달성한다.
  • 이 방법은 여러 제약 기반 디코딩 방법보다 더 높은 유창도 점수와 더 빠른 생성을 보인다.
  • InstructCTG는 데모를 통해 보지 못한 제약에 대해 소수-shot 설정에서도 강한 일반화를 보여준다.
  • 이 방법은 조건부 생성 작업으로 효과적으로 확장되며 여러 제약의 조합을 지원한다.
  • 몇 가지 데모(예: 5)가 성능과 효율 사이의 우호적인 trade-off를 제공한다.
Figure 2 : Results on the composition of multiple constraints. The aggregate performance number on the $y$ -axis is measured by the following procedure: First, for each constraint type, we calculate the percentage of succ and fluency that the model retains compared to the performance without constra
Figure 2 : Results on the composition of multiple constraints. The aggregate performance number on the $y$ -axis is measured by the following procedure: First, for each constraint type, we calculate the percentage of succ and fluency that the model retains compared to the performance without constra

이 논문 읽기

누빈트 뷰어에서 원문을 열고, 읽으면서 궁금한 곳을 바로 물어보세요.

누빈트에서 이 논문 읽기

이 리뷰는 AI가 논문 원문을 바탕으로 만들었습니다. 인용하기 전에 원문을 확인해 주세요.