# Hessian Geometry of Latent Space in Generative Models

생성 모델 잠재 공간의 헤세 기하

Lobashev, Alexander, Guskov, Dmitry, Larchenko, Maria, Tamm, Mikhail · arXiv · 2025년 6월 12일

- **연구 문제** 확률적 생성 모델의 잠재 공간은 보간 시 급격한 변화를 보이지만, 기존의 pullback 기반 계량은 결정적 매핑을 가정하여 확산 모델이나 통계물리 모델에 직접 적용하기 어렵습니다.
- **연구 방법** 잠재 변수의 사후분포로부터 지수족의 로그 분할함수를 학습하고, 그 헤시안을 Fisher 계량으로 사용하여 측지선과 상 경계를 분석합니다.
- **주요 결과** Ising과 TASEP에서 재구성된 자유에너지는 정확한 해와 잘 맞으며 기준선보다 낮은 RMSE를 보고합니다. 확산 모델의 2차원 단면에서는 측지선이 한 상 안에서는 대략 선형이지만 상 경계에서 비선형으로 바뀌는 결과가 보고됩니다.

## 생성 모델 잠재 공간의 곡률 문제

확산 모델과 같은 생성 모델의 잠재 공간은 보간할 때 이미지가 갑자기 바뀌는 불연속적 변화를 보입니다. 기존 연구는 결정적 생성 매핑을 가정하고 픽셀 공간이나 특징 공간의 유클리드 거리를 끌어당겨 잠재 계량을 정의해 왔습니다. 그러나 확률적으로 샘플링하는 확산 모델이나 통계물리 모델에서는 하나의 잠재 변수가 여러 이미지의 분포에 대응하므로 이런 pullback 방식을 그대로 적용하기 어렵습니다.

이 논문은 잠재 변수 t가 주어졌을 때 샘플 분포 p(x\|t)를 가지는 모델을 대상으로 합니다. 연구는 2차원 잠재 공간 단면에 한정하여 Fisher 계량을 재구성하고, 이를 이용해 측지선 보간과 상 경계 구조를 분석하는 것을 목표로 합니다.

## 지수족 로그 분할함수와 Fisher 계량

지수족 분포 p(x\|t)=exp(⟨f(x),t⟩−log Z(t))에서 Fisher 계량은 로그 분할함수의 헤시안과 같습니다. 이 논문은 이 성질을 이용해 로그 분할함수 log Z(t)를 학습하고, 그 헤시안으로 Fisher 계량 gF(t)=∇²log Zθ(t)를 얻습니다.

핵심 관찰은 N개의 표본 x1,...,xN이 p(x\|t′)에서 나올 때 사후분포 p(t\|x1,...,xN)의 N제곱근이 e^(−D\_log Z(t)(t,t′))로 수렴한다는 점입니다. 여기서 D는 log Z에 대한 Bregman 발산이며, 지수족에서는 KL 발산과 같아집니다. 따라서 사후분포를 관찰하면 log Z의 정보를 복원할 수 있습니다.

2차원 잠재 공간에서는 Bryant–Amari–Armstrong 정리에 따라 해석적 리만 계량이 국소적으로 헤시안 표현을 가지므로, 지수족이 아닌 생성 모델의 2차원 단면에도 같은 틀을 적용할 수 있다고 저자들은 설명합니다.

## 사후분포 근사와 Jensen-Shannon 손실

방법은 두 단계로 진행됩니다. 첫 단계에서는 표본으로부터 사후분포 p(t\|x1,...,xN)을 근사합니다. Ising과 TASEP처럼 표본이 픽셀 단위로 상관되지 않는 경우에는 U2-Net을 최대우도로 학습시키고, 확산 모델처럼 사전학습된 특징 추출기를 쓸 수 있는 경우에는 CLIP 임베딩 사이의 거리로 KL 발산을 근사합니다.

