Lune

ASE2025顶会

Advancing Automated Ethical Profiling in SE: a Zero-Shot Evaluation of LLM Reasoning

Patrizio Migliarini, Mashal Afzal Memon, Marco Autili, Paola Inverardi

摘要

Large Language Models (LLMs) are increasingly integrated into software engineering (SE) tools for tasks that extend beyond code synthesis, including judgment under uncertainty and reasoning in ethically significant contexts. We present a fully automated framework for assessing ethical reasoning capabilities across 16 LLMs in a zero-shot setting, using 30 real-world ethically charged scenarios. Each model is prompted to identify the most applicable ethical theory to an action, assess its moral acceptability, and explain the reasoning behind their choice. Responses are compared against expert ethicists’ choices using inter-model agreement metrics. Our results show that LLMs achieve an average Theory Consistency Rate (TCR) of 73.3% and Binary Agreement Rate (BAR) on moral acceptability of 86.7%, with interpretable divergences concentrated in ethically ambiguous cases. A qualitative analysis of free-text explanations reveals strong conceptual convergence across models despite surface-level lexical diversity. These findings support the potential viability of LLMs as ethical inference engines within SE pipelines, enabling scalable, auditable, and adaptive integration of user-aligned ethical reasoning. Our focus is the Ethical Interpreter component of a broader profiling pipeline: we evaluate whether current LLMs exhibit sufficient interpretive stability and theory-consistent reasoning to support automated profiling.

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

可以从这些问题问起

Lune 可以查阅

全文 · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • Ethical Reasoning over Moral Alignment: A Case and Framework for In-Context Ethical Policies in LLMs 引用了 Aligning AI With Shared Human Values
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

它引用的 Paper5

  1. Aligning AI With Shared Human ValuesDan Hendrycks, Collin Burns, Steven Basart, Andrew Critch 等ICLR 2021 · 878 次引用
  2. Ethically Compliant Sequential Decision MakingJustin Svegliato, Samer B. Nashed, Shlomo ZilbersteinAAAI 2021 · 33 次引用
  3. Ethical Reasoning over Moral Alignment: A Case and Framework for In-Context Ethical Policies in LLMsAbhinav Rao, Aditi Khandelwal, Kumar Tanmay, Utkarsh Agarwal 等EMNLP Findings 2023 · 32 次引用
  4. Verifiable Machine Ethics in Changing ContextsLouise A. Dennis, Martin Mose Bentzen, Felix Lindner, Michael FisherAAAI 2021 · 18 次引用
  5. Moral Alignment for LLM AgentsElizaveta Tennant, Stephen Hailes, Mirco MusolesiICLR 2025

相关 Paper

  1. Unveiling the Bias Impact on Symmetric Moral Consistency of Large Language ModelsZiyi Zhou, Xinwei Guo, Jiashi Gao, Xiangyu Zhao 等NeurIPS 2024
  2. On Behavioral Alignment of Model-Code and Human-Code Understandability via Behavioral ProxiesXiaokai Rong, Aashish Yadavally, Hridya Dhulipala, Anh H. N. Nguyen 等ISSTA 2026
  3. Code Red! On the Harmfulness of Applying Off-the-Shelf Large Language Models to Programming TasksAli Al-Kaswan, Sebastian Deatc, Begüm Koç, Arie van Deursen 等FSE 2025 · 1 次引用
  4. Structured Moral Reasoning in Language Models: A Value-Grounded Evaluation FrameworkMohna Chakraborty, Lu Wang, David JurgensEMNLP 2025
  5. Do Emotions Influence Moral Judgment in Large Language Models?Mohammad Saim, Tianyu JiangACL Findings 2026
黄昏的海面,两侧是细线勾勒的悬崖