Context is Key: Aligning Large Language Models with Human Moral Judgments through Retrieval-Augmented Generation

In this paper, we investigate whether pre-trained large language models (LLMs) can align with human moral judgments on a dataset of approximately fifty thousand interpersonal conflicts from the AITA (Am I the A******) subreddit, an online forum where users evaluate the morality of others. We introduce a retrieval-augmented generation (RAG) approach that uses pre-trained LLMs as core components. After collecting conflict posts from AITA and embedding them in a vector database, the RAG agent retrieves the most relevant posts for each new query. Then, these are used sequentially as context to gradually refine the LLM's judgment, providing adaptability without having to undergo costly fine-tuning. Using OpenAI's GPT-4o, our agent outperforms directly prompting the LLM while achieving 83\% accuracy and a Matthews correlation coefficient of 0.469 while also reducing the rate of toxic responses from 22.53\% to virtually zero. These findings indicate that the integration of LLMs into RAG agents is an effective method to improve their alignment with human moral judgments while mitigating toxic language.

Authors

Institutions

Publication Details

Journal
Proceedings of the ... International Florida Artificial Intelligence Research Society Conference
Published
2025-05-14
DOI
https://doi.org/10.32473/flairs.38.1.138947
Primary Topic
Topic Modeling
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Context is Key: Aligning Large Language Models with Human Moral Judgments through Retrieval-Augmented Generation

Richard Burns, Matthew Boraske
Proceedings of the ... International Florida Artificial Intelligence Research Society Conference
Topic Modeling
article

Context is Key: Aligning Large Language Models with Human Moral Judgments through Retrieval-Augmented Generation

Richard Burns, Matthew Boraske
article en

Abstract

In this paper, we investigate whether pre-trained large language models (LLMs) can align with human moral judgments on a dataset of approximately fifty thousand interpersonal conflicts from the AITA (Am I the A******) subreddit, an online forum where users evaluate the morality of others. We introduce a retrieval-augmented generation (RAG) approach that uses pre-trained LLMs as core components. After collecting conflict posts from AITA and embedding them in a vector database, the RAG agent retrieves the most relevant posts for each new query. Then, these are used sequentially as context to gradually refine the LLM's judgment, providing adaptability without having to undergo costly fine-tuning. Using OpenAI's GPT-4o, our agent outperforms directly prompting the LLM while achieving 83\% accuracy and a Matthews correlation coefficient of 0.469 while also reducing the rate of toxic responses from 22.53\% to virtually zero. These findings indicate that the integration of LLMs into RAG agents is an effective method to improve their alignment with human moral judgments while mitigating toxic language.

Proceedings of the ... International Florida Artificial Intelligence Research Society ConferenceVol. 38
West Chester University (US)
Openalex Percentile: Top 70%
Topic Modeling
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Context is Key: Aligning Large Language Models with Human Moral Judgments through Retrieval-Augmented Generation — Richard Burns, Matthew Boraske · Proceedings of the ... International Florida Artificial Intelligence Research Society Conference (2025) | TGRS Research Map | TGRS