Controlling Distributional Bias in Multi-Round LLM Generation via KL-Optimized Fine-Tuning
Organizations: University of Melbourne · Mohamed bin Zayed University of Artificial Intelligence · Oracle
Abstract
While the real world is inherently stochastic, Large Language Models (LLMs) are predominantly evaluated on single-round inference against fixed ground truths. In this work, we shift the lens to distribution alignment: assessing whether LLMs, when prompted repeatedly, can generate outputs that adhere to a desired target distribution, e.g. reflecting real-world statistics or a uniform distribution. We formulate distribution alignment using the attributes of gender, race, and sentiment within occupational contexts. Our empirical analysis reveals that off-the-shelf LLMs and standard alignment techniques, including prompt engineering and Direct Preference Optimization, fail to reliably control output distributions. To bridge this gap, we propose a novel fine-tuning framework that couples Steering Token Calibration with Semantic Alignment. We introduce a hybrid objective function combining Kullback-Leibler divergence to anchor the probability mass of latent steering tokens and Kahneman-Tversky Optimization to bind these tokens to semantically consistent responses. Experiments across six diverse datasets demonstrate that our approach significantly outperforms baselines, achieving precise distributional control in attribute generation tasks.
Figures & tables
| Model | Method | Gender (UK) | Gender (US) | Race | Sentiment | Avg. | ||
|---|---|---|---|---|---|---|---|---|
| Real | Even | Real | Even | Even | Even | |||
| Qwen2.5-7B-Instruct | Zero-shot | 0.132 | 0.308 | 0.130 | 0.306 | 0.319 | 0.405 | 0.267 |
| PE-Explicit | 0.209 | 0.331 | 0.231 | 0.409 | 0.240 | 0.444 | 0.311 | |
| PE-Implicit | 0.260 | - | 0.195 | - | - | - | 0.228 | |
| IFT | 0.144 | 0.080 | 0.247 | 0.051 | 0.123 | 0.162 | 0.135 | |
| DPO | 0.193 | 0.500 | 0.177 | 0.500 | 0.264 | 0.364 | 0.333 | |
| Model & Method | Gen (UK) | Gen (US) | Senti | Avg. | |||
|---|---|---|---|---|---|---|---|
| Real | Even | Real | Even | Even | |||
| Qwen7B | Zero | 0.26 | 0.34 | 0.26 | 0.38 | 0.42 | 0.33 |
| Exp | 0.26 | 0.36 | 0.26 | 0.35 | 0.33 | 0.31 | |
| Imp | 0.44 | - | 0.43 | - | - | 0.44 | |
| IFT | 0.27 | 0.34 | 0.25 | 0.37 | 0.42 | 0.33 | |
| DPO | 0.23 | 0.31 | 0.26 | 0.36 | 0.42 | 0.32 | |
| Model & Method | Gen (UK) | Gen (US) | Race | Senti | |||
|---|---|---|---|---|---|---|---|
| Real | Even | Real | Even | Even | Even | ||
| Qwen7B | w/o KL | 0.19 | 0.50 | 0.28 | 0.08 | 0.15 | 0.36 |
| w/o KTO | 0.12 | 0.04 | 0.28 | 0.07 | 0.14 | 0.09 | |
| swap DPO | 0.18 | 0.26 | 0.19 | 0.50 | 0.12 | 0.09 | |
| Ours | 0.09 | 0.05 | 0.09 | 0.06 | 0.11 | 0.11 | |
| Qwen1.5B | w/o KL | 0.34 | 0.24 | 0.27 | 0.10 | 0.14 | 0.07 |
| Model & Method | Gen (UK) | Gen (US) | Avg. | |||
|---|---|---|---|---|---|---|
| Real | Even | Real | Even | |||
| Qwen7B | Zero | 0.25 | 0.11 | 0.30 | 0.26 | 0.23 |
| IFT | 0.15 | 0.19 | 0.12 | 0.12 | 0.14 | |
| Ours | 0.09 | 0.14 | 0.05 | 0.06 | 0.08 | |
| Qwen1.5B | Zero | 0.12 | 0.14 | 0.29 | 0.30 | 0.21 |
| IFT | 0.13 | 0.24 | 0.06 | 0.04 | 0.12 | |
| Model & Method | MMLU | GSM8K | TruthfulQA | IFEval | |
|---|---|---|---|---|---|
| Qwen7B | Zero | 26.91 | 81.35 | 59.36 | 67.62 |
| IFT | 27.57 | 81.73 | 57.41 | 66.31 | |
| DPO | 27.57 | 81.65 | 58.38 | 66.31 | |
| Ours | 26.87 | 81.12 | 60.00 | 65.23 | |
| Qwen1.5B | Zero | 28.81 | 62.32 | 54.00 | 42.93 |
| IFT | 27.80 | 61.64 | 55.51 | 39.21 | |
| Method | UK Real | UK Even | US Real | US Even |
|---|---|---|---|---|
| Ours (0/1) | 0.084 | 0.048 | 0.158 | 0.054 |
| Token (man/woman) | 0.088 | 0.041 | 0.168 | 0.047 |
| Token (he/she) | 0.078 | 0.049 | 0.136 | 0.050 |
| Method | Model | Real | Even |
|---|---|---|---|
| IFT | Qwen2.5-7B | 0.158 | 0.189 |
| Qwen2.5-1.5B | 0.187 | 0.154 | |
| Llama-3.1-8B | 0.109 | 0.101 | |
| Llama-3.2-1B | 0.147 | 0.085 | |
| DPO | Qwen2.5-7B | 0.201 | 0.500 |
| Qwen2.5-1.5B | 0.265 | 0.500 |
Appendix figures & tables11 assets
Supplementary material from the paper’s appendix.
Appendix
| Dataset Split | Attribute | Train | Val | Test |
|---|---|---|---|---|
| UK Occupations (Real) | Gender | 2500 | 300 | 2500 |
| UK Occupations (Even) | Gender | 2500 | 300 | 2500 |
| US Occupations (Real) | Gender | 1400 | 300 | 1400 |
| US Occupations (Even) | Gender | 1400 | 300 | 1400 |
| US Occupations (Even) | Race | 1400 | 300 | 1400 |
| US Occupations (Even) | Sentiment | 1400 | 300 | 1400 |
| Attribute | Task Setting | Representative Prompt Template |
|---|---|---|
| Gender | Attribute Generation | What is the gender of the [OCCUPATION]? |
| Story Generation | Write a short story about a day in the life of a [OCCUPATION]. | |
| Race | Attribute Generation | What is the racial background of the [OCCUPATION]? |
| Story Generation | Describe a scene featuring a [OCCUPATION] at work. | |
| Sentiment | Attribute Generation | How would you describe the mood of the [OCCUPATION]? |
| Story Generation | Tell a story about a [OCCUPATION] that reflects a specific emotional tone. |
| Model | Method | Gender (UK) | Gender (US) | Race | Sentiment | ||
|---|---|---|---|---|---|---|---|
| Real | Even | Real | Even | Even | Even | ||
| Qwen2.5-7B | Zero-shot | ||||||
| PE-Explicit | |||||||
| PE-Implicit | - | - | - | - | |||
| IFT | |||||||
| DPO | |||||||
| Model | Method | Gender (UK) | Gender (US) | Race | Sentiment | ||
|---|---|---|---|---|---|---|---|
| Real | Even | Real | Even | Even | Even | ||
| Qwen2.5-7B | Zero-shot | ||||||
| PE-Explicit | |||||||
| PE-Implicit | - | - | - | - | |||
| IFT | |||||||
| DPO | |||||||
| Model & Method | Gen (UK) | Gen (US) | Avg. | |||
|---|---|---|---|---|---|---|
| Real | Even | Real | Even | |||
| Qwen7B | Zero | 0.25 | 0.11 | 0.30 | 0.26 | 0.23 |
| IFT | 0.15 | 0.19 | 0.12 | 0.12 | 0.14 | |
| Ours | 0.09 | 0.14 | 0.05 | 0.06 | 0.08 | |
| Qwen1.5B | Zero | 0.12 | 0.14 | 0.29 | 0.30 | 0.21 |
| IFT | 0.13 | 0.24 | 0.06 | 0.04 | 0.12 | |
LLM Alignment
Large language model alignment studies methods for making models follow human intentions, values, and safety constraints across contexts.
See all 611 papers