arXiv

KG-FairDiff: Knowledge Graph-Guided Prompt Refinement for Demographically Fair Text-to-Image Generation

Title: KG-FairDiff: Leveraging Knowledge Graphs for Demographically Equitable Text-to-Image Generation via Prompt Refinement

Abstract:

Text-to-Image (TTI) systems have evolved into essential tools for public communication, advertising, education, and journalism. However, the demographic and cultural stereotypes embedded in their training data—such as the under-representation or caricature of women, people of color, older adults, and non-Western cultures—manifest as significant societal harm when these models are deployed at scale. Current mitigation strategies often fall short: they either demand expensive retraining, which is impractical for the closed-source backbones prevalent in consumer applications, or they depend on static demographic templates that overlook cultural nuances.

To address these challenges, we introduce KG-FairDiff, a model-agnostic framework that operates at inference time. This approach treats fairness-aware prompt refinement as a constrained optimization problem, executing it through a closed-loop pipeline. The process begins with a knowledge graph containing approximately 1,200 triples related to culture and bias, which retrieves structured context. An LLM-based rewriter then suggests refinements, while a validator ensures that only prompts reducing a divergence-based fairness loss are accepted, all while maintaining semantic fidelity to the user’s original intent.

We establish a finite-termination bound for this refinement loop and contribute a mathematically rigorous evaluation suite. This suite connects Bias-P and Bias-W metrics to divergence from target distributions, and ENS to KL divergence. Additionally, we conduct audits on eight widely used backbone generators. KG-FairDiff effectively minimizes disparities across gender, race, age, and intersectional categories without compromising prompt semantics, providing a practical and deployment-ready pathway toward more equitable generative AI.


Source: arXiv Generated at: 2026-06-02 00:00:00 UTC

Related Articles

Law’s Billable Hour Is Being Shredded by AI
Bloomberg

Law’s Billable Hour Is Being Shredded by AI

AI is dismantling the billable hour by automating routine legal tasks. This technological shift threatens the traditiona...

Iran War: Trump Tries to Stop Israel’s Lebanon Push | The Opening Trade 6/2/2026
Bloomberg

Iran War: Trump Tries to Stop Israel’s Lebanon Push | The Opening Trade 6/2/2026

SoftBank in Early Talks to Back $800 Million Agile Robots Round
Bloomberg

SoftBank in Early Talks to Back $800 Million Agile Robots Round

SoftBank is in early talks to back Agile Robots’ $800 million funding round. The Japanese tech giant is currently in pre...

Amundi Is Diversifying Risk Via Commodity Currencies, Gold
Bloomberg

Amundi Is Diversifying Risk Via Commodity Currencies, Gold

Amundi diversifies risk by investing in commodity-linked currencies and gold. This strategy hedges against market volati...

Reuters

Marvell Technology surges after Nvidia's Huang calls it 'next trillion-dollar company'

Marvell Technology shares surged after Nvidia CEO Jensen Huang labeled the firm the “next trillion-dollar company.”

Russia Says It Found Foreign Spyware on Top Officials’ Phones
Bloomberg

Russia Says It Found Foreign Spyware on Top Officials’ Phones

Russia’s FSB claims to have discovered foreign spyware on senior officials’ phones. Moscow attributes the intrusion to h...