arXiv:2412.09280cs.CL2024-12NAACL

用知识生成程序解决专业领域复杂计算问题

Learning to Solve Domain-Specific Calculation Problems with Knowledge-Intensive Programs Generator

  • 根据领域文档生成含专业知识的计算程序
  • 通过迭代偏好对齐提升代码与领域知识的一致性
  • 在法律领域验证有效,且可跨领域迁移

领域大语言模型(LLMs)基于通用大模型开发,但某些领域任务仍需专业知识支持。本文研究知识密集型计算问题,发现当数学问题涉及复杂领域规则和知识文档时,通用模型表现困难,而非仅因术语复杂。为此提出知识密集型程序生成管道KIPG:根据领域文档生成程序,提取关键变量,利用程序计算依赖领域知识的结果。通过迭代偏好对齐,代码生成器逐步提升与领域知识的逻辑一致性。以法律领域为例,实验验证了该方法的有效性,并对各模块进行深入分析。结果表明,该代码生成器无需重新训练即可适应其他领域。

原文摘要 · Abstract (English)

Domain Large Language Models (LLMs) are developed for domain-specific tasks based on general LLMs. But it still requires professional knowledge to facilitate the expertise for some domain-specific tasks. In this paper, we investigate into knowledge-intensive calculation problems. We find that the math problems to be challenging for LLMs, when involving complex domain-specific rules and knowledge documents, rather than simple formulations of terminologies. Therefore, we propose a pipeline to solve the domain-specific calculation problems with Knowledge-Intensive Programs Generator more effectively, named as KIPG. It generates knowledge-intensive programs according to the domain-specific documents. For each query, key variables are extracted, then outcomes which are dependent on domain knowledge are calculated with the programs. By iterative preference alignment, the code generator learns to improve the logic consistency with the domain knowledge. Taking legal domain as an example, we have conducted experiments to prove the effectiveness of our pipeline, and extensive analysis on the modules. We also find that the code generator is also adaptable to other domains, without training on the new knowledge.

知识增强程序生成领域建模

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。