Research map / Large language models / Language, safety and interpretability
CAST: Enhancing Code Summarization with Hierarchical Splitting and Reconstruction of Abstract Syntax Trees
Ensheng Shi, Yanlin Wang, Lun Du, Hongyu Zhang, Shi Han, Dongmei Zhang, Hongbin Sun
Microsoft
Read the paperPlace an idea next to itCheck your own paper ↗
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 |
|---|---|---|---|
| add subtree aggregation (RvNN over structure tree) (ablation) | CAST · Funcom test | BLEU: 30.56 -> 30.83 | Improved |
| add subtree aggregation (RvNN over structure tree) (ablation) | CAST · TL-CodeSum test | BLEU: 43.76 -> 45.19 | Improved |
| add subtree aggregation (ablation) | CAST · Funcom test | METEOR: 20.96 -> 20.96 | No clear effect |
| add copy mechanism (ablation) | CAST · Funcom test | BLEU: 30.35 -> 30.83 | Improved |
| add copy mechanism (ablation) | CAST · TL-CodeSum test | BLEU: 43.81 -> 45.19 | Improved |
| replace statement-level splitting with block-level splitting and hierarchical aggregation | CodeAstnn · Funcom test | BLEU: 28.27 -> 30.83 | Improved |
| replace statement-level splitting with block-level splitting and hierarchical aggregation | CodeAstnn · TL-CodeSum test | BLEU: 41.08 -> 45.19 | Improved |
| CAST without copy or aggregation vs best baselines (ablation) | CAST_A / CAST_C · TL-CodeSum test | BLEU: 41.08 (CodeAstnn) -> 43.76 (CAST_A) | Improved |
| use CAST instead of CodeAstnn in human evaluation | CAST · Human evaluation | Naturalness: 3.00 -> 3.08 | No clear effect |
| use CAST instead of CodeAstnn in human evaluation | CAST · Human evaluation | Informativeness: 2.44 -> 2.74 | Improved |
Later papers that compared with this method
5 later accepted papers report CAST as a baseline in their results tables; 5 of them report a better number on most of the results they share with it.
- Palette: A Modular, Controllable, and Efficient Framework for On-demand Authorized Safety Alignment Relaxation in LLMs (NeurIPS 2026 · better on 9 of 9 shared results)
- Concept Concentration for Faithful Representation Intervention (ICML 2026 · better on 3 of 3 shared results)
- AlphaSteer: Learning Refusal Steering with Principled Null-Space Constraint (ICLR 2026 · better on 3 of 3 shared results)
- GAVEL: Towards Rule-Based Safety through Activation Monitoring (ICLR 2026 · better on 3 of 3 shared results)
- Personalized Privacy Control in LLMs via Attention Head Intervention (EMNLP 2026 · better on 3 of 3 shared results)
Matched by method name in results tables read by AI. Authors' own tables tend to favour the newer method, and a comparison can be missed when a method is renamed.
Closest papers by meaning
- Language-Agnostic Representation Learning of Source Code from Structure and Context (ICLR 2021 · similarity 0.91)
- cAST: Enhancing Code Retrieval-Augmented Generation with Structural Chunking via Abstract Syntax Tree (EMNLP 2025 · similarity 0.87)
- Novel Natural Language Summarization of Program Code via Leveraging Multiple Input Representations (EMNLP 2021 · similarity 0.87)
- code2seq: Generating Sequences from Structured Representations of Code (ICLR 2019 · similarity 0.86)
- Retrieval-Based Neural Code Generation (EMNLP 2018 · similarity 0.86)
- AST-T5: Structure-Aware Pretraining for Code Generation and Understanding (ICML 2024 · similarity 0.86)
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.
