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
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
| Metric | Value |
|---|---|
| Total Instances | 5,000 |
| Ethical (label=0) | 2,886 (57.7%) |
| Unethical (label=1) | 2,114 (42.3%) |
| Avg. Text Length | 467 chars |
| Train / Test Split | 4,500 / 500 |
| Annotators | 12 (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
| Method | Model | DFAR Acc β | DFAR MAR β | ETHOS Acc β | ETHOS MAR β |
|---|---|---|---|---|---|
| Classical ML | SVM | 69.4% | β | β | β |
| Classical ML | Random Forest | 78.6% | β | β | β |
| Classical ML | Gradient Boosting | 63.2% | β | β | β |
| Classical ML | Logistic Regression | 67.8% | β | β | β |
| Non-Generative | BERT | 78.6% | β | 79.9% | β |
| Non-Generative | DistilBERT | 78.2% | β | 80.4% | β |
| Generative | Mistral 7B (pre-trained) | 45.4% | 35.4% | 54.7% | 9.6% |
| Generative | Mistral 7B (label-only FT) | 47.4% | 18.6% | 56.8% | 10.6% |
| Ours | Mistral 7B (L+R) | 82.2% | 12.2% | 59.6% | 5.3% |
| Generative | Llama-2 7B (pre-trained) | 36.4% | 52.0% | 12.0% | 32.8% |
| Generative | Llama-2 7B (label-only FT) | 62.8% | 38.4% | 54.1% | 33.7% |
| Ours | Llama-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}
}
