RuleChef:将LLM任务知识扎根于可人工编辑的规则
RuleChef: Grounding LLM Task Knowledge in Human-Editable Rules
AI总结:
提出RuleChef框架,利用大语言模型为NLP任务生成可执行规则,并通过示例和人工反馈迭代优化,最终得到快速、确定且可检查的规则系统。
摘要:
我们提出了RuleChef,一个利用大语言模型(LLM)为文本分类、命名实体识别(NER)或关系抽取等NLP任务生成可执行规则的框架。规则基于任务描述和一组标注示例生成,然后根据额外的示例和人工对现有规则的反馈进行迭代改进。RuleChef还可以利用给定任务中任何现有模型的观测输入-输出对来引导规则。LLM仅在训练时使用,合成规则并根据在保留集上测量的失败进行迭代修补。这个过程的结果是一个快速、确定且可检查的规则系统。在分类和NER任务上进行了初步评估。我们以Apache 2.0许可证开源发布RuleChef。
英文摘要:
We present RuleChef, a framework that uses large language models (LLMs) to generate executable rules for NLP tasks such as text classification, Named Entity Recognition (NER), or relation extraction. Rules are generated based on a task description and a set of labeled examples, then they are iteratively improved based both on additional examples and on human feedback overexisting rules. RuleChef can also be used to bootstrap rules using the observed input-output pairs from any existing model for a given task. LLMs are used only at learning time, synthesizing rules and iteratively patching them based on failures measured on a held-out split. The result of this process is a fast, deterministic, and inspectable rule system. Preliminary evaluation is performed on both classification and NER tasks. We release RuleChef as open-source software under an Apache 2.0
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。