Papers › GoLLIE: Annotation Guidelines improve Zero-Shot Information-Extraction

GoLLIE: Annotation Guidelines improve Zero-Shot Information-Extraction

5 Oct 2023arXiv:2310.03668archive 2025-07-28

Oscar Sainz, Iker García-Ferrero, Rodrigo Agerri, Oier Lopez de Lacalle, German Rigau, Eneko Agirre

Large Language Models (LLMs) combined with instruction tuning have made significant progress when generalizing to unseen tasks. However, they have been less successful in Information Extraction (IE), lagging behind task-specific models. Typically, IE tasks are characterized by complex annotation guidelines that describe the task and give examples to humans. Previous attempts to leverage such information have failed, even with the largest models, as they are not able to follow the guidelines out of the box. In this paper, we propose GoLLIE (Guideline-following Large Language Model for IE), a model able to improve zero-shot results on unseen IE tasks by virtue of being fine-tuned to comply with annotation guidelines. Comprehensive evaluation empirically demonstrates that GoLLIE is able to generalize to and follow unseen guidelines, outperforming previous attempts at zero-shot information extraction. The ablation study shows that detailed guidelines are key for good results.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2310.03668")

Code

Syntology Ran 18 of 25 code samples harvested from 1 repository linked to this paper; 7 have no recorded run. Of those that ran: 1 ran · our draft was wrong; 17 ran with no contract checked.

By repository: official repository: 25 samples from 1 repository, 18 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

hitz-zentroa/gollie officialmentioned in papermentioned on GitHubpytorchApache-2.0 report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

25 samples harvested; 18 ran; 0 honoured the contract we drafted; 7 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · our draft was wrong
17ran
7unverified

Licence: 0 of the 25 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from hitz-zentroa/gollie. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

FlashRotaryEmbedding hitz-zentroa/gollie/src/model/patch_models/modeling_flash_llama.py official repository ran Apache-2.0 (permissive) · c8bee51bf997140e · report
LlamaRMSNorm hitz-zentroa/gollie/src/model/patch_models/modeling_flash_llama.py official repository ran Apache-2.0 (permissive) · 3e5e1a1a6ae02184 · report
clean_guidelines hitz-zentroa/GoLLIE/src/paraphrase/utils.py official repository ran Apache-2.0 (permissive) · a31cb9b49aa3fb29 · report
find_all_linear_names hitz-zentroa/GoLLIE/src/model/model_utils.py official repository ran Apache-2.0 (permissive) · ef50b7a39a5c925f · report
fix_prompt_outputs hitz-zentroa/GoLLIE/src/evaluate.py official repository ran fingerprinted Apache-2.0 (permissive) · 25ec67d8318f45ea · report
get_class hitz-zentroa/GoLLIE/src/evaluate.py official repository ran Apache-2.0 (permissive) · 40c63137e2539113 · report
get_class hitz-zentroa/GoLLIE/src/generate_data.py official repository ran Apache-2.0 (permissive) · d5e035b43805bee4 · report
get_device_map hitz-zentroa/GoLLIE/src/model/load_model.py official repository ran Apache-2.0 (permissive) · 47660e151147cb9e · report
get_num_return_sentences hitz-zentroa/GoLLIE/src/paraphrase/utils.py official repository ran Apache-2.0 (permissive) · d4149ebae2786013 · report
get_trainable_parameters hitz-zentroa/GoLLIE/src/model/model_utils.py official repository ran Apache-2.0 (permissive) · f32e00b404c9eec4 · report
prepare_data hitz-zentroa/GoLLIE/src/dataset/dataset.py official repository ran Apache-2.0 (permissive) · 67c3b2ef9e5c371c · report
prepare_model_for_kbit_training hitz-zentroa/GoLLIE/src/model/model_utils.py official repository ran Apache-2.0 (permissive) · 4fa8a9b51ecfca0c · report
remove_hallucinations hitz-zentroa/GoLLIE/src/evaluate.py official repository ran Apache-2.0 (permissive) · 02c4c2306e3a0610 · report
rmsnorm_func hitz-zentroa/gollie/src/model/patch_models/modeling_flash_llama.py official repository ran · our draft was wrong fingerprinted Apache-2.0 (permissive) · 349dce8e37362617 · report
to_bilou_encoding hitz-zentroa/GoLLIE/src/tasks/label_encoding.py official repository ran Apache-2.0 (permissive) · d2660d11a380300e · report
to_iob2_encoding hitz-zentroa/GoLLIE/src/tasks/label_encoding.py official repository ran Apache-2.0 (permissive) · 6c7118a2f5cc50e4 · report
to_iob_encoding hitz-zentroa/GoLLIE/src/tasks/label_encoding.py official repository ran Apache-2.0 (permissive) · f709c942540a746b · report
update_guidelines hitz-zentroa/GoLLIE/src/paraphrase/utils.py official repository ran Apache-2.0 (permissive) · e05fd99ba3c452ba · report
LlamaAttention hitz-zentroa/gollie/src/model/patch_models/modeling_flash_llama.py official repository unverified Apache-2.0 (permissive) · 04267dd6afc2cfd2 · report
LlamaDecoderLayer hitz-zentroa/gollie/src/model/patch_models/modeling_flash_llama.py official repository unverified Apache-2.0 (permissive) · 71e315c10d6d705e · report
LlamaForCausalLM hitz-zentroa/gollie/src/model/patch_models/modeling_flash_llama.py official repository unverified Apache-2.0 (permissive) · fb6a17240fa2036c · report
LlamaModel hitz-zentroa/gollie/src/model/patch_models/modeling_flash_llama.py official repository unverified Apache-2.0 (permissive) · b6c0bf260825919c · report
batch_tokenization hitz-zentroa/GoLLIE/src/dataset/dataset.py official repository unverified Apache-2.0 (permissive) · d28dcf85671df49b · report
load_model hitz-zentroa/GoLLIE/src/model/load_model.py official repository unverified Apache-2.0 (permissive) · bfca1181a79266f6 · report
repeat_kv hitz-zentroa/gollie/src/model/patch_models/modeling_flash_llama.py official repository unverified Apache-2.0 (permissive) · 44b3ce4579f7806b · report

