AI Paper Atlas

Research map / Architectures and efficiency / Attention and transformers

Integrating Tree Path in Transformer for Code Representation

NeurIPS 2021 · Architectures and efficiency › Attention and transformers · approach: Transformer block and depth design · 25 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's title only (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 changedWhereMeasuredEffect
add relative path encoding in Key and Value (ablation)TPTrans Large · CodeSearchNet PythonF1: 31.42 -> 36.59Helped
add relative path encoding in Key and Value (ablation)TPTrans Large · CodeSearchNet RubyF1: 22.33 -> 29.82Helped
add relative path in Value (on top of Key) (ablation)TPTrans Large · CodeSearchNet RubyF1: 27.76 -> 29.82Helped
add absolute path encoding to vanilla Transformer (ablation)Transformer · CodeSearchNet PythonF1: 31.42 -> 33.70Helped
add absolute path on top of full relative path encoding (ablation)TPTrans Large · CodeSearchNet (4 languages)F1: Python 36.59 vs 36.45No clear effect
use full path node information instead of hops only (ablation)TPTrans Base · CodeSearchNet RubyF1: 27.05 -> 30.02Helped
use full path node information instead of hops only (ablation)TPTrans Base · CodeSearchNet PythonF1: 34.89 -> 35.88Helped
add normalization of GRU path encoding (ablation)TPTrans Base · CodeSearchNet RubyF1: 24.05 -> 30.02Helped
add normalization of GRU path encoding (ablation)TPTrans Base · CodeSearchNet PythonF1: 34.74 -> 35.88Helped
add path encoding to deeper 6-layer Transformer (ablation)TPTrans deep · CodeSearchNet RubyF1: 21.71 -> 28.82Helped
TPTrans vs Code Transformer baselineTPTrans Base · CodeSearchNet JavascriptF1: 32.13 -> 30.65Hurt
TPTrans vs Code Transformer baselineTPTrans Base · CodeSearchNet GoF1: 51.33 -> 53.54Helped

Closest papers by meaning

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.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy