• A
  • A
  • A
  • ABC
  • ABC
  • ABC
  • А
  • А
  • А
  • А
  • А
Regular version of the site

Transformer with Adaptive Attention for Source Code Modeling

Student: Ponomarev Vyacheslav

Supervisor: Ekaterina Lobacheva

Faculty: Faculty of Computer Science

Educational Programme: Applied Mathematics and Information Science (Bachelor)

Final Grade: 10

Year of Graduation: 2020

Since its introduction, Transformer has established a new level of quality in various natural language processing tasks. It is designed to work with sequential input since natural language is usually well represented as a sequence of tokens. When tackling source code related tasks the model needs to work with programming language and it is more important to utilize internal tree structure of programs. In this work we investigate the ways to integrate structural information into Transformer components. We integrate two different types of adaptive mechanism into the self-attention layer so to consider dependencies in input more accurately. The first of them, sequential adaptive attention, leads to a better performance. The second, tree-based adaptive attention, works slightly worse but uses a significantly smaller fraction of tokens in the input sequence.

Full text (added May 20, 2020)

Student Theses at HSE must be completed in accordance with the University Rules and regulations specified by each educational programme.

Summaries of all theses must be published and made freely available on the HSE website.

The full text of a thesis can be published in open access on the HSE website only if the authoring student (copyright holder) agrees, or, if the thesis was written by a team of students, if all the co-authors (copyright holders) agree. After a thesis is published on the HSE website, it obtains the status of an online publication.

Student theses are objects of copyright and their use is subject to limitations in accordance with the Russian Federation’s law on intellectual property.

In the event that a thesis is quoted or otherwise used, reference to the author’s name and the source of quotation is required.

Search all student theses