Tasks

Event Argument ExtractionEvent ExtractionLanguage ModelingLanguage ModellingLarge Language ModelLow Resource Named Entity RecognitionNamed Entity RecognitionNamed Entity Recognition (NER)Relation ExtractionZero-shot Event ExtractionZero-shot Named Entity Recognition (NER)

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Named Entity Recognition (NER) ACE 2005 GoLLIE F1 89.6 #2 of 20 Archive leaderboard report
Named Entity Recognition (NER) BC5CDR GoLLIE F1 88.4 #12 of 16 Archive leaderboard report
Named Entity Recognition (NER) CoNLL 2003 (English) GoLLIE F1 93.1 #29 of 73 Archive leaderboard report
Named Entity Recognition (NER) NCBI-disease GoLLIE F1 86.5 #22 of 26 Archive leaderboard report
Named Entity Recognition (NER) WNUT 2017 GoLLIE F1 54.3 #11 of 23 Archive leaderboard report
Relation Extraction ACE 2005 GoLLIE RE Micro F1 70.1 #4 of 30 Archive leaderboard report
Zero-shot Named Entity Recognition (NER) Broad Twitter Corpus GoLLIE Entity F1 51.4 #2 of 2 Archive leaderboard report
Zero-shot Named Entity Recognition (NER) CrossNER GoLLIE AI 61.6 #2 of 4 Archive leaderboard report
Zero-shot Named Entity Recognition (NER) CrossNER GoLLIE Literature 62.7 #2 of 4 Archive leaderboard report
Zero-shot Named Entity Recognition (NER) CrossNER GoLLIE Music 68.4 #2 of 4 Archive leaderboard report
Zero-shot Named Entity Recognition (NER) CrossNER GoLLIE Politics 60.2 #2 of 4 Archive leaderboard report
Zero-shot Named Entity Recognition (NER) CrossNER GoLLIE Science 56.3 #2 of 4 Archive leaderboard report
Zero-shot Named Entity Recognition (NER) HarveyNER GoLLIE Entity F1 41.3 #1 of 2 Archive leaderboard report
Zero-shot Named Entity Recognition (NER) WikiEvents GoLLIE Entity F1 81.3 #1 of 2 Archive leaderboard report

Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections