# Assessing Sample Quality in Conditional Generation under Compositional Shift

*Berker Demirel, Valentino Maiorca, Marco Fumero, Theofanis Karaletsos, Francesco Locatello*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/148544) · [Open on the map](../papers.html#p148544)

Category: [Diffusion & Image Generation](../pcat/5.md) › [Generative Model Evaluation and Improvement](../pgroup/212.md) · Type: new method · Keywords: conditional generation, compositional shift, sample quality assessment, trust score, biological imaging

Areas: [Evaluation & Benchmarks](../areas/evaluation.md) › Visual Multimodal Evaluation › Generative Model Evaluation

## Summary
The paper proposes a post-hoc per-sample trust score that assesses conditional generation quality under compositional shift using only the training distribution.

## Explained to a 5-year-old
Sometimes computers make pictures using certain rules, like making a cat with a hat. When we want a new combination, like a cat with glasses and a scarf, we don't have real examples to compare. The researchers made a simple check that looks at how realistic the picture is and if it matches the wanted features. This check works without needing new pictures, so we can trust the generated ones more. It helps us pick the best pictures for science and other uses.

## Explained to a 5-year-old, longer
Computers can be told to draw things, like animals or objects, and they follow instructions. Sometimes we want a new picture, like a dog wearing sunglasses, that we have never seen before. We need to know if the picture looks real and matches what we asked for. The researchers noticed that existing ways to check pictures need real examples to compare. In science, we often don't have real examples for new combinations because they are rare or expensive. So they created a simple check that uses only the pictures we already know. This check looks at two things: how realistic the picture is and how close it is to the requested features. If a picture is realistic and matches the request well, it gets a high trust score. If it looks weird or doesn't match, it gets a low score. This helps us decide which pictures to keep and which to discard. It can be used on any computer model that makes pictures, even ones we didn't train ourselves. In biology, it helps keep pictures that show real structures, which is useful for research.

## For a technical reader
The paper addresses the challenge of evaluating generated outputs when the desired target distribution is unknown, which commonly occurs in scientific domains. It proposes a post-hoc scoring function that estimates two aspects-global realism (how well a sample fits the data manifold) and attribute-wise faithfulness (how close the sample is to the requested attributes versus alternatives). By combining these estimates, the score provides a per-sample trust metric that can be applied to any pre-trained generative model without additional training. Experiments on biological imaging and vision benchmarks show that filtering samples with this score preserves realistic structure and improves downstream task performance. The approach also supports early abstention during generation, allowing systems to stop decoding when confidence is low.

## Problem
Conditional generative models are often used to produce samples for new compositions of attributes, but evaluating their quality is difficult when the target distribution is unknown. Standard conditional metrics require reference samples, creating a circular evaluation problem in extrapolative regimes.

## Method
The approach estimates two quantities from the training data: global realism, which measures how well a sample aligns with the real data manifold, and attribute-wise faithfulness, which compares the sample's proximity to the requested attributes versus plausible alternatives. These are combined into a per-sample trust score that can be computed post-hoc for any generated sample. The score enables filtering, ranking, and abstention of generations without requiring target references.

## Results
The approach recovers meaningful comparisons across extrapolated generations, enabling filtering and abstention, and in biological imaging it preserves morphology and improves downstream performance, with similar gains on controlled vision benchmarks.

## Contributions
The paper introduces a post-hoc per-sample trust score that evaluates conditional generation quality under compositional shift using only the training distribution, and demonstrates its utility for filtering, ranking, and abstaining generations across biological imaging and vision benchmarks.

## Limitations and assumptions
The method relies on a mild coverage condition of the observed attributes in the training data.

## Practical relevance
The score enables reliable assessment and filtering of generated samples for scientific discovery and practical applications where ground-truth data is scarce.

## Research questions this paper is counted under

- [How can we align generative models to a desired target distribution without extensive retraining or reference data?](../q/265.md)

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/148544)
