Phase transitions in photonic cavities: Exact vs. mean-field | IEEE Conference Publication | IEEE Xplore