TranS^3: A Transformer-based Framework for Unifying Code Summarization and Code Search
Wenhua Wang, Yuqun Zhang, Zhengran Zeng, Guandong Xu

TL;DR
TranS^3 is a transformer-based framework that unifies code summarization and code search, improving accuracy in both tasks through an actor-critic model and iterative feedback.
Contribution
It introduces a novel unified transformer-based framework combining code summarization and search with an actor-critic network for enhanced performance.
Findings
Significantly outperforms state-of-the-art methods in code summarization.
Achieves higher accuracy in code search tasks.
Validated by experimental and case studies with developer feedback.
Abstract
Code summarization and code search have been widely adopted in sofwaredevelopmentandmaintenance. However, fewstudieshave explored the efcacy of unifying them. In this paper, we propose TranS^3 , a transformer-based framework to integrate code summarization with code search. Specifcally, for code summarization,TranS^3 enables an actor-critic network, where in the actor network, we encode the collected code snippets via transformer- and tree-transformer-based encoder and decode the given code snippet to generate its comment. Meanwhile, we iteratively tune the actor network via the feedback from the critic network for enhancing the quality of the generated comments. Furthermore, we import the generated comments to code search for enhancing its accuracy. To evaluatetheefectivenessof TranS^3 , we conduct a set of experimental studies and case studies where the experimental results suggest…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsSoftware Engineering Research · Topic Modeling · Software Testing and Debugging Techniques
