# Bayesian Learning for Neural Networks: an algorithmic survey

신경망을 위한 베이지안 학습: 알고리즘 관점의 서베이

Martin Magris, Alexandros Iosifidis · arXiv · 2022년 11월 21일

- **연구 문제** 베이지안 신경망의 사후분포는 정규화 상수와 고차원 적분 때문에 직접 계산하기 어렵습니다.
- **연구 방법** 이 서베이는 변분 추론, 자연 경사, 몬테카를로 드롭아웃, 블랙박스 변분 추론, 다양체 최적화 방법을 알고리즘 관점에서 정리합니다.
- **주요 결과** 원문은 여러 근사 방법의 갱신 규칙과 가정을 비교하며, 자연 경사와 다양체 최적화가 공분산 제약을 다루는 방법으로 제시됩니다.

## 베이지안 신경망 학습의 어려움

베이지안 신경망은 신경망의 가중치를 점추정하지 않고 사후분포로 다룹니다. 이렇게 하면 매개변수의 불확실성과 예측의 신뢰도를 함께 표현할 수 있습니다. 그러나 사후분포의 정규화 상수인 주변우도는 대부분 닫힌 형태로 계산되지 않으며, 신경망처럼 매개변수 수가 많은 모델에서는 적분 자체가 다차원이 됩니다. 이 논문은 이 계산 문제를 해결하는 근사 추론 방법들을 알고리즘 관점에서 정리합니다.

