Hybrid-DeepCom
Sequence-to-sequence model that generates comments for Java methods from lexical and structural input.
Language · 17,635 operations Checked
Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.
At a glance
- Task
- Language
- Parameters
- 32.6M
- Operations
- 17,635
- Framework
- PyTorch
- Recurrent
- Yes
- Published
- 2019, Empirical Software Engineering
- Cited by
- 279 (as of 28 October 2026)
- Authors
- Xing Hu, Ge Li, Xin Xia and others
- Source
- GitHub: xing-hu/EMSE-DeepCom
- License
- MIT
- Checked
- Passed: the trace was replayed operation by operation and matched the model's own output for this input.
Files
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
Details
- Stable ID
- m17406
- Graph hash
- 15863f72d935b8f498b316d1a42b20191b8afdbd135439da553adfb3713550ed
- Skeleton hash
- 6bf8a3820909e53cae99e6a7ca893d400db2638b7787c9a64b31f21cb01ffd2e
- Architecture hash
- bb8633a1eeee4128e7e58f5759472bf54fb88571856ddaf5f44979945d0f08ce
- Diagram SHA-256
- d162dc693d5306cb4dc3308adb86710cd94abfdd0e7b0fd98cbf76ebb3741ee2
- TorchLens version
- 2.36.0
- Renderer
- graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
- Check
- Forward pass replayed in PyTorch
What it is
Hybrid-DeepCom generates comments for Java methods, with the aim of helping developers understand what each method does. It treats comment generation as a machine translation problem. The network reads two views of the same method, its lexical content and its structure, and combines them when producing the comment.
The paper's experiments use a Java corpus built from 9,714 open source projects on GitHub. Results are scored with both machine translation metrics and information retrieval metrics, and the paper reports that Hybrid-DeepCom scored higher than the approaches it was compared with. The authors also examine out-of-vocabulary tokens and report that reducing them improves accuracy. The authors' released code includes a data-processing step that generates an abstract syntax tree for each Java method. A separate PyTorch implementation of Hybrid-DeepCom is also available.
Key idea. Hybrid-DeepCom casts Java method comment generation as machine translation, using a deep neural network that combines the lexical and structure information of the method.
- Hybrid-DeepCom
- EMSE-DeepCom
- code comment generation
- Java method comments
- comment generation
- program comprehension
- source code to natural language
- abstract syntax tree
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@article{Hu_2019, title={Deep code comment generation with hybrid lexical and syntactical information}, volume={25}, ISSN={1573-7616}, url={http://dx.doi.org/10.1007/s10664-019-09730-9}, DOI={10.1007/s10664-019-09730-9}, number={3}, journal={Empirical Software Engineering}, publisher={Springer Science and Business Media LLC}, author={Hu, Xing and Li, Ge and Xia, Xin and Lo, David and Jin, Zhi}, year={2019}, month=June, pages={2179–2217} }