paper-with-me

홈 › Papers

Implant Global and Local Hierarchy Information to Sequence based Code Representation Models

2023-03-14 · Kechi Zhang, Zhuo Li, Zhi Jin, Ge Li

Source code representation with deep learning techniques is an important research field. There have been many studies that learn sequential or structural information for code representation. But sequence-based models and non-sequence-models both have their limitations. Researchers attempt to incorporate structural information to sequence-based models, but they only mine part of token-level hierarchical structure information. In this paper, we analyze how the complete hierarchical structure influences the tokens in code sequences and abstract this influence as a property of code tokens called hierarchical embedding. The hierarchical embedding is further divided into statement-level global hierarchy and token-level local hierarchy. Furthermore, we propose the Hierarchy Transformer (HiT), a simple but effective sequence model to incorporate the complete hierarchical embeddings of source code into a Transformer model. We demonstrate the effectiveness of hierarchical embedding on learning code structure with an experiment on variable scope detection task. Further evaluation shows that HiT outperforms SOTA baseline models and show stable training efficiency on three source code-related tasks involving classification and generation tasks across 8 different datasets.

📄 PDF Abstract BibTeX arXiv:2303.07826

Code (1)

zkcpku/hit-hierarchy-transformer 공식 구현 pytorch

Methods 이 논문이 사용한 방법론

Multi-Head Attention 설명 없음
Attention 설명 없음
BPE Byte Pair Encoding, or BPE, is a subword segmentation algorithm that encodes rare and unknown words as sequences of subword units. The intuition is that various word…
Position-Wise Feed-Forward Layer 설명 없음
Residual Connection 설명 없음
Dense Connections Dense Connections, or Fully Connected Connections, are a type of layer in a deep neural network that use a linear operation where every input is connected to every output…
Absolute Position Encodings Absolute Position Encodings are a type of position embeddings for [Transformer-based models] where positional encodings are…
Linear Layer A Linear Layer is a projection $\mathbf{XW + b}$.

Similar Papers 제목 키워드 기반

Global and Local Hierarchy-aware Contrastive Framework for Implicit Discourse Relation Recognition

2022-11-25 · Yuxin Jiang, Linhan Zhang, Wei Wang

Due to the absence of explicit connectives, implicit discourse relation recognition (IDRR) remains a challenging task in discourse analysis. The critical step for IDRR is to learn high-quality discourse relation represen…

Contrastive LearningMulti-Task LearningRelation

Exploiting Global and Local Hierarchies for Hierarchical Text Classification

2022-05-05 · Ting Jiang, Deqing Wang, Leilei Sun, Zhongzhi Chen 외

Hierarchical text classification aims to leverage label hierarchy in multi-label text classification. Existing methods encode label hierarchy in a global view, where label hierarchy is treated as the static hierarchical …

ClassificationMulti Label Text ClassificationMulti-Label Text Classificationtext-classification+1

ImplantFormer: Vision Transformer based Implant Position Regression Using Dental CBCT Data

2022-10-29 · Xinquan Yang, Xuguang Li, Xuechen Li, Peixi Wu 외

Implant prosthesis is the most appropriate treatment for dentition defect or dentition loss, which usually involves a surgical guide design process to decide the implant position. However, such design heavily relies on t…

DecoderPositionPosition regressionregression

LH-Mix: Local Hierarchy Correlation Guided Mixup over Hierarchical Prompt Tuning

2024-12-22 · Fanshuang Kong, Richong Zhang, Ziqiao Wang

Hierarchical text classification (HTC) aims to assign one or more labels in the hierarchy for each text. Many methods represent this structure as a global hierarchy, leading to redundant graph structures. To address this…

text-classificationText Classification

ImplantMamba: Long-range Sequential Modeling Mamba For Dental Implant Position Prediction

2026-05-08 · Xinquan Yang, Congmin Wang, Xuguang Li, Yulei Li 외 arxiv

In the design of surgical guides for implant placement, determining the precise implant position is a critical step. However, the implant region itself is often characterized by a lack of distinctive texture in medical i…