Towards a Holistic Understanding of Mathematical Questions with Contrastive Pre-training

Yuting Ning, Zhenya Huang, Xin Lin, Enhong Chen, Shiwei Tong +2 more
1/18/2023
10 citations
cs.CL
contrastive-ssl

Official code: bigdata-ustc/QuesCo (7 stars, Python, last commit 2023-07-19). Most starred: nnnyt/QuesCo, a community implementation (8 stars, Python, PyTorch, last commit 2023-07-19, 1.1× the official stars). 1 more implementation below.

Abstract

Understanding mathematical questions effectively is a crucial task, which can benefit many applications, such as difficulty estimation. Researchers have drawn much attention to designing pre-training models for question representations due to the scarcity of human annotations (e.g., labeling difficulty).

Show full abstract

However, unlike general free-format texts (e.g., user comments), mathematical questions are generally designed with explicit purposes and mathematical logic, and usually consist of more complex content, such as formulas, and related mathematical knowledge (e.g., Function). Therefore, the problem of holistically representing mathematical questions remains underexplored. To this end, in this paper, we propose a novel contrastive pre-training approach for mathematical question representations, namely QuesCo, which attempts to bring questions with more similar purposes closer. Specifically, we first design two-level question augmentations, including content-level and structure-level, which generate literally diverse question pairs with similar purposes. Then, to fully exploit hierarchical information of knowledge concepts, we propose a knowledge hierarchy-aware rank strategy (KHAR), which ranks the similarities between questions in a fine-grained manner. Next, we adopt a ranking contrastive learning task to optimize our model based on the augmented and ranked questions. We conduct extensive experiments on two real-world mathematical datasets. The experimental results demonstrate the effectiveness of our model.

View on arXivView PDF

Code Implementations(2)

Code implementations of this paper
RepositoryTypeStarsLanguageLicenseLast commit
bigdata-ustc/QuesCoOfficial7Python–2023-07-19
nnnyt/QuesCoCommunity8Python–2023-07-19

Source code for the AAAI 2023 paper "Towards a Holistic Understanding of Mathematical Questions with Contrastive Pre-training"

70PythonNov 30, 20223 years ago
nnnyt/QuesCoCommunity63%
PyTorch

Source code for the AAAI 2023 paper "Towards a Holistic Understanding of Mathematical Questions with Contrastive Pre-training"

82PythonNov 30, 20223 years ago
aaai2023bertcontrastive-learningnatural-language-understandingpretraining+1 more

Similar Papers

Cite this paper

@article{ning2023towards,
  title  = {Towards a Holistic Understanding of Mathematical Questions with Contrastive Pre-training},
  author = {Yuting Ning and Zhenya Huang and Xin Lin and Enhong Chen and Shiwei Tong and Zheng Gong and Shijin Wang},
  year   = {2023},
  eprint = {2301.07558},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2301.07558v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2301.07558.svg)](https://codeofpaper.com/paper/2301.07558)

Discussion