둘째 단계에서는 정규화된 분포 plogZ(t\|t′)를 log Zθ(t)로부터 구성합니다. 이 분포는 사후분포와 Jensen-Shannon 발산 DJS으로 비교되며, 이 발산을 최소화해 θ를 학습합니다. 원문은 MSE 손실이 초기 최적화에서 기울기 소실을 겪기 때문에 이 정규화된 비교를 택했다고 설명합니다. MLP는 5개의 은닉층과 은닉 크기 512, ReLU 활성화로 구성되며, 학습 후에는 볼록 함수로 수렴한다고 보고됩니다.

![Figure 11: Training examples for free energy reconstruction. Ground truth images with known generation parameters. CLIP-induced latent distribution. Predicted…](https://refivu.com/papers/35574ec0-80c1-4478-a646-c77467226e26/figures/figure-9812866105eab18a7a91fd60e87c0f87.png?thumb=512)

**Figure 11** : Training examples for free energy reconstruction. Ground truth images with known generation parameters. CLIP-induced latent distribution. Predicted distribution from our convex model.

[원문](https://arxiv.org/abs/2506.10632v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Lobashev, Alexander, Guskov, Dmitry, Larchenko, Maria, Tamm, Mikhail · Hessian Geometry of Latent Space in Generative Models · 원문 그림 인용 · 원본 PDF 24쪽에서 그림 영역을 추출했습니다.

## Ising과 TASEP 자유에너지 재구성

Ising 모델과 TASEP은 정확한 자유에너지가 알려진 모델이므로 방법의 검증에 사용됩니다. Ising 데이터셋은 128×128 격자와 주기 경계 조건으로 구성되며, TASEP은 M=16384 사이트의 1차원 격자에서 N=150000개의 정상 상태 구성을 사용합니다.

결과 표에서 제안 방법은 Ising의 자유에너지 RMSE가 0.0883 ± 0.0006으로, Mean-as-Stat의 0.0981 ± 0.0010과 PCA-VAE의 0.1669 ± 0.0018보다 낮습니다. 편미분 RMSE도 같은 표에 보고되지만, 이 지표들은 자유에너지 재구성 오차로서 낮을수록 좋은 값입니다. TASEP에서 제안 방법의 자유에너지 RMSE는 0.0112 ± 0.00008이며, Mean-as-Stat 0.0529와 PCA-VAE 0.0524보다 낮습니다. 저자들은 재구성된 자유에너지가 정확한 해와 잘 일치한다고 해석하며, TASEP 결과는 경계 근처를 제외하고 거의 정확하다고 보고합니다.

![Table 1: Performance results (RMSE) for ISING and TASEP models. F stands for Free Energy](https://refivu.com/papers/35574ec0-80c1-4478-a646-c77467226e26/figures/figure-1d8ef7deccdcf1662e05c98133ced163.png?thumb=512)

**Table 1** : Performance results (RMSE) for ISING and TASEP models. F stands for Free Energy.

[원문](https://arxiv.org/abs/2506.10632v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Lobashev, Alexander, Guskov, Dmitry, Larchenko, Maria, Tamm, Mikhail · Hessian Geometry of Latent Space in Generative Models · 원문 그림 인용 · 원본 PDF 6쪽에서 그림 영역을 추출했습니다.

## 확산 모델 잠재 단면의 측지선과 상 경계

확산 모델 실험은 Stable Diffusion 1.5(Dreamshaper8)에 DDIM 스케줄러로 50 추론 단계와 classifier free guidance 5를 적용한 설정에서 수행됩니다. 세 개의 초기 잠재 z0, z1, z2를 만들고 z = z0 + α(z1 − z0) + β(z2 − z0)로 2차원 격자를 구성합니다. 각 초기 삼중항마다 60000개의 이미지를 생성하며, 결정적 샘플링을 위해 η=0으로 설정합니다.

![Figure 7: (A) Geodesic (ours) and linear interpolation between images. Note that our interpolation variant is more perceptually smooth. (B) Illustration of 60…](https://refivu.com/papers/35574ec0-80c1-4478-a646-c77467226e26/figures/figure-edd6e9924022ab699cd131fbbddf30b1.png?thumb=512)

**Figure 7** : (A) Geodesic (ours) and linear interpolation between images. Note that our interpolation variant is more perceptually smooth. (B) Illustration of 60 000 generated by StableDiffusion images with geodesic plots (C) First and second derivatives of the log-partition function of diffusion model. Note, that second derivatives are diagonal components of the Fisher metric.

[원문](https://arxiv.org/abs/2506.10632v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Lobashev, Alexander, Guskov, Dmitry, Larchenko, Maria, Tamm, Mikhail · Hessian Geometry of Latent Space in Generative Models · 원문 그림 인용 · 원본 PDF 8쪽에서 그림 영역을 추출했습니다.

이 설정에서 저자들은 재구성된 log Z가 부드럽지 않고 미분에 급격한 변화가 있다고 보고합니다. 측지선은 한 상 안에서는 대략 선형이지만 상 경계에서는 비선형으로 벗어납니다. 제안 측지선 보간은 선형 보간보다 지각적으로 더 매끄럽다고 제시됩니다. 이 결과는 Stable Diffusion과 CLIP 거리 기반 사후 근사에 대한 것이며, 다른 특징 추출기나 다른 생성 모델로 확장된 결과는 아닙니다.

![Figure 5: Free energy of diffusion model reconstructed with CLIP distance](https://refivu.com/papers/35574ec0-80c1-4478-a646-c77467226e26/figures/figure-0de686f3dde89c9a8ba65cfd9636c53b.png?thumb=512)

**Figure 5** : Free energy of diffusion model reconstructed with CLIP distance.

[원문](https://arxiv.org/abs/2506.10632v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Lobashev, Alexander, Guskov, Dmitry, Larchenko, Maria, Tamm, Mikhail · Hessian Geometry of Latent Space in Generative Models · 원문 그림 인용 · 원본 PDF 6쪽에서 그림 영역을 추출했습니다.

![Figure 6: The fractal structure of phase boundary in the interpolation landscape of diffusion model. The last plot represent the parameter variations 10−5 betw…](https://refivu.com/papers/35574ec0-80c1-4478-a646-c77467226e26/figures/figure-065adbbb0354cc508ac1e00632e07f37.png?thumb=512)

**Figure 6** : The fractal structure of phase boundary in the interpolation landscape of diffusion model. The last plot represent the parameter variations 10−5 between neighboring images. The small changes in latent space cause switching between a mountain and a lion.

[원문](https://arxiv.org/abs/2506.10632v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Lobashev, Alexander, Guskov, Dmitry, Larchenko, Maria, Tamm, Mikhail · Hessian Geometry of Latent Space in Generative Models · 원문 그림 인용 · 원본 PDF 7쪽에서 그림 영역을 추출했습니다.

![Figure 12: First- and second-order derivatives of the diffusion model’s free energy. Discontinuities mark first-order phase transitions and second-order transi…](https://refivu.com/papers/35574ec0-80c1-4478-a646-c77467226e26/figures/figure-11c241792956a1ca24d1f681bfd6cdc2.png?thumb=512)

**Figure 12** : First- and second-order derivatives of the diffusion model’s free energy. Discontinuities mark first-order phase transitions and second-order transitions. Regions of constant derivative correlate with visually distinct phases.

[원문](https://arxiv.org/abs/2506.10632v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Lobashev, Alexander, Guskov, Dmitry, Larchenko, Maria, Tamm, Mikhail · Hessian Geometry of Latent Space in Generative Models · 원문 그림 인용 · 원본 PDF 25쪽에서 그림 영역을 추출했습니다.

![Figure 13: Free energy derivatives of diffusion model’s free energy reconstructed with clip distance. Overlaid grid highlights regions of constant derivative,…](https://refivu.com/papers/35574ec0-80c1-4478-a646-c77467226e26/figures/figure-78453f181bf326286b553b44b21263c2.png?thumb=512)

**Figure 13** : Free energy derivatives of diffusion model’s free energy reconstructed with clip distance. Overlaid grid highlights regions of constant derivative, correlating with visually distinct phases.

[원문](https://arxiv.org/abs/2506.10632v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Lobashev, Alexander, Guskov, Dmitry, Larchenko, Maria, Tamm, Mikhail · Hessian Geometry of Latent Space in Generative Models · 원문 그림 인용 · 원본 PDF 26쪽에서 그림 영역을 추출했습니다.

## 결정적 샘플링에서의 경로 길이와 곡률 비교

결정적 샘플링 조건에서 제안 측지선, 선형 보간, Wang/Shao 방식의 경로를 CLIP 길이, 픽셀 길이, PPL로 비교합니다. 표에서 CLIP 길이는 제안 측지선 72.3 ± 4.00, 선형 73.6 ± 3.54, Wang/Shao 73.6 ± 4.37이며, PPL은 3.12 ± 0.16, 3.17 ± 0.23, 3.19 ± 0.21입니다. 저자들은 이 결과를 결정적 샘플링에서 기존 기준선과 대체로 비슷하다고 봅니다.

평균 곡률은 제안 측지선이 0.367 ± 0.691, 선형 보간이 0.00 ± 0.00, Wang/Shao 방식이 1.33 ± 0.53입니다. 저자들은 Wang/Shao 경로의 높은 곡률을 유한차분 Jacobian에서 생긴 고주파 잡음으로 해석합니다. 이 비교는 결정적 샘플링 조건에 한정되며, 확률적 샘플링에서의 같은 결과는 이 표로 확인되지 않습니다.

![Table 2: Comparison of trajectory lengths and curvature in deterministic sampling regime](https://refivu.com/papers/35574ec0-80c1-4478-a646-c77467226e26/figures/figure-c57a3d269cdd5cae01706b8102d09d26.png?thumb=512)

**Table 2** : Comparison of trajectory lengths and curvature in deterministic sampling regime.

[원문](https://arxiv.org/abs/2506.10632v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Lobashev, Alexander, Guskov, Dmitry, Larchenko, Maria, Tamm, Mikhail · Hessian Geometry of Latent Space in Generative Models · 원문 그림 인용 · 원본 PDF 9쪽에서 그림 영역을 추출했습니다.

## Lipschitz 발산에 대한 이론적 예시

논문은 확산 모델의 역 과정이 서로 떨어진 저차원 다양체로 매핑될 때 Lyapunov 지수가 발산할 수 있다고 제시합니다. 이를 설명하기 위해 Proposition 4.1은 목표분포가 분산 σ²인 두 가우시안의 혼합이고 잠재 분포가 표준정규분포인 경우를 다룹니다.

명제의 결론은 x=0에서 Lyapunov 지수 λ=β/2·(1+1−σ²/σ⁴)의 형태를 가지며, σ가 0으로 갈수록 발산한다는 것입니다. 저자들은 x=0을 상 전이 경계로 해석합니다. 이 명제는 특정 SDE와 가우시안 혼합 설정에서의 결론이며, 실제 확산 모델 전체에 대한 증명으로 제시된 것은 아닙니다.

![Figure 8: Illustration of Proposition 4.1](https://refivu.com/papers/35574ec0-80c1-4478-a646-c77467226e26/figures/figure-0a8ed0e4649a7922cd72fd43f06c453d.png?thumb=512)

**Figure 8** : Illustration of Proposition 4.1

[원문](https://arxiv.org/abs/2506.10632v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Lobashev, Alexander, Guskov, Dmitry, Larchenko, Maria, Tamm, Mikhail · Hessian Geometry of Latent Space in Generative Models · 원문 그림 인용 · 원본 PDF 9쪽에서 그림 영역을 추출했습니다.

## 적용 범위와 한계

이 방법의 이론적 보장은 지수족 데이터 분포에 대한 Theorem 3.1과 3.2에 기반합니다. 2차원 단면에 대한 Bryant–Amari–Armstrong 정리는 해석적 계량의 국소 표현을 제공하지만, 확산 모델 실험에서의 결과는 CLIP 거리 기반 사후 근사와 특정 Stable Diffusion 설정에 의존합니다. 원문은 다른 특징 추출기에서도 상 경계가 안정적이었다고 보고하지만, 다른 생성 모델과 설정에서의 일반성은 이 논문의 실험으로 확인되지 않습니다.

또한 상 경계 근처의 분석은 Fisher 계량이 해석적이지 않고 매끄럽지 않은 영역을 가리키지만, 확률적 샘플링에서의 같은 곡률 비교는 제시되지 않았습니다. 노이즈를 추가한 η=0.1 설정에서는 경계가 부드러워진다고 보고되어, 상 경계의 존재가 샘플링 설정에 민감함을 보여 줍니다.

![Figure 9: Free energy surface of a diffusion model ( η = 0.1) reconstructed using CLIP distance. Noise injection smooths the free energy landscape, suppressing…](https://refivu.com/papers/35574ec0-80c1-4478-a646-c77467226e26/figures/figure-bb206b4806aae08b4486f53cd3fe3da3.png?thumb=512)

**Figure 9** : Free energy surface of a diffusion model ( η = 0.1) reconstructed using CLIP distance. Noise injection smooths the free energy landscape, suppressing sharp phase boundaries (compare with Fig. 5).

[원문](https://arxiv.org/abs/2506.10632v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Lobashev, Alexander, Guskov, Dmitry, Larchenko, Maria, Tamm, Mikhail · Hessian Geometry of Latent Space in Generative Models · 원문 그림 인용 · 원본 PDF 23쪽에서 그림 영역을 추출했습니다.

## 논문 정보

- **저자**: Lobashev, Alexander, Guskov, Dmitry, Larchenko, Maria, Tamm, Mikhail
- **학회·저널**: arXiv · 프리프린트
- **최초 공개일**: 2025년 6월 12일
- **등록일**: 2026년 10월 29일
- **수정일**: 2025년 6월 12일
- **버전**: v1
- **arXiv**: 2506.10632
- **원문 이용 조건**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **제공 범위**: 논문 정보, 해설, 허용된 원문 그림

[논문 원문 ↗](https://arxiv.org/abs/2506.10632v1) · [원문 PDF ↗](https://arxiv.org/pdf/2506.10632v1)

AI 해설은 논문 원문과 별개의 설명이며 오류가 있을 수 있습니다. 원문과 그림은 각 출처의 이용 조건과 따로 표시된 권리를 따릅니다.

## 초록

This paper presents a novel method for analyzing the latent space geometry of generative models, including statistical physics models and diffusion models, by reconstructing the Fisher information metric. The method approximates the posterior distribution of latent variables given generated samples and uses this to learn the log-partition function, which defines the Fisher metric for exponential families. Theoretical convergence guarantees are provided, and the method is validated on the Ising and TASEP models, outperforming existing baselines in reconstructing thermodynamic quantities. Applied to diffusion models, the method reveals a fractal structure of phase transitions in the latent space, characterized by abrupt changes in the Fisher metric. We demonstrate that while geodesic interpolations are approximately linear within individual phases, this linearity breaks down at phase boundaries, where the diffusion model exhibits a divergent Lipschitz constant with respect to the latent space. These findings provide new insights into the complex structure of diffusion model latent spaces and their connection to phenomena like phase transitions. Our source code is available at https://github.com/alobashev/hessian-geometry-of-diffusion-models.

## 원문 인용

Lobashev, Alexander, Guskov, Dmitry, Larchenko, Maria, Tamm, Mikhail (2025). Hessian Geometry of Latent Space in Generative Models. arXiv:2506.10632v1. https://arxiv.org/abs/2506.10632v1

**BibTeX**

```
@misc{alexander2025hessian,
  title = {{Hessian Geometry of Latent Space in Generative Models}},
  author = {Lobashev, Alexander and Guskov, Dmitry and Larchenko, Maria and Tamm, Mikhail},
  year = {2025},
  eprint = {2506.10632},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2506.10632v1}
}
```

## 이 논문의 용어

- [RMSE](https://refivu.com/terms/ad2579cf164a-rmse)
- [DDIM](https://refivu.com/terms/6c24451d09a5-ddim)
- [Kullback-Leibler divergence](https://refivu.com/terms/3aa99486ee6b-kullback-leibler-divergence)
- [Bregman divergence](https://refivu.com/terms/901f7d5a921d-bregman-divergence)
- [Jensen-Shannon divergence](https://refivu.com/terms/408b4685369b-jensen-shannon-divergence)
- [Theorem 3.1](https://refivu.com/terms/02b4244c2071-theorem-3-1)
- [Proposition 4.1](https://refivu.com/terms/835b2d4cbea6-proposition-4-1)
- [free energy](https://refivu.com/terms/4c14d92da0d7-free-energy)
- [Ising model](https://refivu.com/terms/9dc58169319e-ising-model)
- [Lyapunov exponent](https://refivu.com/terms/b34c2b90244a-lyapunov-exponent)
- [Perceptual path length](https://refivu.com/terms/fd83520063e5-perceptual-path-length)
- [log-partition function](https://refivu.com/terms/e659dff0b71f-log-partition-function)
- [U2-Net](https://refivu.com/terms/f4d5ef0dac37-u2-net)

## 다른 논문 해설

- [Improving Consistency Models with Generator-Augmented Flows](https://refivu.com/papers/805b43bc-e24b-4a82-9b1d-0b75f3b5e976-improving-consistency-models-with-generator-augmented-flows.md)
- [Posterior Inference with Diffusion Models for High-dimensional Black-box Optimization](https://refivu.com/papers/df54b967-35f0-4217-af0f-4c91e3fffee5-posterior-inference-with-diffusion-models-for-high.md)
- [Open Materials Generation with Stochastic Interpolants](https://refivu.com/papers/8d5533d2-d4cb-4d87-9bf6-440cd9d3d4d7-open-materials-generation-with-stochastic-interpolants.md)
- [GenMol: A Drug Discovery Generalist with Discrete Diffusion](https://refivu.com/papers/9dd1a77c-1134-4a20-acbe-b4b60c051aff-genmol-a-drug-discovery-generalist-with-discrete-diffusion.md)
- [Understanding and Mitigating Memorization in Generative Models via Sharpness of Probability Landscapes](https://refivu.com/papers/e75379e9-eec1-44a1-a86a-1569dc00ae8d-understanding-and-mitigating-memorization-in-generative.md)
- [DRAG: Data Reconstruction Attack using Guided Diffusion](https://refivu.com/papers/4839aaf8-38e7-4160-bc2e-53b55d3c9898-drag-data-reconstruction-attack-using-guided-diffusion.md)
- [Inference-Time Decomposition of Activations (ITDA): A Scalable Approach to Interpreting Large Language Models](https://refivu.com/papers/09a43597-957b-4a9d-9f9a-2d0e0dbc4063-inference-time-decomposition-of-activations-itda-a-scalable.md)
- [Pretraining Generative Flow Networks with Inexpensive Rewards for Molecular Graph Generation](https://refivu.com/papers/4786573c-5464-44b3-8cf8-f543f3486470-pretraining-generative-flow-networks-with-inexpensive.md)
- [Upweighting Easy Samples in Fine-Tuning Mitigates Forgetting](https://refivu.com/papers/fa13d84c-e623-4cce-866e-62488d1e9523-upweighting-easy-samples-in-fine-tuning-mitigates-forgetting.md)
- [Dynamic Sparse Training of Diagonally Sparse Networks](https://refivu.com/papers/2b87988d-a129-482c-9c7b-0942ddbcacc0-dynamic-sparse-training-of-diagonally-sparse-networks.md)
- [TGDPO: Harnessing Token-Level Reward Guidance for Enhancing Direct Preference Optimization](https://refivu.com/papers/5a2c4ee5-6c2f-4e4d-b8ec-2d708650adb3-tgdpo-harnessing-token-level-reward-guidance-for-enhancing.md)
- [Pixel-level Certified Explanations via Randomized Smoothing](https://refivu.com/papers/69d71e3a-bf93-472d-82de-cbff9dba6c17-pixel-level-certified-explanations-via-randomized-smoothing.md)

---

AI 해설에는 오류가 있을 수 있습니다. [Refivu](https://refivu.com/papers/35574ec0-80c1-4478-a646-c77467226e26-hessian-geometry-of-latent-space-in-generative-models)
