
ing generates non-negligible reconstruction error for
pathological image analysis and it is not easy to ob-
tain an intermediate representation that accurately re-
constructs the original input image. To alleviate this
problem, we propose a method that reduces the errors
in DDIM encoding. Experimental results demonstrate
that our proposed method is successful in obtaining
better intermediate representations that accurately re-
construct the original input image. In addition, we
generate multiple counterfactual images from the en-
coded representation and demonstrate that the quality
of these images is good based on the visual and quan-
titative evaluation.
The final goal of our study is to construct quan-
titative criteria for the changes in the morphology of
tissue structures for malignant lymphoma. To achieve
this, we first generated counterfactual pathology im-
ages of DLBCL using diffusion models. Future works
also include the construction of an explainable func-
tion that approximates a subtype classifier using the
generated counterfactual images.
ACKNOWLEDGEMENTS
This work was supported by JSPS KAKENHI Grant
Numbers JP22H03613 to H.H. and JP23KJ1141 to
R.K.
REFERENCES
Dhariwal, P. and Nichol, A. (2021). Diffusion models beat
gans on image synthesis. In Advances in Neural Infor-
mation Processing Systems, volume 34, pages 8780–
8794.
Heusel, M., Ramsauer, H., Unterthiner, T., Nessler, B., and
Hochreiter, S. (2017). Gans trained by a two time-
scale update rule converge to a local nash equilibrium.
In Advances in Neural Information Processing Sys-
tems, volume 30.
Ho, J., Jain, A., and Abbeel, P. (2020). Denoising diffu-
sion probabilistic models. In Larochelle, H., Ran-
zato, M., Hadsell, R., Balcan, M., and Lin, H., editors,
Advances in Neural Information Processing Systems,
volume 33, pages 6840–6851.
Jeanneret, G., Simon, L., and Jurie, F. (2022). Diffu-
sion models for counterfactual explanations. In Pro-
ceedings of the Asian Conference on Computer Vision
(ACCV), pages 858–876.
Johnson, J., Alahi, A., and Fei-Fei, L. (2016). Perceptual
losses for real-time style transfer and super-resolution.
CoRR, abs/1603.08155.
Loshchilov, I. and Hutter, F. (2019). Decoupled weight
decay regularization. In International Conference on
Learning Representations.
Monteiro, M., Ribeiro, F. D. S., Pawlowski, N., Castro,
D. C., and Glocker, B. (2023). Measuring axiomatic
soundness of counterfactual image models. In The
Eleventh International Conference on Learning Rep-
resentations.
Pearl, J. (2009). Causality. Cambridge University Press.
Sanchez, P. and Tsaftaris, S. A. (2022). Diffusion causal
models for counterfactual estimation. volume 177
of Proceedings of Machine Learning Research, pages
647–668. PMLR.
Singla, S., Pollack, B., Chen, J., and Batmanghelich, K.
(2020). Explanation by progressive exaggeration.
In International Conference on Learning Representa-
tions.
Singla, S., Wallace, S., Triantafillou, S., and Batmanghe-
lich, K. (2021). Using causal analysis for conceptual
deep learning explanation. Med Image Comput Com-
put Assist Interv, 12903:pp. 519–528.
Sohl-Dickstein, J., Weiss, E., Maheswaranathan, N., and
Ganguli, S. (2015). Deep unsupervised learning using
nonequilibrium thermodynamics. In Proceedings of
the 32nd International Conference on Machine Learn-
ing, volume 37 of Proceedings of Machine Learning
Research, pages 2256–2265. PMLR.
Song, J., Meng, C., and Ermon, S. (2021). Denoising diffu-
sion implicit models. In International Conference on
Learning Representations.
Swerdlow SH, Campo E, H. N., Jaffe ES, P. S., and Stein H,
T. J., editors (2017). World Health Organization clas-
sification of tumours of haematopoietic and lymphoid
tissues. Revised 4th ed. Lyon. IARC Press.
Wallace, B., Gokul, A., and Naik, N. (2023). Edict: Exact
diffusion inversion via coupled transformations. In
Proceedings of the IEEE/CVF Conference on Com-
puter Vision and Pattern Recognition (CVPR), pages
22532–22541.
Modification of DDIM Encoding for Generating Counterfactual Pathology Images of Malignant Lymphoma
527