Pick demonstrations that match an LLM's syntax and ChatGPT can beat a supervised OpenIE model in 6-shot

October 16, 20237 min

Overview

Decision SnapshotNeeds Validation

The idea is simple and practical: measure how the model re-expresses inputs and choose demos that reduce that gap. Results on CaRB are strong; on ontology tasks the method helps but does not close the gap to supervised models.

Citations1

Evidence Strength0.75

Confidence0.78

Risk Signals9

Trust Signals

Findings with numeric evidence: 3/3

Findings with evidence refs: 3/3

Results with explicit delta: 4/5

Reproducibility

Status: Partial assets available

Open source: Partial

At A Glance

Cost impact: 50%

Production readiness: 40%

Novelty: 60%

Authors

Ji Qi, Kaixuan Ji, Xiaozhi Wang, Jifan Yu, Kaisheng Zeng, Lei Hou, Juanzi Li, Bin Xu

Links

Abstract / PDF / Data

Why It Matters For Business

You can improve black-box LLM few-shot extraction by choosing demos that match the model's own output style; this yields production-quality gains without fine-tuning and reduces annotation cost for Open IE.

Who Should Care

Summary TLDR

The authors show that few-shot extraction with a black-box LLM (ChatGPT) improves when the demonstration set matches the LLM's own syntactic tendencies. They estimate a syntactic discrepancy by having the LLM paraphrase sentences and measuring Hierarchically Weighted Syntactic (HWS) distance. Then they build demonstrations dominated by low-discrepancy examples (plus a few variants, 8:2 ratio), sampling demos with probability proportional to the inverse discrepancy. On the CaRB Open IE benchmark, 6-shot ChatGPT reaches 55.3 F1 (slightly above supervised OpenIE6 55.2). The same pipeline, with a content-based discrepancy, improves few-shot relation and event extraction. Choosing the right dis-<

Problem Statement

Large LLMs can do few-shot information extraction, but performance varies widely because test sentences can differ in syntax or content from what the model naturally produces. We need a practical way to pick demonstrations that make an LLM reason consistently for a target dataset.

Main Contribution

A simple estimation of distributional discrepancy for a black-box LLM: prompt the model to paraphrase and measure syntactic distance (HWS).

A demo-construction mechanism: sample demonstrations so most are low-discrepancy (8:2 low/high ratio) using inverse-normalized discrepancy as sampling probability.

Key Findings

Syntactic mismatch predicts extraction errors for ChatGPT.

NumbersR^2 = 0.58 (Figure 1 correlation)

Practical UsePrefer demonstrations that are syntactically similar to your target examples; this lowers LLM extraction error.

Evidence RefSec 3.1.2, Figure 1

6-shot ChatGPT with selected demonstrations reached 55.3 F1 on CaRB.

Numbers55.3 F1 vs OpenIE6 55.2 F1 (Table 1)

Practical UseWith careful demo selection, you can match or slightly exceed a strong supervised OpenIE model without any model tuning.

Evidence RefSec 3.1.3, Table 1

Results

MetricValueBaselineDeltaSplit / DatasetEvidenceEvidence Ref
CaRB F1 (Open IE)55.3OpenIE6 55.2+0.1CaRB (full test set), 6-shotTable 1: ChatGPT (n=6, S=4932) = 55.3 F1Table 1, Sec 3.1.3
CaRB F1 (few-shot trend)n=3..7: 49.155.3 F1CaRB, ChatGPT with increasing shots (S=4932)Table 1 shows F1 by shot count: 3->49.1,4->53.9,5->54.7,6->55.3,7->55.0Table 1

What To Try In 7 Days

Measure discrepancy: have your LLM paraphrase ~200 examples and compute a simple syntactic or content distance.

Build demos: pick 8 low-discrepancy examples and 2 diverse variants per query; use inverse-discrepancy sampling.

A/B test on your dataset: compare random demos vs discrepancy-selected demos and track F1/precision/recall.

Reproducibility

Code AvailableNo
Data AvailableYes
Open Source StatusPartial
LicenseUnknown

Data URLs

CaRB (public benchmark)ROBUST (public OIE candidate set)TACRED (public)ACE05 (public)

Risks & Boundaries

Limitations

Choosing the right discrepancy metric is not automatic and needs task-specific design.

Method needs a sizable candidate pool and repeated LLM calls, which costs money and time.

When Not To Use

You lack API access or budget for many LLM calls.

You cannot build a candidate set of demonstrations similar to your target data.

Failure Modes

Manually biased or adversarial demonstrations can degrade or bias outputs.

Wrong choice of discrepancy metric leads to poor demonstration selection.

Core Entities

Models

ChatGPT (turbo-3.5)OpenIE6OpenIE4SpanOIERnnOIEKLGSaliencyED

Metrics

F1Micro F1PrecisionRecallHWS distance

Datasets

CaRBROBUSTTACREDACE05

Benchmarks

CaRBTACREDACE05