atlas

Research map / Probabilistic and scientific modeling / Molecules and proteins

DiCoFlex: Model-Agnostic Diverse Counterfactuals with Flexible Control

NeurIPS 2025 · Probabilistic and scientific modeling › Molecules and proteins · approach: Counterfactual and statistical explanations · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes DiCoFlex, a model-agnostic conditional normalizing flow (MAF) trained on KNN-selected labeled counterfactual candidates that generates multiple diverse counterfactuals in one forward pass with inference-time control over sparsity (L_p exponent) and actionability (feature masks).

Problem

Existing counterfactual explanation methods need constant access to the predictive model, costly per-instance optimization, and retraining to adapt to new user constraints such as sparsity and actionability.

Approach

Train a conditional normalizing flow p(x'|x,y',p,m) to approximate a distribution over K-nearest-neighbor training counterfactuals in the target class, using an L_p distance with exponent p and a feature mask m as conditioning variables so sparsity and actionability can be changed at inference without retraining.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Set sparsity parameter p=0.01 rather than p=2.0 (ablation)DiCoFlex · Adultcontinuous proximity: 0.581 -> 0.373Helped
Increase p from 0.01 to 1.0 (ablation)DiCoFlex · Adulthypervolume: 0.9023 -> 1.9491Helped
Increase p from 0.01 to 2.0 (ablation)DiCoFlex · Adultepsilon-sparsity: 0.441 -> 0.601Hurt
Apply actionability masks to selected attributes (ablation)DiCoFlex · Adult masked featuressparsity of masked features: Capital Gain 0.148 -> 0.023; Capital Loss 0.097 -> 0.037; Age 0.833 -> 0.069; Race 0.170 -> 0.052; Sex 0.200 -> 0.045; NHelped
Use MAF instead of NICE, RealNVP, or KDE (ablation)DiCoFlex flow architecture · AdultNLL: 26.6644 / 26.5827 / 30.5120 -> -43.2998Helped
Generate multiple counterfactuals in one forward pass rather than using optimization-based generationDiCoFlex · 100 data pointsruntime: 0.12±0.05 seconds; DiCE, ReViSE, and TABCF over 1000 secondsHelped
Use DiCoFlex (p=2.0) rather than CCHVAEDiverse counterfactual generation · Lending Club; Adult; Bank Marketing; Default; GMChypervolume: Lending Club: 7.448 -> 13.118; Adult: 1.571 -> 2.036; Bank Marketing: 0.309 -> 3.808; Default: 53.706 -> 62.427; GMC: 9.Helped

Surprising findings

Limitations

Experimental setup

Datasets: Adult Bank Marketing Default (Credit Default) Give Me Some Credit Lending Club

Benchmarks: Adult Bank Marketing Credit Default Give Me Some Credit Lending Club

Metrics: validity hypervolume LOF sparsity epsilon-sparsity proximity classifier probability runtime

Baselines: CCHVAE DiCE ReViSE Wachter TABCF

Builds on: MAF conditional normalizing flow DiCE CCHVAE

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy