paper-with-me

홈 › Papers

LEANCODE: Understanding Models Better for Code Simplification of Pre-trained Large Language Models

2025-05-20 · Yan Wang, Ling Ding, Tien N Nguyen, Shaohua Wang, Yanan Zheng

Large Language Models for code often entail significant computational complexity, which grows significantly with the length of the input code sequence. We propose LeanCode for code simplification to reduce training and prediction time, leveraging code contexts in utilizing attention scores to represent the tokens' importance. We advocate for the selective removal of tokens based on the average context-aware attention scores rather than average scores across all inputs. LeanCode uses the attention scores of `CLS' tokens within the encoder for classification tasks, such as code search. It also employs the encoder-decoder attention scores to determine token significance for sequence-to-sequence tasks like code summarization. Our evaluation shows LeanCode's superiority over the SOTAs DietCode and Slimcode, with improvements of 60% and 16% for code search, and 29% and 27% for code summarization, respectively.

📄 PDF Abstract BibTeX arXiv:2505.14759

Code (0)

등록된 구현이 없습니다.

Tasks

Code SearchCode SummarizationDecoder

Methods 이 논문이 사용한 방법론

Softmax The Softmax output function transforms a previous layer's output into a vector of probabilities. It is commonly used for multiclass classification. Given an input vector $x$…
Attention 설명 없음

Similar Papers 제목 키워드 기반

CleanCodec: Efficient and Robust Speech Tokenization via Perceptually Guided Encoding

2026-06-03 · Eugene Kwek, Feng Liu, Rui Zhang, Wenpeng Yin arxiv

Neural audio codecs are a key component of speech processing pipelines, compressing audio into discrete tokens for downstream modeling. However, existing codecs struggle to balance reconstruction quality with token effic…

Voice Conversion

Bring the Noise: Introducing Noise Robustness to Pretrained Automatic Speech Recognition

2023-09-05 · Patrick Eickhoff, Matthias Möller, Theresa Pekarek Rosin, Johannes Twiefel 외

In recent research, in the domain of speech processing, large End-to-End (E2E) systems for Automatic Speech Recognition (ASR) have reported state-of-the-art performance on various benchmarks. These systems intrinsically …

Automatic Speech RecognitionAutomatic Speech Recognition (ASR)DecoderDenoising+2

Zero-Shot Crosslingual Sentence Simplification

2020-11-01 · EMNLP 2020 11 · Jonathan Mallinson, Rico Sennrich, Mirella Lapata

Sentence simplification aims to make sentences easier to read and understand. Recent approaches have shown promising results with encoder-decoder models trained on large amounts of parallel data which often only exists i…

DecoderSentenceTranslation

Explain to me like I am five -- Sentence Simplification Using Transformers

2022-12-08 · Aman Agarwal

Sentence simplification aims at making the structure of text easier to read and understand while maintaining its original meaning. This can be helpful for people with disabilities, new language learners, or those with lo…

Sentence

EASSE: Easier Automatic Sentence Simplification Evaluation

2019-08-13 · IJCNLP 2019 11 · Fernando Alva-Manchego, Louis Martin, Carolina Scarton, Lucia Specia

We introduce EASSE, a Python package aiming to facilitate and standardise automatic evaluation and comparison of Sentence Simplification (SS) systems. EASSE provides a single access point to a broad range of evaluation r…

Sentence