Statistical attribute alignment for black-box generative AI via output post-processing
Abstract
Generative AI systems are increasingly used, but aligning their outputs with user requirements poses a continuing challenge. Here, we aim to ensure that the distribution of an attribute of an AI-generated output aligns with a user-specified target. This is motivated by examples such as fairness, where we want to ensure that a protected attribute (e.g., gender, race, or age categories) follows a desired distribution, and synthetic data generation, where we want the generated data to be representative of a target distribution. We study the practically important black-box access setting, where a user can repeatedly query a generative AI model. The goal is to return outputs whose joint attribute distribution is as close as possible to this target. For both exact and approximate alignment, we develop algorithms that minimize the expected number of queries to the generator, and we further demonstrate their optimality as the number of requested outputs . Experiments on text-to-image generation and geocoded persona generation tasks show that our post-processing algorithms improve statistical attribute alignment, complementing prompting-based interventions.
Figures & tables
| M-sampling method | Compliance rate | Target-attribute coverage | Attributes observed |
|---|---|---|---|
| HPS | – | 3/16 | F/Y/W, F/Y/B, F/Y/H |
| TSI | – | 5/16 | F/Y/B, F/Y/H, F/O/B, F/O/A, F/O/H |
| Demographic HPS | 0.974 | 16/16 | All |
| Model | Oracle | CA-RDC | PM | ||
|---|---|---|---|---|---|
| Flux | |||||
| Qwen | |||||
| HiDream |
| M-sampling method | On-support rate | Compliance rate | Attributes observed |
|---|---|---|---|
| TSI | 0.028 | – | 6/8 |
| Demographic HPS | 0.624 | 0.219 | 8/8 |
| Pool-level diagnostics | Returned personas after post-processing | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| M-sampling method | On-support rate | Target-attribute coverage | Compliance rate | Post-processing method | Setting | Housing- cost burden | No-vehicle prevalence | Uninsured prevalence | Top-5-city–state share | |
| Hard SVI prompting | RDC | – | ||||||||
| TA-RDC | ||||||||||
| CA-RDC | ||||||||||
| DS | – | |||||||||
| County-seeded prompting | – | RDC | – | |||||||
Appendix figures & tables16 assets
Supplementary material from the paper’s appendix.
Appendix
| Setting | Source distribution | ||
|---|---|---|---|
| mild skew | 3 | 1.67 | |
| one rare attribute | 4 | 3.12 | |
| graded source | 8 | 3.12 | |
| graded source | 12 | 3.75 | |
| two mild groups | 16 | 1.33 | |
| four rare attributes | 16 | 4.00 |
| Observed label | Age band | City, state, ZIP code | Care setting | Request type |
|---|---|---|---|---|
| SVI Q1 | 18–29 | Utica, KS 67584 | Cardiology | Medication question |
| SVI Q2 | 45–64 | Lidgerwood, ND 58053 | Cardiology | Symptom question |
| SVI Q3 | 45–64 | Alpharetta, GA 30009 | Cardiology | Symptom question |
| SVI Q4 | 65+ | Algodones, NM 87001 | Cardiology | Symptom question |
Constrained Generative Modeling
Constrained generative modeling develops methods that produce samples satisfying structural, physical, semantic, or user-defined requirements.
See all 192 papers