cs.CLOct 7, 2026

Goldsmith: Gold-Loss-Guided Definition Optimization with an Agentic Annotation Harness

Authors: Yihan Li, Hanyi Zhang, Xiaoxi Jiang, Man Guo

Organizations: Sun Yat-sen University, Guangzhou, China · South China University of Technology, Guangzhou, China

Abstract

Many annotation projects begin before experts have a stable guideline or enough labels to train a task-specific model. We present Goldsmith, an agentic pipeline that turns a small gold set---expert-annotated calibration examples representing the intended task boundaries---into a reusable structured annotation definition. Goldsmith treats this definition as a trainable textual object. Candidate definitions are run on the same gold examples and scored with an executable structured loss, while the output schema, formatting, retrieval, repair, judging, and human review remain in an external harness. A large language model (LLM) editor converts the highest-loss failures into textual-gradient revisions, which are accepted only when the measured loss decreases. In prompt-optimization comparisons, Goldsmith improves over direct rewriting, OPRO, APE, and PromptBreeder under matched evaluation protocols. The resulting definition also improves downstream annotation when combined with retrieval, score-based routing, and human review across typed span, pair-level relation, and fixed-trigger event-argument tasks. These results show that scarce expert supervision can support both task-definition learning and scalable annotation.

Figures & tables

Appendix figures & tables5 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. Refining and Reusing Annotation Guidelines for LLM Annotation

    May 20, 2026Kon Woo Kim, Jin-Dong Kim, Akiko AizawaLarge Language Model AnnotationsAnnotations

  2. Prompt2Skill: Unsupervised Skill Optimization From Natural Language Instructions

    Sep 29, 2026Bo Ni, Li Li, Ryan A. Rossi +2Unsupervised Skill DiscoveryAutomatic Prompt Optimization

  3. EvoPool: Evolutionary Programmatic Annotation for Label-Efficient Specialized Supervision

    Jun 1, 2026Tianyi Xu, Yaolun Zhang, Xuan Ouyang +1Human AnnotatorsMulti-Agent Evolution