Appendix B of https://stolen-thoughts.com/paper.pdf discusses this