Tianjin Mo
Current Organizations / Institutes
The organizations/institutes from the scholar's latest article
Research Subjects
Tianjin Mo has a total of 4 co-authors. Here are the top co-authors by number of shared publications:
- Hongyi Zhang
School of Information Science and Engineering, Chongqing Jiaotong University, Chongqing 400074, China
1 shared publication - Qiao Xiao
School of Information Science and Engineering, Chongqing Jiaotong University, Chongqing 400074, China
1 shared publication - Ren Li
School of Information Science and Engineering, Chongqing Jiaotong University, Chongqing, China
1 shared publication - Yunsong Wu
School of Big Data and Software Engineering, Chongqing University, Chongqing 400044, China
1 shared publication
Latest Publications
- Open Access
- 26 June 2024
- Published by MDPI AG in Algorithms
- Vol. 17 (7) , 278
Domain-Specific Few-Shot Table Prompt Question Answering via Contrastive Exemplar Selection
As a crucial task in natural language processing, table question answering has garnered significant attention from both the academic and industrial communities. It enables intelligent querying and question answering over structured data by translating natural language into corresponding SQL statements. Recently, there have been notable advancements in the general domain table question answering task, achieved through prompt learning with large language models. However, in specific domains, where tables often have a higher number of columns and questions tend to be more complex, large language models are prone to generating invalid SQL or NoSQL statements. To address the above issue, this paper proposes a novel few-shot table prompt question answering approach. Specifically, we design a prompt template construction strategy for structured SQL generation. It utilizes prompt templates to restructure the input for each test data and standardizes the model output, which can enhance the integrity and validity of generated SQL. Furthermore, this paper introduces a contrastive exemplar selection approach based on the question patterns and formats in domain-specific contexts. This enables the model to quickly retrieve the relevant exemplars and learn characteristics about given question. Experimental results on the two datasets in the domains of electric energy and structural inspection show that the proposed approach outperforms the baseline models across all comparison settings.
- 26 June 2024
- Published by MDPI AG in Algorithms
- Vol. 17 (7) , 278
Open AccessDomain-Specific Few-Shot Table Prompt Question Answering via Contrastive Exemplar Selection
As a crucial task in natural language processing, table question answering has garnered significant attention from both the academic and industrial communities. It enables intelligent querying and question answering over structured data by translating natural language into corresponding SQL statements. Recently, there have been notable advancements in the general domain table question answering task, achieved through prompt learning with large language models. However, in specific domains, where tables often have a higher number of columns and questions tend to be more complex, large language models are prone to generating invalid SQL or NoSQL statements. To address the above issue, this paper proposes a novel few-shot table prompt question answering approach. Specifically, we design a prompt template construction strategy for structured SQL generation. It utilizes prompt templates to restructure the input for each test data and standardizes the model output, which can enhance the integrity and validity of generated SQL. Furthermore, this paper introduces a contrastive exemplar selection approach based on the question patterns and formats in domain-specific contexts. This enables the model to quickly retrieve the relevant exemplars and learn characteristics about given question. Experimental results on the two datasets in the domains of electric energy and structural inspection show that the proposed approach outperforms the baseline models across all comparison settings.