paper-with-me

Papers

Evaluating Long Range Dependency Handling in Code Generation Models using Multi-Step Key Retrieval

2024-07-23 · Yannick Assogba, Donghao Ren

As language models support larger and larger context sizes, evaluating their ability to make effective use of that context becomes increasingly important. We analyze the ability of several code generation models to handle long range dependencies using a suite of multi-step key retrieval tasks in context windows up to 8k tokens in length. The tasks progressively increase in difficulty and allow more nuanced evaluation of model capabilities than tests like the popular needle-in-the-haystack test. We find that performance degrades significantly (up to 2x) when a function references another function that is defined later in the prompt. We also observe that models that use sliding window attention mechanisms have difficulty handling references further than the size of a single window. We perform simple prompt modifications using call graph information to improve multi-step retrieval performance up to 3x. Our analysis highlights different facets of long-context performance and is suggestive of prompt construction strategies for code completion tools

📄 PDF Abstract BibTeX arXiv:2407.21049

Code (0)

등록된 구현이 없습니다.

Tasks

8kCode CompletionCode GenerationRetrieval

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 제목 키워드 기반

U-shaped Vision Mamba for Single Image Dehazing

2024-02-06 · Zhuoran Zheng, Chen Wu

Currently, Transformer is the most popular architecture for image dehazing, but due to its large computational complexity, its ability to handle long-range dependency is limited on resource-constrained devices. To tackle…

Image DehazingImage RestorationMambaSingle Image Dehazing

U-Mamba: Enhancing Long-range Dependency for Biomedical Image Segmentation

2024-01-09 · Jun Ma, Feifei Li, Bo wang

Convolutional Neural Networks (CNNs) and Transformers have been the most popular architectures for biomedical image segmentation, but both of them have limited ability to handle long-range dependencies because of inheren…

Cell SegmentationImage SegmentationMambaOrgan Segmentation+3

MambaDepth: Enhancing Long-range Dependency for Self-Supervised Fine-Structured Monocular Depth Estimation

2024-06-06 · Ionuţ Grigore, Călin-Adrian Popa

In the field of self-supervised depth estimation, Convolutional Neural Networks (CNNs) and Transformers have traditionally been dominant. However, both architectures struggle with efficiently handling long-range dependen…

DecoderDepth EstimationMambaMonocular Depth Estimation

LongAttn: Selecting Long-context Training Data via Token-level Attention

2025-02-24 · Longyun Wu, Dawei Zhu, Guangxiang Zhao, Zhuocheng Yu 외

With the development of large language models (LLMs), there has been an increasing need for significant advancements in handling long contexts. To enhance long-context capabilities, constructing high-quality training dat…

Sentence

Cluster-Former: Clustering-based Sparse Transformer for Long-Range Dependency Encoding

2020-09-13 · Shuohang Wang, Luowei Zhou, Zhe Gan, Yen-Chun Chen 외

Transformer has become ubiquitous in the deep learning field. One of the key ingredients that destined its success is the self-attention mechanism, which allows fully-connected contextual encoding over input tokens. Howe…

ClusteringLanguage ModellingOpen-Domain Question AnsweringQuestion Answering