scimeatlas

Research map / Large language models / Language, safety and interpretability

Code4Struct: Code Generation for Few-Shot Event Structure Prediction

ACL 2023Large language models › Language, safety and interpretabilityapproach: Controlled text generationopen problems in this approach205 citations (OpenAlex)

Read the paperPlace an idea next to itCheck your own paper ↗

14measured effects
9improved
3no clear effect
1hurt
1mixed

AI-extracted. The measured effects below were read by AI from the paper's full text (no summary yet). Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Measured effects reported in the paper

What was changedWhereMeasuredEffect
use a code prompt rather than text prompt T1 with 20 in-context examplesCode4Struct (code-davinci-002) · ACE05-E Arg-CF1: 54.9 -> 58.5Improved
use a code prompt rather than BART-Gen-style text prompt on text-davinci-003 at 20-shotCode4Struct (text-davinci-003) · ACE05-E Arg-CF1: 60.8 (text) vs 60.4 (code)No clear effect
20-shot Code4Struct instead of 20-shot DEGREECode4Struct (text-davinci-003) · ACE05-E Arg-CF1: 30.9 -> 60.4Improved
zero-shot Code4Struct with text-davinci-003 vs 50-shot DEGREECode4Struct · ACE05-E Arg-CF1: 37.3 -> 37.8Improved
add event trigger marking (ablation)Code4Struct (code-davinci-002) · ACE05-E Arg-C 20-shotF1: 53.8 -> 58.5Improved
add event description (ablation)Code4Struct (code-davinci-002) · ACE05-E Arg-C 20-shotF1: 57.1 -> 58.5Improved
add event description (ablation)Code4Struct (code-davinci-002) · ACE05-E 0-shot Arg-IF1: 51.4 -> 50.6Hurt
add type annotation (ablation)Code4Struct (code-davinci-002) · ACE05-E Arg-C 20-shotF1: 57.6 -> 58.5Improved
add type annotation (ablation)Code4Struct (code-davinci-002) · ACE05-E Arg-C 10-shotF1: 54.5 -> 52.8Mixed
add hierarchical (parent class) event definition (ablation)Code4Struct (code-davinci-002) · ACE05-E Arg-C 20-shotF1: 55.4 -> 58.5Improved
use 10 examples from sibling event type instead of 0-shotCode4Struct (code-davinci-002) · ACE05-E 23 test types Arg-CF1: 42.9 -> 54.9Improved
use sibling-type instead of same-type examples (10-shot)Code4Struct (code-davinci-002) · ACE05-E 23 test types Arg-CF1: 55.2 -> 54.9No clear effect

Later papers that compared with this method

1 later accepted paper reports Code4Struct as a baseline in their results tables; 1 of them report a better number on most of the results they share with it.

Matched by method name in results tables read by AI. Authors' own tables tend to favour the newer method, and a comparison can be missed when a method is renamed.

Open problems in controlled text generation

How can generation be controlled and checked reliably across languages, domains and model sizes without extra cost?

All 5 open problems and what was already tried →

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy