Pith. sign in

REVIEW 1 cited by

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

Not yet reviewed by Pith; the record is open.

This paper has not been read by Pith yet. Machine review is queued; the pith claim, tier, and objections will appear here once it completes.

SPECIMEN: schema-true, not a live event

T0 review · schema-true

One-sentence machine reading of the paper's core claim.

pith:XXXXXXXX · record.json · timestamp

arxiv 2303.07826 v1 pith:YVSF6TL3 submitted 2023-03-14 cs.SE cs.AI

classification cs.SEcs.AI
keywords codehierarchicalhierarchyinformationmodelsembeddingrepresentationsource
verification ladder T0 review T1 audit T2 compute T3 formal
0 comments
read the original abstract

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.

Discussion (0). Continue with ORCID to comment.

Forward citations

Cited by 1 Pith paper

Reviewed papers in the Pith corpus that reference this work. Sorted by Pith novelty score. Full citation record

  1. MGS3: A Multi-Granularity Self-Supervised Code Search Framework

    cs.SE 2025-05 conditional novelty 6.0 of 10

    MGS3 trains code search models on multi-granularity comment-code alignments, improving retrieval across function, block, and statement-level benchmarks.

Pith tools