The Impact of Positional Encoding on Length Generalization in Transformers
Results and benchmarks
The Impact of Positional Encoding on Length Generalization in Transformers presents a transformer method.
Benchmark evidence is limited
Evidence graph: 3 refs, 3 links.
Utility signals: depth 65/100, grounding 75/100, status medium.
Implementation
Historical official implementation (not recommended for new builds)
Only a historical official implementation is available
Use with caution for new projects; verify against current tooling and maintained community alternatives.
mcgill-nlp/length-generalization · 139 stars · Last push Apr 30, 2024
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- 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
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.
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> Validation caveat
Framework baselines
- Hugging Face Transformers training guide
Modern transformer training baseline.
- PyTorch nn.Transformer docs
Reference transformer building block implementation.
Repositories and ecosystem
Closest related implementations
These are not paper-verified. Use them as reference points when no direct implementation is available.
- huggingface/pytorch-image-models Adjacent · Confidence: Medium · 37,089 stars
Matches contextual method/domain keyword: transformer
No additional verified repositories beyond the primary recommendation.
These repositories had low-confidence matching signals and are hidden by default.
Showing top 6 by score. 1 additional low-confidence matches are hidden.
- lucidrains/audiolm-pytorch
Confidence: Low · 2,627 stars
- lucidrains/x-transformers
Confidence: Low · 5,941 stars
- lucidrains/MEGABYTE-pytorch
Confidence: Low · 656 stars
- McGill-NLP/length-generalization
Confidence: Low · 139 stars
- pprp/smol_training_zh
Confidence: Low · 58 stars
- anhtuandev-04/MEGABYTE-pytorch
Confidence: Low · 0 stars
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
Open this paper in HFEPX to review benchmark signals, evaluation modes, and human-feedback protocol context.
Open in HFEPXJump to Paper2Code search queries derived from this paper's research context.
Data includes links from Papers with Code ( CC-BY-SA-4.0 ).