RuleChef: Grounding LLM Task Knowledge in Human-Editable Rules

Ádám Kovács, Nadia Verdha, Gábor Recski

arXiv:2607.01293 · 2026-07-12 공개 · arXiv · PDF

human-in-the-loop ner text-classification rule-based-nlp llm-rules rule-bootstraping inspectable-models deterministic-rules

Abstract

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

한국어 요약

한 줄 요약

RuleChef는 LLM을 활용해 NLP 작업에 대한 실행 가능한 규칙을 생성하고, 인간 피드백과 추가 예시로 반복적으로 개선하는 프레임워크이다.

핵심 기여도

핵심 아이디어

RuleChef는 LLM을 규칙 학습에 활용하여, 추론 시에는 결정론적이고 검증 가능한 규칙 시스템을 실행하는 방식을 제안한다. 기존 NLP 시스템은 규칙 기반에서 신경망 기반으로 이동하면서 투명성과 수정 가능성에 한계가 생겼다. 특히 의료, 법률, 금융 등 규제가 엄격한 분야에서는 예측이 명확한 패턴으로 추적되지 않으면 인증이 어려운 문제가 있다. RuleChef는 LLM을 사용하여 작업 설명과 라벨 예시를 바탕으로 규칙을 생성하고, 평가 집합에서 실패를 클러스터링하여 규칙을 반복적으로 패치한다. 이 과정에서 규칙의 정밀도가 평가 집합에서 향상되면 채택되며, 인간 전문가의 피드백도 규칙 개선에 활용된다.

기술적 접근법

주요 결과

의의 및 한계

RuleChef는 규칙 기반 시스템의 투명성과 수정 가능성을 유지하면서 LLM의 유연성을 결합한 혁신적인 접근법이다. 특히 규제가 엄격한 분야에서 예측의 신뢰성을 높이고, 계산 비용을 줄이는 데 유용하다. 그러나 LLM의 반복적 프롬프팅 과정은 비결정적이며, 규칙의 진화 과정을 정확히 이해하기 위해서는 추가 실험이 필요하다. 또한, 규칙 생성의 질은 프롬프트 설계와 훈련 신호 분리에 크게 의존하며, 이는 도메인에 따라 크게 달라질 수 있다.

실용적 활용

RuleChef는 의료, 법률, 금융 등 규제가 엄격한 분야에서 예측의 신뢰성을 높이고, 투명한 규칙 기반 시스템을 구축하는 데 활용 가능하다. 또한, 규칙 생성 및 개선 과정에서 인간 전문가의 피드백을 통합할 수 있어, 협업 환경에서의 실용성도 높다.