# Beyond Softmax: A Natural Parameterization for Categorical Random Variables

Softmax를 넘어서: 범주형 확률변수를 위한 자연스러운 매개변수화

Alessandro Manenti, Cesare Alippi · arXiv · 2025년 9월 29일

- **연구 문제** 범주형 잠재변수 학습은 이산성 때문에 그래디언트 기반 최적화가 불안정해지기 쉽고, 이 논문은 softmax의 기하학적 문제를 파라미터화 측면에서 다룹니다.
- **연구 방법** catnat는 점수를 여러 이진 분할로 나누어 범주 확률을 만들며, 자연 활성화 함수와 함께 대각 Fisher 정보 행렬을 유도하는 것이 핵심입니다.
- **주요 결과** 원문은 그래프 구조 학습, VAE, Atari 강화학습에서 catnat 계열이 softmax 또는 sparsemax 대비 여러 지표에서 개선을 보였다고 보고합니다.

## 범주형 잠재변수 학습의 어려움

범주형 잠재변수는 강화학습의 이산 행동, 잠재 그래프의 간선 존재 여부, 생성 모델의 잠재 범주처럼 여러 딥러닝 구조에서 쓰입니다. 그러나 이산 변수는 그래디언트 기반 학습에 어려움을 줍니다. 원문은 기존 연구들이 주로 그래디언트 추정기의 분산을 줄이는 방향으로 학습 안정성을 개선해 왔다고 설명합니다. 이 논문은 이와 다른 관점으로, 범주 확률을 만드는 파라미터화 함수 자체를 바꾸는 방법을 다룹니다. 원문은 softmax가 정보기하 관점에서 밀집된 Fisher 정보 행렬을 만들어 최적화 경로를 왜곡할 수 있다고 주장합니다.

