We gratefully acknowledge support from
the Simons Foundation and member institutions.
Full-text links:

Download:

Current browse context:

cs.AI

Change to browse by:

References & Citations

DBLP - CS Bibliography

Bookmark

(what is this?)
CiteULike logo BibSonomy logo Mendeley logo del.icio.us logo Digg logo Reddit logo

Computer Science > Artificial Intelligence

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

Abstract: 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.
Subjects: Artificial Intelligence (cs.AI); Machine Learning (cs.LG)
Cite as: arXiv:2201.07984 [cs.AI]
  (or arXiv:2201.07984v4 [cs.AI] for this version)

Submission history

From: Tiehua Zhang [view email]
[v1] Thu, 20 Jan 2022 03:27:26 GMT (1818kb,D)
[v2] Wed, 27 Apr 2022 15:33:02 GMT (1075kb,D)
[v3] Mon, 10 Oct 2022 03:30:47 GMT (1205kb,D)
[v4] Tue, 11 Oct 2022 11:00:22 GMT (1205kb,D)

Link back to: arXiv, form interface, contact.