Skip to main content
QUICK REVIEW

[Paper Review] Contextualized moral inference

Jing Xie, Graeme Hirst|arXiv (Cornell University)|Aug 25, 2020
Psychology of Moral and Emotional JudgmentNeuroscience25 references6 citations
TL;DR

This paper proposes a contextualized language model approach for inferring human moral judgments from textual vignettes, demonstrating that contextual embeddings (e.g., SBERT) significantly outperform non-contextual representations like word embeddings and sentiment scores. The method achieves state-of-the-art performance across three independent moral psychology datasets, with logistic regression on contextual embeddings yielding up to 65.79% accuracy on the Clifford dataset, highlighting the power of contextual semantics in fine-grained moral reasoning.

ABSTRACT

Developing moral awareness in intelligent systems has shifted from a topic of philosophical inquiry to a critical and practical issue in artificial intelligence over the past decades. However, automated inference of everyday moral situations remains an under-explored problem. We present a text-based approach that predicts people's intuitive judgment of moral vignettes. Our methodology builds on recent work in contextualized language models and textual inference of moral sentiment. We show that a contextualized representation offers a substantial advantage over alternative representations based on word embeddings and emotion sentiment in inferring human moral judgment, evaluated and reflected in three independent datasets from moral psychology. We discuss the promise and limitations of our approach toward automated textual moral reasoning.

Motivation & Objective

  • To investigate whether contextualized language models can effectively infer human moral judgments from short moral vignettes.
  • To compare the performance of contextualized representations against non-contextualized alternatives like word embeddings, emotion, and moral sentiment.
  • To evaluate the generalization capability of these models under low-shot learning settings with limited labeled examples.
  • To identify the limitations of current NLP models in capturing nuanced moral categories beyond binary right/wrong judgments.

Proposed method

  • The authors use contextualized sentence embeddings from SBERT (Sentence-BERT) as the primary representation for moral vignettes.
  • They compare SBERT embeddings against alternative representations: average word embeddings (GloVe), verb-specific embeddings, moral sentiment scores, and emotion labels.
  • A 5-fold cross-validation strategy is applied across three independent datasets from moral psychology: Chadwick (500 vignettes), McCurrie (69), and Clifford (132).
  • Four classification methods—Naive Bayes, k-Nearest Neighbors, Logistic Regression (LR), and Support Vector Classifier (SVC)—are evaluated on each representation.
  • The performance is measured via macro-averaged accuracy, with error analysis conducted on misclassified examples to identify failure modes.
  • t-SNE visualization is used to project contextual embeddings into 2D space, illustrating clustering patterns by moral category.

Experimental results

Research questions

  • RQ1Can contextualized language models outperform non-contextual representations in inferring human moral judgments from short textual vignettes?
  • RQ2How well do different representations generalize to fine-grained moral categories (e.g., fairness, loyalty, care) with limited training data?
  • RQ3What are the primary failure modes of contextualized models in moral inference, particularly regarding word sense ambiguity and negation?
  • RQ4To what extent can contextual embeddings capture the nuanced categorical distinctions in moral foundations theory?

Key findings

  • Contextualized embeddings (SBERT) achieve the highest accuracy across all three datasets, with 51.80% on Chadwick, 65.79% on Clifford, and 49.23% on McCurrie under logistic regression.
  • The performance of SBERT is consistently superior to average word embeddings (GloVe), verb embeddings, moral sentiment, and emotion-based representations.
  • Logistic regression yields the highest accuracy among the four classifiers in most cases, particularly on the Clifford and Chadwick datasets.
  • Error analysis reveals that words like 'cheating' and 'loyalty' are frequently misclassified due to semantic ambiguity, and negation is often misunderstood.
  • t-SNE visualization shows clear clustering of moral categories, especially in the Chadwick and McCurrie datasets, indicating effective representation learning.
  • The model struggles with nuanced distinctions—e.g., misclassifying 'cheating' as loyalty instead of fairness—highlighting the need for better world knowledge and reasoning in future work.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.