Source code can be parsed into the abstract syntax tree (AST) based on defined syntax rules. However, in pre-training, little work has considered the incorporation of tree structure into the learning process. In this paper, we present TreeBERT, a tree-based pre-trained model for improving programming language-oriented generation tasks. To utilize tree structure, TreeBERT represents the AST corresponding to the code as a set of composition paths and introduces node position embedding. The model is trained by tree masked language modeling (TMLM) and node order prediction (NOP) with a hybrid objective. TMLM uses a novel masking strategy designed according to the tree's characteristics to help the model understand the AST and infer the missing semantics of the AST. With NOP, TreeBERT extracts the syntactical structure by learning the order constraints of nodes in AST. We pre-trained TreeBERT on datasets covering multiple programming languages. On code summarization and code documentation tasks, TreeBERT outperforms other pre-trained models and state-of-the-art models designed for these tasks. Furthermore, TreeBERT performs well when transferred to the pre-trained unseen programming language.
Hash-Based Tree Similarity and Simplification in Genetic Programming for Symbolic Regression
Josef Ressel Centre for Symbolic Regression(约瑟夫·雷塞尔符号回归中心);University of Applied Sciences Upper Austria(上奥地利应用科学大学);Johannes Kepler University(约翰内斯·开普勒大学)
Generalized Optimal Classification Trees: A Mixed-Integer Programming Approach
Department of Computing, The Hong Kong Polytechnic University(计算机系,香港理工大学);Department of Management and Marketing, The Hong Kong Polytechnic University(管理与市场营销系,香港理工大学);Business School, Sichuan University(四川大学商学院)
MurTree: Optimal Classification Trees via Dynamic Programming and Search
Delft University of Technology(代尔夫特理工大学);LAAS CNRS(法国国家科学研究中心LAAS实验室);RMIT University(皇家墨尔本理工大学);University of Melbourne(墨尔本大学);Monash University(莫纳什大学);DATA61(DATA61研究所)
Efficient Constant Optimization for Symbolic Regression with GPU-Accelerated Tree-Based Genetic Programming
The Hong Kong Polytechnic University(香港理工大学);University of Washington(华盛顿大学);Amazon Web Services(亚马逊网络服务);Jiangxi University of Finance and Economics(江西财经大学);EEO Education Technology(EEO教育科技);Chongqing Medical University(重庆医科大学);Eastern Institute of Technology(东方理工学院)
Reinforcement Learning for Search Tree Size Minimization in Constraint Programming: New Results on Scheduling Benchmarks
Faculty of Electrical Engineering, Czech Technical University in Prague(电气工程系,布拉格捷克技术大学);Czech Institute of Informatics, Robotics and Cybernetics, Czech Technical University in Prague(捷克信息学、机器人学与自动化研究所,布拉格捷克技术大学)
Genetic Programming for Explainable Manifold Learning
Centre for Data Science and Artificial Intelligence(数据科学与人工智能中心);School of Engineering and Computer Science(工程与计算机科学学院);Victoria University of Wellington(威灵顿维多利亚大学)
A Mathematical Programming Approach to Optimal Classification Forests
Institute of Mathematics (IMAG), Universidad de Granada(格拉纳达大学数学研究所(IMAG));Institute of Mathematics (IMUS), Universidad de Sevilla(塞维利亚大学数学研究所(IMUS));Heinz College of Information Systems and Public Policy, Carnegie Mellon University(卡内基梅隆大学信息系统与公共政策学院)
CoInGP: Convolutional Inpainting with Genetic Programming
Faculty of Electrical Engineering and Computing, University of Zagreb(萨格勒布大学电气工程与计算学院);Dipartimento di Matematica e Geoscienze, Università degli Studi di Trieste(的里雅斯特大学数学与地球科学系);Cyber Security Research Group, Delft University of Technology(代尔夫特理工大学网络安全研究组);NOVA Information Management School (NOVA IMS), Universidade Nova de Lisboa(新里斯本大学NOVA信息管理学院)