paper-with-me

홈 › Papers

Naturalness of Attention: Revisiting Attention in Code Language Models

2023-11-22 · Mootez Saad, Tushar Sharma

Language models for code such as CodeBERT offer the capability to learn advanced source code representation, but their opacity poses barriers to understanding of captured properties. Recent attention analysis studies provide initial interpretability insights by focusing solely on attention weights rather than considering the wider context modeling of Transformers. This study aims to shed some light on the previously ignored factors of the attention mechanism beyond the attention weights. We conduct an initial empirical study analyzing both attention distributions and transformed representations in CodeBERT. Across two programming languages, Java and Python, we find that the scaled transformation norms of the input better capture syntactic structure compared to attention weights alone. Our analysis reveals characterization of how CodeBERT embeds syntactic code properties. The findings demonstrate the importance of incorporating factors beyond just attention weights for rigorously understanding neural code models. This lays the groundwork for developing more interpretable models and effective uses of attention mechanisms in program analysis.

📄 PDF Abstract BibTeX arXiv:2311.13508

Code (0)

등록된 구현이 없습니다.

Methods 이 논문이 사용한 방법론

CodeBERT 설명 없음

Similar Papers 제목 키워드 기반

PAMA-TTS: Progression-Aware Monotonic Attention for Stable Seq2Seq TTS With Accurate Phoneme Duration Control

2021-10-09 · Yunchao He, Jian Luan, Yujun Wang

Sequence expansion between encoder and decoder is a critical challenge in sequence-to-sequence TTS. Attention-based methods achieve great naturalness but suffer from unstable issues like missing and repeating phonemes, n…

Decoder

Zero-Shot Long-Form Voice Cloning with Dynamic Convolution Attention

2022-01-25 · Artem Gorodetskii, Ivan Ozhiganov

With recent advancements in voice cloning, the performance of speech synthesis for a target speaker has been rendered similar to the human level. However, autoregressive voice cloning systems still suffer from text align…

FormSpeech Synthesistext-to-speechText to Speech+1

Attention-Constrained Inference for Robust Decoder-Only Text-to-Speech

2024-04-30 · Hankun Wang, Chenpeng Du, Yiwei Guo, Shuai Wang 외

Recent popular decoder-only text-to-speech models are known for their ability of generating natural-sounding speech. However, such models sometimes suffer from word skipping and repeating due to the lack of explicit mono…

Decodertext-to-speechText to Speech

Do Large Language Models Have an English Accent? Evaluating and Improving the Naturalness of Multilingual LLMs

2024-10-21 · Yanzhu Guo, Simone Conia, Zelin Zhou, Min Li 외

Current Large Language Models (LLMs) are predominantly designed with English as the primary language, and even the few that are multilingual tend to exhibit strong English-centric biases. Much like speakers who might pro…

Location-Relative Attention Mechanisms For Robust Long-Form Speech Synthesis

2019-10-23 · Eric Battenberg, RJ Skerry-Ryan, Soroosh Mariooryad, Daisy Stanton 외

Despite the ability to produce human-level speech for in-domain text, attention-based end-to-end text-to-speech (TTS) systems suffer from text alignment failures that increase in frequency for out-of-domain text. We show…

FormSpeech Synthesistext-to-speechText to Speech