Neuro-Symbolic Query Compiler
Precise recognition of search intent in Retrieval-Augmented Generation (RAG) systems remains a challenging goal, especially under resource constraints and for complex queries with nested structures and dependencies.This paper presents QCompiler, a neuro-symbolic framework inspired by linguistic grammar rules and compiler design, to bridge this gap.It theoretically designs a minimal yet sufficient Backus-Naur Form (BNF) grammar G[q] to formalize complex queries.Unlike previous methods, this grammar maintains completeness while minimizing redundancy.Based on this, QCompiler includes a Query Expression Translator, a Lexical Syntax Parser, and a Recursive Descent Processor to compile queries into Abstract Syntax Trees (ASTs) for execution.The atomicity of the sub-queries in the leaf nodes ensures more precise document retrieval and response generation, significantly improving the RAG system's ability to address complex queries.
Authors
- Ye Qi (ORCID: https://orcid.org/0000-0002-5629-6774)
- Zhicheng Dou (ORCID: https://orcid.org/0000-0002-9781-948X)
- Ji-Rong Wen (ORCID: https://orcid.org/0000-0002-9777-9676)
- Yongkang Wu (ORCID: https://orcid.org/0009-0003-8126-3581)
- Yuyao Zhang (ORCID: https://orcid.org/0009-0000-4867-9356)
- Zhonghua Li (ORCID: https://orcid.org/0000-0002-1308-3103)
- Xiaoxi Li (ORCID: https://orcid.org/0000-0001-5399-5628)
- Jiajie Jin
Publication Details
- Published
- 2025-01-01
- DOI
- https://doi.org/10.18653/v1/2025.findings-acl.628
- Primary Topic
- Neural Networks and Applications
- Type
- article
- Field-Weighted Citation Impact
- 0.00
Funders
- National Natural Science Foundation of China
- Renmin University of China
- Ministry of Education, India
- National Science and Technology Major Project
- Fundamental Research Funds for the Central Universities