Research map / Architectures and efficiency / Attention and transformers
Rethinking Positional Encoding in Tree Transformer for Code Representation
Han Peng, Ge Li, Yunfei Zhao, Zhi Jin
Peking University
Read the paperPlace an idea next to itCheck your own paper ↗
13measured effects
10improved
3no clear effect
AI-extracted. The measured effects below were read by AI from the paper's full text (no summary yet). Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| use the proposed tree Transformer instead of Kim et al. 2020 | tree Transformer baseline · completion Python | ACC (All): 62.15 -> 63.19 | Improved |
| use the proposed tree Transformer instead of vanilla Transformer | Transformer · summarization JavaScript | F1: 22.62 -> 25.03 | Improved |
| use proposed model instead of Shaw et al. relative PE | Shaw et al. 2018 · completion JavaScript | ACC (Value): 59.09 -> 58.99 | No clear effect |
| add first coordinate dimension (sibling order) (ablation) | our model · completion Python | ACC (All): 59.36 -> 63.19 | Improved |
| add second coordinate dimension (parent child count) (ablation) | our model · completion Python | ACC (All): 62.04 -> 63.19 | Improved |
| add first dimension (ablation) | our model · summarization JavaScript | F1: 24.22 -> 25.03 | Improved |
| add second dimension (ablation) | our model · summarization Python | F1: 35.36 -> 36.00 | Improved |
| add global absolute position encoding (ablation) | our model · completion Python | ACC (All): 62.70 -> 63.19 | Improved |
| add local relative position encoding (ablation) | our model · completion JavaScript | ACC (All): 65.67 -> 66.48 | Improved |
| add local relative encoding (ablation) | our model · summarization JavaScript | ACC: 13.13 -> 13.21 | No clear effect |
| add global absolute encoding (ablation) | our model · summarization Python | F1: 35.80 -> 36.00 | Improved |
| combine global and local bias rather than either alone (ablation) | our model · completion and summarization | all metrics | Improved |
Closest papers by meaning
- Integrating Tree Path in Transformer for Code Representation (NeurIPS 2021 · similarity 0.92)
- Novel positional encodings to enable tree-based transformers (NeurIPS 2019 · similarity 0.89)
- Algebraic Positional Encodings (NeurIPS 2024 · similarity 0.86)
- AST-T5: Structure-Aware Pretraining for Code Generation and Understanding (ICML 2024 · similarity 0.85)
- PaTH Attention: Position Encoding via Accumulating Householder Transformations (NeurIPS 2025 · similarity 0.84)
- Functional Interpolation for Relative Positions improves Long Context Transformers (ICLR 2024 · similarity 0.84)
Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.
