Pith. sign in

REVIEW 1 cited by

DAPE: Data-Adaptive Positional Encoding for Length Extrapolation

Not yet reviewed by Pith; the record is open.

This paper has not been read by Pith yet. Machine review is queued; the pith claim, tier, and objections will appear here once it completes.

SPECIMEN: schema-true, not a live event

T0 review · schema-true

One-sentence machine reading of the paper's core claim.

pith:XXXXXXXX · record.json · timestamp

arxiv 2405.14722 v6 pith:NM3AGOX6 submitted 2024-05-23 cs.CL

classification cs.CL
keywords encodingpositionallengthmodeldapedata-adaptivedynamicallyfixed
verification ladder T0 review T1 audit T2 compute T3 formal
0 comments
read the original abstract

Positional encoding plays a crucial role in transformers, significantly impacting model performance and length generalization. Prior research has introduced absolute positional encoding (APE) and relative positional encoding (RPE) to distinguish token positions in given sequences. However, both APE and RPE remain fixed after model training regardless of input data, limiting their adaptability and flexibility. Hence, we expect that the desired positional encoding should be data-adaptive and can be dynamically adjusted with the given attention. In this paper, we propose a Data-Adaptive Positional Encoding (DAPE) method, which dynamically and semantically adjusts based on input context and learned fixed priors. Experimental validation on real-world datasets (Arxiv, Books3, and CHE) demonstrates that DAPE enhances model performances in terms of trained length and length generalization, where the improvements are statistically significant. The model visualization suggests that our model can keep both local and anti-local information. Finally, we successfully train the model on sequence length 128 and achieve better performance at evaluation sequence length 8192, compared with other static positional encoding methods, revealing the benefit of the adaptive positional encoding method.

Discussion (0). Continue with ORCID to comment.

Forward citations

Cited by 1 Pith paper

Reviewed papers in the Pith corpus that reference this work. Sorted by Pith novelty score. Full citation record

  1. Logits-Based Finetuning

    cs.LG 2025-05 conditional novelty 5.0 of 10

    The proposed logits-based fine-tuning, which mixes teacher logits with ground truth labels, improves math reasoning accuracy of small LLaMA models over standard supervised fine-tuning, with a controlled GSM8K gain of ...

Pith tools