Computer Science Department, MS Thesis Presentation Zhuang Luo "FaithfulPersona: Balancing Faithfulness and Personalization in Code Explanations through Self-Critique"

Thursday, April 24, 2025
4:00 p.m. to 5:00 p.m.

Zhuang Luo

MS Student

WPI – Computer Science Department 

 

Thursday, April 24, 2025

Time: 4:00 PM – 5:00 PM 

Location : Fuller Labs 141

 

Advisor: Prof. Kyumin Lee

Reader: Prof. Gillian Smith 

Abstract :

Code explanations are crucial in real-world life, from educating students to aligning technical projects with business goals. However, existing approaches face challenges balancing faithfulness to the original code and personalization for diverse user needs. This thesis addresses these challenges by introducing a novel benchmark and method for generating faithful personalized code explanations.

 Our benchmark, FaithfulPersonaCodeX, incorporates code samples and user profiles, employing various evaluation metrics to evaluate both faithfulness and personalization. We propose DISCO, a new method that uses a self-critique mechanism and two-stage optimization to balance faithfulness and personalization in code explanations, addressing the limitations of current large language model approaches.

Our proposed model, DISCO, achieves a notable 3.7% improvement in Pass@5 compared to the strong baseline method, Self-Consistency, while maintaining high personalization with a 61.08% win rate in the LLM-as-a-Judge evaluation, effectively balancing faithfulness and user-specific needs in code explanations.

 

 

Audience(s)

Department(s):

Computer Science