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

Muhammad Rafsan Kabir, Rafeed Mohammad Sultan, Ihsanul Haque Asif, Jawad Ibn Ahad, Fuad Rahman, Mohammad Ruhul Amin, Nabeel Mohammed, Shafin Rahman

βœ… Accepted at ICPR 2025 (27th International Conference on Pattern Recognition)

πŸ“„ Paper: Springer Β· arXiv:2408.11879
πŸ’» Code & Dataset: github.com/apurba-nsu-rnd-lab/DFAR


Abstract

We introduce the Dataset for Aligning Reasons (DFAR), a modified version of the ETHICS dataset, consisting of ethical statements, their classification labels, and human-annotated reasons explaining the ethical judgments. Unlike standard fine-tuning that trains only on labels, our novel approach jointly trains LLMs on both labels and reasons, enabling the model to generate not just a classification but the reasoning behind ethical decisions. This aligns LLM behavior more closely with human moral reasoning, improving interpretability and classification accuracy.


Introduction

Current LLM fine-tuning for ethical classification treats the task as a black-box label prediction problem. Models learn to output β€œethical” or β€œunethical” without grounding their predictions in human-understandable rationales. This creates opacity and limits reliability when the model encounters novel ethical dilemmas.

We argue that training with reasons β€” alongside labels β€” provides a richer supervision signal. The DFAR dataset is constructed by collecting human annotations explaining why each ethical statement is classified as ethical (label=0) or unethical (label=1), enabling joint label+reason supervision.


🎯 Key Contributions

  • DFAR Dataset β€” 5,000 ethical statements (from ETHICS dataset) annotated with classification labels and human-written reasons; 4,500 train / 500 test (90/10 split).
  • Joint Label+Reason Fine-tuning β€” A novel training approach where the LLM generates [label; reason] jointly, trained via unified language modeling loss.
  • Cross-dataset Generalization β€” Models fine-tuned only on DFAR tested on ETHOS without any additional training, showing strong out-of-distribution reasoning.
  • Improved Interpretability β€” Models produce human-readable justifications alongside predictions, enabling auditability of ethical decisions.

Methodology

DFAR Methodology

Figure: (a) Standard fine-tuning: LLM trained on label only β€” outputs Ε·α΅’ given input xα΅’, loss computed on label alone. (b) Our approach: LLM jointly generates label Ε·α΅’ and reason rΜ‚α΅’ given xα΅’, with loss computed over the concatenated label+reason sequence. Weights updated to minimize joint label-reason prediction error.

Dataset: DFAR Statistics

MetricValue
Total Instances5,000
Ethical (label=0)2,886 (57.7%)
Unethical (label=1)2,114 (42.3%)
Avg. Text Length467 chars
Train / Test Split4,500 / 500
Annotators12 (6M, 6F), avg. age 23

Training Setup

  • Models: Mistral 7B, Llama-2 7B
  • Method: QLoRA (4-bit quantization + LoRA adapters)
  • Loss: Cross-entropy over [label; reason] sequence
  • Baselines: Label-only fine-tuning, classical ML (SVM, RF, BERT, DistilBERT)

πŸ“Š Results

MethodModelDFAR Acc ↑DFAR MAR ↓ETHOS Acc ↑ETHOS MAR ↓
Classical MLSVM69.4%β€”β€”β€”
Classical MLRandom Forest78.6%β€”β€”β€”
Classical MLGradient Boosting63.2%β€”β€”β€”
Classical MLLogistic Regression67.8%β€”β€”β€”
Non-GenerativeBERT78.6%β€”79.9%β€”
Non-GenerativeDistilBERT78.2%β€”80.4%β€”
GenerativeMistral 7B (pre-trained)45.4%35.4%54.7%9.6%
GenerativeMistral 7B (label-only FT)47.4%18.6%56.8%10.6%
OursMistral 7B (L+R)82.2%12.2%59.6%5.3%
GenerativeLlama-2 7B (pre-trained)36.4%52.0%12.0%32.8%
GenerativeLlama-2 7B (label-only FT)62.8%38.4%54.1%33.7%
OursLlama-2 7B (L+R)89.4%9.4%78.8%18.6%

MAR = Misalignment Rate (↓ lower is better). L+R = Labels + Reasons (our approach). Classical ML models not evaluated on ETHOS in the paper.

Joint label+reason training (L+R) dramatically outperforms all baselines: +26.6% accuracy over classical ML best (RF 78.6%) and +26.6% over label-only fine-tuning for Llama-2, with the lowest misalignment rate (9.4%).


πŸ“š Citation

@inproceedings{kabir2025beyond,
  title={Beyond Labels: Aligning Large Language Models with Human-like Reasoning},
  author={Kabir, Muhammad Rafsan and Sultan, Rafeed Mohammad and Asif, Ihsanul Haque and Ahad, Jawad Ibn and Rahman, Fuad and Amin, Mohammad Ruhul and Mohammed, Nabeel and Rahman, Shafin},
  booktitle={International Conference on Pattern Recognition (ICPR)},
  pages={},
  year={2025},
  publisher={Springer}
}