![Figure 1: Cross-entropy loss landscapes forsoftmaxandcatnat parameterizations in a three-class classification problem with a uniform target distribution. Theca…](https://refivu.com/papers/7a5ace9b-5535-4776-88b5-88baccef96e8/figures/figure-8bda49506e6a3d36e22c2f0983b45432.png?thumb=512)

**Figure 1** .Cross-entropy loss landscapes forsoftmaxandcatnat parameterizations in a three-class classification problem with a uniform target distribution. Thecatnatlandscape is smoother and more regular, yielding more direct gradient-descent trajectories (black lines). Forsoftmax, the plot shows only a two-dimensional slice of its three-parameter landscape.

[원문](https://arxiv.org/abs/2509.24728v2) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Alessandro Manenti, Cesare Alippi · Beyond Softmax: A Natural Parameterization for Categorical Random Variables · 원문 그림 인용 · 원본 PDF 1쪽에서 그림 영역을 추출했습니다.

## catnat의 계층적 이진 분할과 대각 Fisher 행렬

catnat는 각 점수 s\_i에 활성화 함수 a(s\_i)를 적용해 왼쪽 또는 오른쪽으로 내려가는 이진 결정을 만들고, 이 결정들의 곱으로 범주 확률을 구성합니다. 원문은 범주 확률 p를 노드의 이진 경로 확률 곱으로 쓰며, 노드의 조상 경로 확률 P(a\_i)를 함께 정의합니다. 원문은 이 구조에서 Fisher 정보 행렬 G\_a(s)가 대각행렬이 됨을 정리 4.2로 제시합니다. 대각 원소는 P(a\_i)와 활성화 함수 도함수 항으로 이루어지며, 각 원소는 최대 H = log2(K)개의 점수에만 의존합니다. 자연 활성화 함수 ν는 이 도함수 항을 상수로 만들도록 설계되었으며, 원문 따름정리 4.3은 ν를 쓸 때 대각 원소가 국소 점수 s\_i에 의존하지 않고 조상 확률 P(a\_i)에만 의존한다고 설명합니다.

## 그래프 구조 학습에서의 비교

그래프 구조 학습 실험에서는 잠재 간선 확률을 베르누이 변수로 두고, 참 파라미터 θ\*가 0.1, 0.25, 0.5, 0.75, 0.9인 다섯 데이터셋에서 softmax, sparsemax, sigmoid 활성화, 자연 활성화를 비교합니다. 학습은 Energy Score 손실과 LOO 기준값을 쓴 Score Function 추정기로 이루어집니다. 원문은 표 2에서 자연 활성화가 ES, PP-MAE, PP-MSE, θ의 MAE 지표에서 softmax와 sparsemax, sigmoid보다 좋은 결과를 보였다고 보고합니다. 다만 이 결과는 각 θ\* 설정별 평균과 표준편차, Welch 검정 조건에서 읽어야 하며, 다른 그래프 데이터나 다른 GNN 구조로 일반화된 결과가 아닙니다.

![Table 1: Different datasets are generated with different latent distributions. The latent distribution is determined by the Bernoulli probability θ ∗ of sa…](https://refivu.com/papers/7a5ace9b-5535-4776-88b5-88baccef96e8/figures/figure-3cdad278b46c4a0c371c5e194982a98d.png?thumb=512)

**Table 1** . Different datasets are generated with different latent distributions. The latent distribution is determined by the Bernoulli probability θ ∗ of sampling edges from communities as in Fig. 5.

[원문](https://arxiv.org/abs/2509.24728v2) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Alessandro Manenti, Cesare Alippi · Beyond Softmax: A Natural Parameterization for Categorical Random Variables · 원문 그림 인용 · 원본 PDF 6쪽에서 그림 영역을 추출했습니다.

![Table 2: Test metrics of models trained on datasets generated with different true latent parameters θ∗. ES, PP-MAE, and PP-MSE measure predictive performance,…](https://refivu.com/papers/7a5ace9b-5535-4776-88b5-88baccef96e8/figures/figure-9970de30c03327a7025672ee693d5936.png?thumb=512)

**Table 2** .Test metrics of models trained on datasets generated with different true latent parameters θ∗. ES, PP-MAE, and PP-MSE measure predictive performance, while MAE in θ evaluates calibration on the latent distribution parameters. For all metrics, lower values indicate better performance.Boldnumbers indicate the best-performing models (p-value of the Welch’s t-test \<0.05 ). Optimal values are estimated using the true generating model.

[원문](https://arxiv.org/abs/2509.24728v2) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Alessandro Manenti, Cesare Alippi · Beyond Softmax: A Natural Parameterization for Categorical Random Variables · 원문 그림 인용 · 원본 PDF 7쪽에서 그림 영역을 추출했습니다.

## 변분 오토인코더 실험

VAE 실험에서는 인코더가 이미지에서 N×K 점수 텐서를 만들고, 이를 네 가지 파라미터화로 범주 분포로 바꿉니다. 샘플링은 Gumbel-Softmax 트릭으로 미분 가능하게 근사하며, 학습 목적은 ELBO 최소화입니다. 원문 표 3은 MNIST와 이진 MNIST에서 N∈{10,20,30}, K∈{8,16,32} 설정의 음의 로그우도를 512개 중요도 표본으로 추정해 비교합니다. 원문은 두 catnat 파라미터화가 softmax와 sparsemax보다 대부분 설정에서 낮은 값을 보였다고 말합니다. 같은 계층 안에서 자연 활성화와 sigmoid 활성화의 차이는 대부분 설정에서 작고 전체적으로는 통계적으로 같다고 보고됩니다.

## Atari 강화학습 비교

강화학습 실험은 PPO로 Breakout과 Seaquest의 이산 행동 공간에서 정책 헤드의 점수를 softmax 또는 자연 활성화 catnat로 확률로 바꾸어 학습합니다. 방법별로 160개 시도를 TPE로 샘플링한 뒤 상위 10개 설정을 10개 시드로 재평가했습니다. 원문 표 4에서 Seaquest의 최종 에피소드 반환은 softmax 1875±312, catnat ν 2164±533이고, Breakout은 softmax 398±25, catnat ν 406±34입니다. 원문은 Seaquest에서 개선이 더 크고 Breakout에서는 작다고 보고하며, 포괄적 하이퍼파라미터 탐색을 수행하지 못했다는 한계도 밝힙니다.

![Table 4: Final episodic returns on Seaquest and Breakout environ- ments. The higher the better.Bolddenotes the best-performing models (p-value of the Welch’s t…](https://refivu.com/papers/7a5ace9b-5535-4776-88b5-88baccef96e8/figures/figure-86888bb4753b284520be210cd5410477.png?thumb=512)

**Table 4** .Final episodic returns on Seaquest and Breakout environ- ments. The higher the better.Bolddenotes the best-performing models (p-value of the Welch’s t-test\<0.05)

[원문](https://arxiv.org/abs/2509.24728v2) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Alessandro Manenti, Cesare Alippi · Beyond Softmax: A Natural Parameterization for Categorical Random Variables · 원문 그림 인용 · 원본 PDF 9쪽에서 그림 영역을 추출했습니다.

## 적용 범위와 한계

원문은 실험이 최첨단 성능을 목표로 설계되지 않았으며 방법의 광범위한 적용 가능성과 효과를 보여주기 위한 것이라고 밝힙니다. 강화학습 실험은 계산 부담 때문에 전면적인 탐색을 하지 못했고, 추가 VAE 코드베이스 실험은 원래 학습 일정이 설정에서 완전히 수렴하지 않아 에포크를 늘렸습니다. 원문은 대각 Fisher 정보 행렬을 만드는 성질이 categorical 분포 범위에서 증명되었으며, 다른 연속 또는 이산 분포족으로의 확장은 향후 과제로 남긴다고 설명합니다.

## 논문 정보

- **저자**: Alessandro Manenti, Cesare Alippi
- **학회·저널**: arXiv · 프리프린트
- **최초 공개일**: 2025년 9월 29일
- **등록일**: 2026년 10월 29일
- **수정일**: 2026년 5월 12일
- **버전**: v2
- **arXiv**: 2509.24728
- **분류**: cs.LG · stat.ML
- **원문 이용 조건**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **제공 범위**: 논문 정보, 해설, 허용된 원문 그림

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

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

## 초록

Latent categorical variables are frequently found in deep learning architectures. They can model actions in discrete reinforcement-learning environments, represent categories in latent-variable models, or express relations in graph neural networks. Despite their widespread use, their discrete nature poses significant challenges to gradient-descent learning algorithms. While a substantial body of work has offered improved gradient estimation techniques, we take a complementary approach. Specifically, we: 1) revisit the ubiquitous $\\textit{softmax}$ function and demonstrate its limitations from an information-geometric perspective; 2) replace the $\\textit{softmax}$ with the $\\textit{catnat}$ function, a function composed of a sequence of hierarchical binary splits; we prove that this choice offers significant advantages to gradient descent due to the resulting diagonal Fisher Information Matrix. A rich set of experiments - including graph structure learning, variational autoencoders, and reinforcement learning - empirically show that the proposed function improves the learning efficiency and yields models characterized by consistently higher test performance. $\\textit{Catnat}$ is simple to implement and seamlessly integrates into existing codebases. Moreover, it remains compatible with standard training stabilization techniques and, as such, offers a better alternative to the $\\textit{softmax}$ function.

## 원문 인용

Alessandro Manenti, Cesare Alippi (2025). Beyond Softmax: A Natural Parameterization for Categorical Random Variables. arXiv:2509.24728v2. https://arxiv.org/abs/2509.24728v2

**BibTeX**

```
@misc{manenti2025beyond,
  title = {{Beyond Softmax: A Natural Parameterization for Categorical Random Variables}},
  author = {Alessandro Manenti and Cesare Alippi},
  year = {2025},
  eprint = {2509.24728},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2509.24728v2}
}
```

## 이 논문의 용어

- [MNIST](https://refivu.com/terms/28b9bb66d1c6-mnist)
- [Adam](https://refivu.com/terms/0e9ad0199e08-adam)
- [강화학습](https://refivu.com/terms/9d55ef3a06b9-reinforcement-learning)
- [Proximal Policy Optimization](https://refivu.com/terms/59b59e5d0f9d-proximal-policy-optimization)
- [softmax](https://refivu.com/terms/4a7673b6518d-softmax)
- [Gumbel-Softmax](https://refivu.com/terms/e169554398b3-gumbel-softmax)
- [straight-through estimator](https://refivu.com/terms/daa90b015f59-straight-through-estimator)
- [score function](https://refivu.com/terms/850200f986d6-score-function)
- [Variational Autoencoders](https://refivu.com/terms/4e570b65e841-variational-autoencoders)
- [Fisher information matrix](https://refivu.com/terms/805248ff459f-fisher-information-matrix)
- [Kullback–Leibler divergence](https://refivu.com/terms/eb035359547b-kullback-leibler-divergence)
- [energy score](https://refivu.com/terms/9b300b5bf053-energy-score)
- [natural gradient](https://refivu.com/terms/241750b87e43-natural-gradient)
- [sparsemax](https://refivu.com/terms/1e58f0a25e6f-sparsemax)
- [Tree-structured Parzen Estimator](https://refivu.com/terms/0955cd16de87-tree-structured-parzen-estimator)
- [evidence lower bound (ELBO)](https://refivu.com/terms/2d947fa9b70b-evidence-lower-bound-elbo)
- [Negative log-likelihoods](https://refivu.com/terms/d1aad041022d-negative-log-likelihoods)
- [Seaquest](https://refivu.com/terms/ee66d6dab19b-seaquest)

## 다른 논문 해설

- [Grokking Finite-Dimensional Algebra](https://refivu.com/papers/1a9d41cf-f0ae-4523-ac62-8bb78fcc5e45-grokking-finite-dimensional-algebra.md)
- [PACER: Acyclic Causal Discovery from Large-Scale Interventional Data](https://refivu.com/papers/e006328f-4b31-464d-b79d-0fd4f21eb3e1-pacer-acyclic-causal-discovery-from-large-scale.md)
- [What if Tomorrow is the World Cup Final? Counterfactual Time Series Forecasting with Textual Conditions](https://refivu.com/papers/cba0da79-ad29-4fb5-851f-756f309cffc1-what-if-tomorrow-is-the-world-cup-final.md)
- [Shapley Neuron Values for Continual Learning: Which Neurons Matter Most?](https://refivu.com/papers/97f97ffc-ebf7-4a05-b87b-c78af8edd215-shapley-neuron-values-for-continual-learning-which-neurons.md)
- [M2PDE: Compositional Generative Multiphysics and Multi-component PDE Simulation](https://refivu.com/papers/5678c84a-6969-4a55-abfa-751b8b379551-m2pde-compositional-generative-multiphysics-and-multi.md)
- [AutoAL: Automated Active Learning with Differentiable Query Strategy Search](https://refivu.com/papers/59e76c50-14a7-4d9a-b1a0-48bb6988c790-autoal-automated-active-learning-with-differentiable-query.md)
- [Probabilistic Modeling of Latent Agentic Substructures in Deep Neural Networks](https://refivu.com/papers/7f2294ef-b047-4adb-995d-fe8ab941fe66-probabilistic-modeling-of-latent-agentic-substructures-in.md)
- [Towards Resource-Efficient LLMs: End-to-End Energy Accounting of Distillation Pipelines](https://refivu.com/papers/5878352c-4116-416e-8a9c-9c0d1a95c045-towards-resource-efficient-llms-end-to-end-energy.md)
- [Di-BiLPS: Denoising induced Bidirectional Latent-PDE-Solver under Sparse Observations](https://refivu.com/papers/360d78d2-f9e8-4889-86ff-c175ef9efc7b-di-bilps-denoising-induced-bidirectional-latent-pde-solver.md)
- [The Efficiency Gap in Byte Modeling](https://refivu.com/papers/0b349da4-cfcc-42c3-bcdd-4db446d9f47a-the-efficiency-gap-in-byte-modeling.md)
- [Preserve-Then-Quantize: Balancing Rank Budgets for Quantization Error Reconstruction in LLMs](https://refivu.com/papers/ff60e1eb-f2ba-469b-9e03-e8aac23e03fa-preserve-then-quantize-balancing-rank-budgets-for.md)
- [VIPO: Value Function Inconsistency Penalized Offline Reinforcement Learning](https://refivu.com/papers/5ec32370-b33e-491f-b790-74612637a085-vipo-value-function-inconsistency-penalized-offline.md)

---

AI 해설에는 오류가 있을 수 있습니다. [Refivu](https://refivu.com/papers/7a5ace9b-5535-4776-88b5-88baccef96e8-beyond-softmax-a-natural-parameterization-for-categorical)
