paper-with-me

홈 › Papers

Large Language Models can Learn Rules

2023-10-10 · Zhaocheng Zhu, Yuan Xue, Xinyun Chen, Denny Zhou, Jian Tang, Dale Schuurmans, Hanjun Dai

When prompted with a few examples and intermediate steps, large language models (LLMs) have demonstrated impressive performance in various reasoning tasks. However, prompting methods that rely on implicit knowledge in an LLM often generate incorrect answers when the implicit knowledge is wrong or inconsistent with the task. To tackle this problem, we present Hypotheses-to-Theories (HtT), a framework that learns a rule library for reasoning with LLMs. HtT contains two stages, an induction stage and a deduction stage. In the induction stage, an LLM is first asked to generate and verify rules over a set of training examples. Rules that appear and lead to correct answers sufficiently often are collected to form a rule library. In the deduction stage, the LLM is then prompted to employ the learned rule library to perform reasoning to answer test questions. Experiments on relational reasoning, numerical reasoning and concept learning problems show that HtT improves existing prompting methods, with an absolute gain of 10-30% in accuracy. The learned rules are also transferable to different models and to different forms of the same problem.

📄 PDF Abstract BibTeX arXiv:2310.07064

Code (1)

google-deepmind/llms_can_learn_rules 공식 구현

Tasks

Relational Reasoning

Methods 이 논문이 사용한 방법론

Library 설명 없음

Similar Papers 제목 키워드 기반

Learning Mathematical Rules with Large Language Models

2024-10-22 · Antoine Gorceix, Bastien Le Chenadec, Ahmad Rammal, Nelson Vadori 외

In this paper, we study the ability of large language models to learn specific mathematical rules such as distributivity or simplifying equations. We present an empirical analysis of their ability to generalize these rul…

ChatRule: Mining Logical Rules with Large Language Models for Knowledge Graph Reasoning

2023-09-04 · Linhao Luo, Jiaxin Ju, Bo Xiong, Yuan-Fang Li 외

Logical rules are essential for uncovering the logical connections between relations, which could improve reasoning performance and provide interpretable results on knowledge graphs (KGs). Although there have been many e…

Knowledge Graphs

NL2GenSym: Natural Language to Generative Symbolic Rules for SOAR Cognitive Architecture via Large Language Models

2025-10-10 · Fang Yuan, Junjie Zeng, Yue Hu, Zhengqiu Zhu 외 arxiv

SOAR, a classic symbol-based cognitive architecture, has been fostering the development of general, human-like intelligent agents. Nevertheless, its practical adoption is hindered by the laborious manual rule coding. Eme…

Automatically Generating Rules of Malicious Software Packages via Large Language Model

2025-04-24 · XiangRui Zhang, Haoyu Chen, Yongzhong He, Wenjia Niu 외

Today's security tools predominantly rely on predefined rules crafted by experts, making them poorly adapted to the emergence of software supply chain attacks. To tackle this limitation, we propose a novel tool, RuleLLM,…

Language ModelingLanguage ModellingLarge Language Model

Language Generation with Strictly Proper Scoring Rules

2024-05-29 · Chenze Shao, Fandong Meng, Yijin Liu, Jie zhou

Language generation based on maximum likelihood estimation (MLE) has become the fundamental approach for text generation. Maximum likelihood estimation is typically performed by minimizing the log-likelihood loss, also k…

Language ModelingLanguage Modellingscoring ruleText Generation