Pith. sign in

REVIEW 4 cited by

SCLA: Automated Smart Contract Summarization via LLMs and Control Flow Prompt

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 2402.04863 v6 pith:STJE45NT submitted 2024-02-07 cs.SE

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

Smart contract code summarization is crucial for efficient maintenance and vulnerability mitigation. While many studies use Large Language Models (LLMs) for summarization, their performance still falls short compared to fine-tuned models like CodeT5+ and CodeBERT. Some approaches combine LLMs with data flow analysis but fail to fully capture the hierarchy and control structures of the code, leading to information loss and degraded summarization quality. We propose SCLA, an LLM-based method that enhances summarization by integrating a Control Flow Graph (CFG) and semantic facts from the code's control flow into a semantically enriched prompt. SCLA uses a control flow extraction algorithm to derive control flows from semantic nodes in the Abstract Syntax Tree (AST) and constructs the corresponding CFG. Code semantic facts refer to both explicit and implicit information within the AST that is relevant to smart contracts. This method enables LLMs to better capture the structural and contextual dependencies of the code. We validate the effectiveness of SCLA through comprehensive experiments on a dataset of 40,000 real-world smart contracts. The experiment shows that SCLA significantly improves summarization quality, outperforming the SOTA baselines with improvements of 26.7%, 23.2%, 16.7%, and 14.7% in BLEU-4, METEOR, ROUGE-L, and BLEURT scores, respectively.

Discussion (0). Continue with ORCID to comment.

Forward citations

Cited by 4 Pith papers

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

  1. evalSmarT: An LLM-Based Framework for Evaluating Smart Contract Generated Comments

    cs.AI 2025-07 reject novelty 5.0 of 10

    evalSmarT applies LLM-as-a-Judge with configurable prompts to smart contract comment evaluation, but the central alignment claim lacks published evidence.

  2. Simple and Effective Baselines for Code Summarisation Evaluation

    cs.CL 2025-05 conditional novelty 5.0 of 10

    Asking an LLM to rate a code summary directly correlates with human judgments as well as or better than n-gram, learned, and embedding metrics, even without a reference summary.

  3. Immutable Digital Recognition via Blockchain

    cs.CR 2025-08 reject novelty 3.0 of 10

    A hybrid blockchain badge system with centralized certification and decentralized issuance is described, but remains a conceptual design with no implementation or validation.

  4. An Empirical Analysis of EOS Blockchain: Architecture, Contract, and Security

    cs.CR 2025-05 conditional novelty 3.0 of 10

    An empirical and survey-based analysis of EOS blockchain finds decentralization issues and a wide gap between claimed and actual transaction throughput.

Pith tools