Skip to content
OpenTrain AIFor AI Companies

The Impact of Positional Encoding on Length Generalization in Transformers

Published May 1, 2023
arXiv PDF
Researcher verdict
Starting point
Use as implementation starting point
Benchmark evidence
Missing
Not verified yet
Time to first repro
A few days
Plan setup time
Risk flags
1
Review before use

Results and benchmarks

Freshness tier: cold
The Impact of Positional Encoding on Length Generalization in Transformers presents a transformer method.

Implementation

Historical official implementation (not recommended for new builds)

Why this implementation
Confidence: medium

huggingface/pytorch-image-models is the closest maintained adjacent implementation (Matches contextual method/domain keyword: transformer). It is not paper-verified; validate algorithm and evaluation setup against the paper before trusting reported metrics. Community adoption signal: 37089 GitHub stars.

Open mcgill-nlp/length-generalization
Reproduction risks
  • Adjacent implementations are not paper-verified
  • Recommended repository is adjacent and not paper-verified.
  • No direct maintained implementation is currently verified.
  • Only historical official repository was found: mcgill-nlp/length-generalization.
  • No maintained paper-verified implementation met reliability thresholds.

Compare implementation paths

Compare maintenance quality, reproducibility coverage, and evidence confidence before choosing a reproduction baseline.

Maintenance
Stale
Confidence
High
Reproducibility
Moderate
Stars
139
Last push
Apr 30, 2024 (846d)

Official implementation from Papers with Code · Repository link is mentioned in the paper metadata

  • No push in 12+ months
  • No CI pipeline detected
  • No Docker setup
Maintenance
Stale
Confidence
Low
Reproducibility
Moderate
Stars
2,627
Last push
Jan 12, 2025 (590d)

Matched via arXiv identifier search · Community adoption signal (2627 stars)

  • No push in 12+ months
  • No Docker setup
  • Dependency manifest missing
Maintenance
Active
Confidence
Low
Reproducibility
Moderate
Stars
5,941
Last push
Aug 24, 2026 (1d)

Matched via arXiv identifier search · Community adoption signal (5941 stars)

  • No CI pipeline detected
  • No Docker setup
  • Low confidence match

Reproduction readiness

Time to first repro: days
Last checked: Aug 24, 2026

Setup required

Dependencies pinned, manual setup needed

  • mcgill-nlp/length-generalization has environment.yml but requires manual environment setup.
  • Last push was 846 days ago, so expect possible dependency version conflicts.
  • No Dockerfile, so you will set up the environment manually.
  • No CI pipeline, so test coverage is unknown.
Open mcgill-nlp/length-generalization

Hardware requirements

  • Expect multi-day setup/compute for meaningful reproduction based on current guidance.

Quick start

git clone https://github.com/mcgill-nlp/length-generalization.git
conda env create -f environment.yml && conda activate <env-name>

Framework baselines

Repositories and ecosystem

Closest related implementations

These are not paper-verified. Use them as reference points when no direct implementation is available.

No additional verified repositories beyond the primary recommendation.

Hugging Face artifacts

No trustworthy direct or curated related Hugging Face artifacts were found yet. Use targeted searches to quickly locate candidate models, datasets, and demos.

Tip: start with models, then check datasets and spaces if you need evaluation data or demos.

Research context

Tasks

None detected

Methods

Transformer

Domains

None detected

Evaluation and human feedback data

Open this paper in HFEPX to review benchmark signals, evaluation modes, and human-feedback protocol context.

Open in HFEPX
Explore similar papers

Jump to Paper2Code search queries derived from this paper's research context.

Data includes links from Papers with Code ( CC-BY-SA-4.0 ).