Beyond Labels: Aligning Large Language Models with Human-like Reasoning

Muhammad Rafsan Kabir, Rafeed Mohammad Sultan, Ihsanul Haque Asif, Jawad Ibn Ahad, Fuad Rahman +3 more
8/20/2024
cs.CLcs.AIcs.LG

Official code: apurba-nsu-rnd-lab/DFAR (1 star, MIT, last commit 2024-10-20).

Abstract

Aligning large language models (LLMs) with a human reasoning approach ensures that LLMs produce morally correct and human-like decisions. Ethical concerns are raised because current models are prone to generating false positives and providing malicious responses. To contribute to this issue, we have curated an ethics dataset named Dataset for Aligning Reasons (DFAR), designed to aid in aligning language models to generate human-like reasons. The dataset comprises statements with ethical-unethical labels and their corresponding reasons. In this study, we employed a unique and novel fine-tuning approach that utilizes ethics labels and their corresponding reasons (L+R), in contrast to the existing fine-tuning approach that only uses labels (L). The original pre-trained versions, the existing fine-tuned versions, and our proposed fine-tuned versions of LLMs were then evaluated on an ethical-unethical classification task and a reason-generation task. Our proposed fine-tuning strategy notably outperforms the others in both tasks, achieving significantly higher accuracy scores in the classification task and lower misalignment rates in the reason-generation task. The increase in classification accuracies and decrease in misalignment rates indicate that the L+R fine-tuned models align more with human ethics. Hence, this study illustrates that injecting reasons has substantially improved the alignment of LLMs, resulting in more human-like responses. We have made the DFAR dataset and corresponding codes publicly available at https://github.com/apurba-nsu-rnd-lab/DFAR.

View on arXivView PDF

Code Implementations(1)

MIT

[ICPR 2024] Official Implementation of the paper "Beyond Labels: Aligning Large Language Models with Human-like Reasoning" accepted in the 27th International Conference on Pattern Recognition.

14Jupyter NotebookAug 17, 20242 years agoMIT

Similar Papers

Cite this paper

@article{kabir2024beyond,
  title  = {Beyond Labels: Aligning Large Language Models with Human-like Reasoning},
  author = {Muhammad Rafsan Kabir and Rafeed Mohammad Sultan and Ihsanul Haque Asif and Jawad Ibn Ahad and Fuad Rahman and Mohammad Ruhul Amin and Nabeel Mohammed and Shafin Rahman},
  year   = {2024},
  eprint = {2408.11879},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2408.11879v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2408.11879.svg)](https://codeofpaper.com/paper/2408.11879)

Discussion