arrow
返回

CombTransformers: Statement-Wise Transformers for Statement-Wise Representations

delete2023-10-01
delete2
delete
OA
AI
F
Francesco Bertolotti
W
Walter Cazzola *
DOI:10.1109/TSE.2023.3310793delete
delete原文链接
delete原文求助
delete分享
delete收藏
摘要

摘要

En 中文
This study presents a novel category of Transformer architectures known as comb transformers, which effectively reduce the space complexity of the self-attention layer from a quadratic to a subquadratic level. This is achieved by processing sequence segments independently and incorporating X-word embeddings to merge cross-segment information. The reduction in attention memory requirements enables the deployment of deeper architectures, potentially leading to more competitive outcomes. Furthermore, we design an abstract syntax tree (AST)-based code representation to effectively exploit comb transformer properties. To explore the potential of our approach, we develop nine specific instances based on three popular architectural concepts: funnel, hourglass, and encoder-decoder. These architectures are subsequently trained on three code-related tasks: method name generation, code search, and code summarization. These tasks encompass a range of capabilities: short/long sequence generation and classification. In addition to the proposed comb transformers, we also evaluate several baseline architectures for comparative analysis. Our findings demonstrate that the comb transformers match the performance of the baselines and frequently perform better.
Keyword:
Programming languages
machine learning
learning representations
code search and summarization
method name Gen

期刊

IEEE Transactions on Software Engineering 封面图
IEEE Transactions on Software Engineering
IF:
5.6
论文数:
2.9K
被引数:
1.1W

机构

U
University of Milan
学者数:
5.1W
论文数: 3.9W
被引数: 5.0W
引用论文

引用论文

Direct Relay Pathways from Lemniscal Auditory Thalamus to Secondary Auditory Field in Mice
err2018-10-01
err0
errOAAI
errShinpei Ohga; Hiroaki Tsukano; Masao Horie; Hiroki Terashima; Nana Nishio; Yamato Kubota; Kuniyuki Takahashi; Ryuichi Hishida; Hirohide Takebayashi; Katsuei Shibuki
err分享
err收藏
The Puerto Rico Gap Analysis Project Volume 1: land cover, vertebrate species distributions, and land stewardship
err
IF0
err2008-01-01
err0
errOAAI
errW. A. Gould; C. Alarcon; B. Fevold; M.E. Jimenez; S. Martinuzzi; G. Potts; M. Quinones; M. Solórzano; E. Ventosa
err分享
err收藏
Acid catalysis in hydrolytic reactions水解反应中的酸催化
err1929-01-01
err0
PREAI
errJ. N. Brönsted; W. F. K. Wynne-Jones
err分享
err收藏
Effect of a Legume Cover Crop on Carbon Storage and Erosion in an Ultisol under Maize Cultivation in Southern Benin
err2005-12-09
err0
errOAAI
errBernard Barthès; Anastase Azontonde; Eric Blanchart; Cyril Girardin; Cécile Villenave; Robert Oliver; Christian Feller
err分享
err收藏
学者 查看更多内容