# Poster 27870

- Kind: Poster
- Talk page and recording: https://iclr.cc/virtual/2025/poster/27870

> Transcript of the talk's recording (session_asr), made by speech recognition or taken from the host's captions. It may contain errors. The words are the speakers'; listen to the recording on the talk's page before quoting it.

Hello everyone, I'm Gabriele Dominici and now I will present you counterfactual concept bottleneck models, which is a model that is able to answer three questions, what, how and why not all at once. The key thing is that we want to enhance human -machine interaction.
And to do that, we need models that can be queried against different kind of question from a user. And we selected three important questions. The what, which is related to predicting class labels for new inputs, known as prediction. For example, what is the diagnosis for the x -rays image? But also how, which enables a user to interact with the model.
To evaluate how some changes impact the class prediction, which are known as intervention. How would the absence of collapsed lungs impact the presence of pneumothorax, for example? And finally, the why not question, which is kind of the opposite of how, which allows to imagine alternative scenarios that results in a different class prediction, which are known as counterfactuals. For example, why is this patient not having pneumothorax?
The problem is that no model is trained to answer all these three questions at once. We have black box models that can only answer the what, and then we have concept bottleneck models that integrating concepts inside the prediction can let the user interact with them.
answering the how question but not the why not and finally we have post hoc counterfactual generator that are post hoc methods applied on top of black box and at the end of the day we obtain a model that is able to predict both the what and the why not but the problem is that these counterfactuals are not interpretable as you can see here in this example if we generate a counterfactual at the input level we generate an alternative version of it but we have no intuitive insights about which are the key features
that are important for the model to generate a different prediction. While if we integrate counterfactions at the concept level, then we have interpretable changes of what is important for the model.
So we are here to present counterfactual concept bottleneck models, a model that is able to predict all these three questions at once. So from the input, we learn a concept distribution that is used to predict concept label. And then from this concept, we predict the final prediction, answering the first question, the what. At this step, we can intervene on the concept and predict as it is in concept bottleneck models.
see how the model react to these modification answering the second question but also thanks to an extra layer called counterfactors encoder we are able to answer the third question the why not
As this counterfactual encoder produce a counterfactual distribution, taking as input the concept previously predicted, but also an alternative task label that is conditioning the generation. And we would like to generate the counterfactuals for that specific alternative task label called Y prime. And from this encoder, we generate this counterfactual distribution, which is similar to the concept distribution, but conditioned on Y prime.
And from this, we generate the counterfactions at the concept level, which is definitely more interpretable than applying them on the input level. In terms of results, and yeah, this is trained end-to-end, which has some benefits that we are seeing in a couple of minutes without needs of additional post-doc.
methods. In terms of results regarding the what question, we would like to see to be as good as the black box model and other baselines and indeed we are. Regarding the how instead, we can see that if we train the model end-to-end including the counterfactuals inside the training step, we can see that we obtain a model
That is focusing more on the most important concepts and less on the less important. So as you can see here, if we have a train in a postdoc manner or in a joint manner, we have two different concept important distribution significantly different. And in this distribution, the model is focusing a lot more on the important pixel and a lot less on the less important.
Obtaining a model that is generating simpler explanation basically because it focused just on the most important features. Regarding the why not and counterfactors, we have validated these methods against several...
Several metrics, for example in this case validity, which is kind of the accuracy of the counterfactors, and several others, and we are always the best or Pareto front optimal against all the other baselines. So thank you so much. This was counterfactor cost of bottom models.