![Figure 3: A BNN with multiple layers. Connections correspond to random variables, and outputs here correspond to a tri-variate distribution, whose marginals ar…](https://refivu.com/papers/ad989b2f-a3c4-4aa9-b594-cdc6718af341/figures/figure-ef864e45cf24cbb8347a07521a93cddf.png?thumb=512)

**Figure 3** : A BNN with multiple layers. Connections correspond to random variables, and outputs here correspond to a tri-variate distribution, whose marginals are represented in the rightmost boxes.

[원문](https://arxiv.org/abs/2211.11865v4) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Martin Magris, Alexandros Iosifidis · Bayesian Learning for Neural Networks: an algorithmic survey · 원문 그림 인용 · 원본 PDF 7쪽에서 그림 영역을 추출했습니다.

원문은 베이지안 추론의 두 근사 경로로 몬테카를로 표본 추출과 변분 추론을 제시합니다. 표본 추출은 사후분포에서 표본을 얻지만 고차원 문제에서 느리고 계산량이 큽니다. 변분 추론은 사후분포를 가족 안의 근사 분포로 바꾸고 변분 하한을 최대화하여 최적화 문제로 만듭니다.

## 변분 추론과 자연 경사

변분 추론은 근사 분포 q를 두고 KL 발산 KL(q\|\|p(θ\|D))를 최소화합니다. 원문은 이 최소화가 로그 주변우도에 대한 하한 L(q)의 최대화와 같다고 설명합니다. 이때 하한은 기대값 로그 우도와 사전분포, 변분분포의 항으로 구성됩니다.

표준 확률적 경사 하강법은 매개변수 공간의 유클리드 거리를 암묵적으로 사용합니다. 원문은 이 거리가 분포 사이의 차이를 잘 반영하지 못한다고 지적하고, 피셔 정보 행렬의 역행렬로 경사를 재조정하는 자연 경사를 제시합니다. 지수족에서는 자연 매개변수에 대한 자연 경사가 기대 매개변수에 대한 유클리드 경사와 같다고 원문이 밝힙니다.

## Bayes-By-Backprop과 Monte Carlo Dropout

Bayes-By-Backprop은 재매개변수화 트릭으로 가중치를 w=t(θ,ε)처럼 결정적 변환으로 표현합니다. 잡음 ε는 변분분포와 독립적으로 뽑히므로 기울기를 역전파로 계산할 수 있습니다. 원문은 가우시안 변분분포의 경우 w=µ+σε 형태를 사용하고, σ가 음수가 되지 않도록 softplus 재매개변수화를 쓴다고 설명합니다.

Monte Carlo Dropout은 드롭아웃을 학습뿐 아니라 예측 시에도 적용하여 여러 번 순전파하는 방법입니다. 원문은 드롭아웃이 적용된 신경망이 심층 가우시안 과정의 근사 변분추론과 수학적으로 연결된다고 설명합니다. 다만 원문은 이 근사의 예측분포가 여러 모드를 가질 수 있고, 근사 사후분포가 불확실성을 충분히 담지 못할 수 있다는 한계도 함께 제시합니다.

## 블랙박스 변분 추론과 다양체 최적화

블랙박스 변분 추론은 모델의 기울기 대신 로그 확률 함수의 값과 변분분포의 점수 함수를 사용하여 하한의 기울기를 추정합니다. 원문은 이 방식이 모델 구조에 대한 가정을 줄이고 제어 변수 같은 분산 감소 기법을 함께 쓴다고 설명합니다.

가우시안 변분분포의 공분산은 대칭 양의 정부호 조건을 만족해야 합니다. 원문은 이 제약을 다루기 위해 리트랙션과 벡터 전이를 사용하는 다양체 최적화를 소개하며, 공분산 역행렬을 갱신하는 EMGVB와 VOGN 등의 방법을 비교합니다. VOGN은 헤시안을 일반화 가우스-뉴턴 근사로 대체하여 양의 분산을 유지하는 방식으로 설명됩니다.

![Figure 4: Left: Tangent space and projection of Riemannian gradient. Center: retraction map. Right: vector transport](https://refivu.com/papers/ad989b2f-a3c4-4aa9-b594-cdc6718af341/figures/figure-e0fa2f024315b5059efaf47be2792e6e.png?thumb=512)

**Figure 4** : Left: Tangent space and projection of Riemannian gradient. Center: retraction map. Right: vector transport.

[원문](https://arxiv.org/abs/2211.11865v4) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Martin Magris, Alexandros Iosifidis · Bayesian Learning for Neural Networks: an algorithmic survey · 원문 그림 인용 · 원본 PDF 29쪽에서 그림 영역을 추출했습니다.

## 적용 범위와 한계

원문은 이 글이 알고리즘 관점의 서베이이며, 제시한 여러 방법을 하나의 통일된 실험 벤치마크로 비교하지 않는다고 설명합니다. 따라서 각 방법의 상대적 성능은 원문이 인용한 개별 연구의 조건에 따라 읽어야 합니다. 또한 VOGN은 대각 공분산 가우시안 변분분포에만 적용된다고 밝혀져 있습니다.

베이지안 신경망의 정확도와 계산 비용 사이의 균형은 방법과 설정에 따라 달라집니다. 이 글은 방법들의 구현 구조와 갱신 규칙을 정리하는 데 초점을 두며, 특정 응용에서의 우위를 일반적으로 확정하지는 않습니다.

## 논문 정보

- **저자**: Martin Magris, Alexandros Iosifidis
- **학회·저널**: arXiv · 프리프린트
- **최초 공개일**: 2022년 11월 21일
- **등록일**: 2026년 11월 6일
- **수정일**: 2023년 1월 31일
- **버전**: v4
- **arXiv**: 2211.11865
- **분류**: stat.ML · cs.LG
- **원문 이용 조건**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **제공 범위**: 논문 정보, 해설, 허용된 원문 그림

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

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

## 초록

The last decade witnessed a growing interest in Bayesian learning. Yet, the technicality of the topic and the multitude of ingredients involved therein, besides the complexity of turning theory into practical implementations, limit the use of the Bayesian learning paradigm, preventing its widespread adoption across different fields and applications. This self-contained survey engages and introduces readers to the principles and algorithms of Bayesian Learning for Neural Networks. It provides an introduction to the topic from an accessible, practical-algorithmic perspective. Upon providing a general introduction to Bayesian Neural Networks, we discuss and present both standard and recent approaches for Bayesian inference, with an emphasis on solutions relying on Variational Inference and the use of Natural gradients. We also discuss the use of manifold optimization as a state-of-the-art approach to Bayesian learning. We examine the characteristic properties of all the discussed methods, and provide pseudo-codes for their implementation, paying attention to practical aspects, such as the computation of the gradients.

## 원문 인용

Martin Magris, Alexandros Iosifidis (2022). Bayesian Learning for Neural Networks: an algorithmic survey. arXiv:2211.11865v4. https://arxiv.org/abs/2211.11865v4

**BibTeX**

```
@misc{magris2022bayesian,
  title = {{Bayesian Learning for Neural Networks: an algorithmic survey}},
  author = {Martin Magris and Alexandros Iosifidis},
  year = {2022},
  eprint = {2211.11865},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2211.11865v4}
}
```

## 이 논문의 용어

- [variational inference](https://refivu.com/terms/44c66cf79542-variational-inference)
- [Monte Carlo dropout](https://refivu.com/terms/623052296a59-monte-carlo-dropout)
- [exponential family](https://refivu.com/terms/ef082fa4fcd7-exponential-family)
- [natural gradient](https://refivu.com/terms/241750b87e43-natural-gradient)
- [Metropolis-Hastings](https://refivu.com/terms/fe275ee114aa-metropolis-hastings)
- [Bayes-By-Backprop](https://refivu.com/terms/1874d8a399a7-bayes-by-backprop)
- [leapfrog integrator](https://refivu.com/terms/6363997c0035-leapfrog-integrator)
- [retraction](https://refivu.com/terms/2e120ee4f39b-retraction)

## 다른 논문 해설

- [A hybrid transformer and attention based recurrent neural network for robust and interpretable sentiment analysis of tweets](https://refivu.com/papers/b54f3e5e-d4a7-4e94-9cbc-b7688f012b1a-a-hybrid-transformer-and-attention-based-recurrent-neural.md)
- [Attention Spiking Neural Networks](https://refivu.com/papers/2c52d99c-a249-4911-96bd-79f6720c0a09-attention-spiking-neural-networks.md)
- [Automatic extraction of road intersection points from USGS historical map series using deep convolutional neural networks](https://refivu.com/papers/2b720330-0dfa-40de-a1dd-bbdf2e0088e0-automatic-extraction-of-road-intersection-points-from-usgs.md)
- [Transferable neural networks for enhanced sampling of protein dynamics](https://refivu.com/papers/c714fbcd-6f6e-4f42-8ba6-dad4e4006880-transferable-neural-networks-for-enhanced-sampling-of.md)
- [Tackling the Curse of Dimensionality with Physics-Informed Neural Networks](https://refivu.com/papers/06c237e9-b634-4450-8252-7fb4dd712d2e-tackling-the-curse-of-dimensionality-with-physics-informed.md)
- [Bayesian Optimization Enhanced Deep Reinforcement Learning for Trajectory Planning and Network Formation in Multi-UAV Networks](https://refivu.com/papers/9684aebc-900c-4d54-ae96-d29e7c6d4958-bayesian-optimization-enhanced-deep-reinforcement-learning.md)
- [Two layer Ensemble of Deep Learning Models for Medical Image Segmentation](https://refivu.com/papers/4667013f-e19f-4588-88f2-e4394ce0e620-two-layer-ensemble-of-deep-learning-models-for.md)
- [Utilizing Reinforcement Learning for de novo Drug Design](https://refivu.com/papers/9b115bbd-df33-42f0-be00-3735f5c8f400-utilizing-reinforcement-learning-for-de-novo-drug-design.md)
- [Model-Agnostic Meta-Learning for Multilingual Hate Speech Detection](https://refivu.com/papers/a51454c9-a3c9-470b-a09a-0d9a7f14a2e7-model-agnostic-meta-learning-for-multilingual-hate-speech.md)
- [Do You Know the Way? Human-in-the-Loop Understanding for Fast Traversability Estimation in Mobile Robotics](https://refivu.com/papers/1889e4f4-567a-4791-b61f-c80fd3c44d5c-do-you-know-the-way-human-in-the.md)
- [Self-supervised Learning for Human Activity Recognition Using 700,000 Person-days of Wearable Data](https://refivu.com/papers/7d06c47d-a111-423f-a4f8-68d244e1093c-self-supervised-learning-for-human-activity-recognition.md)
- [AI-Powered Non-Contact In-Home Gait Monitoring and Activity Recognition System Based on mm-Wave FMCW Radar and Cloud Computing](https://refivu.com/papers/1bdadcdb-dcec-4915-8b6b-8c9e273d2f5c-ai-powered-non-contact-in-home-gait-monitoring.md)

---

AI 해설에는 오류가 있을 수 있습니다. [Refivu](https://refivu.com/papers/ad989b2f-a3c4-4aa9-b594-cdc6718af341-bayesian-learning-for-neural-networks-an-algorithmic-survey)
