SearcharxivSearch

arXiv subjects

Rong Liang

Publications and source records attributed to Rong Liang.

2 recordsLinked to original sources

AstBERT: Enabling Language Model for Financial Code Understanding with Abstract Syntax Trees

Using the pre-trained language models to understand source codes has attracted increasing attention from financial institutions owing to the great potential to uncover financial risks. However, there are several challenges in applying these language models to solve programming language-related problems directly. For instance, the shift of domain knowledge between natural language (NL) and programming language (PL) requires understanding the semantic and syntactic information from the data from different perspectives. To this end, we propose the AstBERT model, a pre-trained PL model aiming to better understand the financial codes using the abstract syntax tree (AST). Specifically, we collect a sheer number of source codes (both Java and Python) from the Alipay code repository and incorporate both syntactic and semantic code knowledge into our model through the help of code parsers, in which AST information of the source codes can be interpreted and integrated. We evaluate the performance of the proposed model on three tasks, including code question answering, code clone detection and code refinement. Experiment results show that our AstBERT achieves promising performance on three different downstream tasks.

cs.AI

Semi-overlap Functions and Novel Fuzzy Reasoning Algorithms with Applications

It is worth noticing that a fuzzy conjunction and its corresponding fuzzy implication can form a residual pair if and only if it is left-continuous. In order to get a more general result related on residual implications that induced by aggregation functions, we relax the definition of general overlap functions, more precisely, removing its right-continuous, and then introduce a new kind of aggregation functions, which called semi-overlap functions. Subsequently, we study some of their related algebraic properties and investigate their corresponding residual implications. Moreover, serval scholars have provided kinds of methods for fuzzy modus ponens (FMP,for short) problems so far, such as Zadeh's compositional rule of inference (CRI, for short), Wang's triple I method (TIM, for short) and the quintuple implication principle (QIP, for short). Compared with CRI and TIM methods, QIP method has some advantages in solving FMP problems, in this paper, we further consider the QIP method for FMP problems and prove that it satisfies the reducibility of multiple-rules fuzzy reasoning. Finally, we propose a new classification algorithm that based on semi-overlap functions and QIP method, which called SO5I-FRC algorithm. Through the comparative tests, the average accuracy of SO5I-FRC algorithm is higher than FARC-HD algorithm. The experimental results indicate that semi-overlap functions and QIP method have certain advantages and a wide range of applications in classification problems.

math.LO