SlideShare a Scribd company logo
1 of 2
Download to read offline
A short note on soft-plus polynomials
Tomonari MASADA @ Nagasaki University
February 3, 2016
Consider a set V of two binary variables {x1, x2} and the function of the form
ϕ : {0, 1}V
→ R; x → log(1 + exp(w⊤
x + c)) . (1)
As is explained in [1], this corresponds to the free energy added by one hidden binary variable interacting
pairwise with each of the two visible binary variable x1 and x2.
All possible values obtained by ϕ are
log(1 + exp(c)) for (x1, x2) = (0, 0),
log(1 + exp(w1 + c)) for (x1, x2) = (1, 0),
log(1 + exp(w2 + c)) for (x1, x2) = (0, 1), and
log(1 + exp(w1 + w2 + c)) for (x1, x2) = (1, 1). (2)
Therefore, the function ϕ can be rewritten as follows based on the fact that x1 and x2 are binary:
ϕ(x1, x2) = log(1 + exp(c))(1 − x1)(1 − x2)
+ log(1 + exp(w1 + c))x1(1 − x2)
+ log(1 + exp(w2 + c))(1 − x1)x2
+ log(1 + exp(w1 + w2 + c))x1x2 . (3)
That is, ϕ is a polynomial. The coefficients of the monomials can be given explicitly as below:
ϕ(x1, x2) ={log(1 + exp(c)) − log(1 + exp(w1 + c)) − log(1 + exp(w2 + c)) + log(1 + exp(w1 + w2 + c))}x1x2
+ {− log(1 + exp(c)) + log(1 + exp(w1 + c))}x1
+ {− log(1 + exp(c)) + log(1 + exp(w2 + c))}x2
+ log(1 + exp(c)) . (4)
The following formula gives the coefficients:
KB(w, c) =
∑
C⊆B
(−1)|BC|
log
(
1 + exp
( ∑
i∈C
wi + c
))
, B ∈ 2V
. (5)
For example, when B = {x1, x2},
K{x1,x2}(w, c) =(−1)|{x1,x2}∅|
log
(
1 + exp
( ∑
i∈∅
wi + c
))
+ (−1)|{x1,x2}{x1}|
log
(
1 + exp
( ∑
i∈{x1}
wi + c
))
+ (−1)|{x1,x2}{x2}|
log
(
1 + exp
( ∑
i∈{x2}
wi + c
))
+ (−1)|{x1,x2}{x1,x2}|
log
(
1 + exp
( ∑
i∈{x1,x2}
wi + c
))
= log(1 + exp(c)) − log(1 + exp(w1 + c)) − log(1 + exp(w2 + c)) + log(1 + exp(w1 + w2 + c)) .
(6)
A similar discussion can be made for the case where we have more than two binary variables. See [1].
1
References
[1] Guido Montufar, Johannes Rauh. Hierarchical Models as Marginals of Hierarchical Models. 2015.
arXiv:1508.03606.
2

More Related Content

More from Tomonari Masada

More from Tomonari Masada (20)

Learning Latent Space Energy Based Prior Modelの解説
Learning Latent Space Energy Based Prior Modelの解説Learning Latent Space Energy Based Prior Modelの解説
Learning Latent Space Energy Based Prior Modelの解説
 
Denoising Diffusion Probabilistic Modelsの重要な式の解説
Denoising Diffusion Probabilistic Modelsの重要な式の解説Denoising Diffusion Probabilistic Modelsの重要な式の解説
Denoising Diffusion Probabilistic Modelsの重要な式の解説
 
Context-dependent Token-wise Variational Autoencoder for Topic Modeling
Context-dependent Token-wise Variational Autoencoder for Topic ModelingContext-dependent Token-wise Variational Autoencoder for Topic Modeling
Context-dependent Token-wise Variational Autoencoder for Topic Modeling
 
A note on the density of Gumbel-softmax
A note on the density of Gumbel-softmaxA note on the density of Gumbel-softmax
A note on the density of Gumbel-softmax
 
トピックモデルの基礎と応用
トピックモデルの基礎と応用トピックモデルの基礎と応用
トピックモデルの基礎と応用
 
Expectation propagation for latent Dirichlet allocation
Expectation propagation for latent Dirichlet allocationExpectation propagation for latent Dirichlet allocation
Expectation propagation for latent Dirichlet allocation
 
Mini-batch Variational Inference for Time-Aware Topic Modeling
Mini-batch Variational Inference for Time-Aware Topic ModelingMini-batch Variational Inference for Time-Aware Topic Modeling
Mini-batch Variational Inference for Time-Aware Topic Modeling
 
A note on variational inference for the univariate Gaussian
A note on variational inference for the univariate GaussianA note on variational inference for the univariate Gaussian
A note on variational inference for the univariate Gaussian
 
Document Modeling with Implicit Approximate Posterior Distributions
Document Modeling with Implicit Approximate Posterior DistributionsDocument Modeling with Implicit Approximate Posterior Distributions
Document Modeling with Implicit Approximate Posterior Distributions
 
LDA-Based Scoring of Sequences Generated by RNN for Automatic Tanka Composition
LDA-Based Scoring of Sequences Generated by RNN for Automatic Tanka CompositionLDA-Based Scoring of Sequences Generated by RNN for Automatic Tanka Composition
LDA-Based Scoring of Sequences Generated by RNN for Automatic Tanka Composition
 
A Note on ZINB-VAE
A Note on ZINB-VAEA Note on ZINB-VAE
A Note on ZINB-VAE
 
A Note on Latent LSTM Allocation
A Note on Latent LSTM AllocationA Note on Latent LSTM Allocation
A Note on Latent LSTM Allocation
 
A Note on TopicRNN
A Note on TopicRNNA Note on TopicRNN
A Note on TopicRNN
 
Topic modeling with Poisson factorization (2)
Topic modeling with Poisson factorization (2)Topic modeling with Poisson factorization (2)
Topic modeling with Poisson factorization (2)
 
Poisson factorization
Poisson factorizationPoisson factorization
Poisson factorization
 
A derivation of the sampling formulas for An Entity-Topic Model for Entity Li...
A derivation of the sampling formulas for An Entity-Topic Model for Entity Li...A derivation of the sampling formulas for An Entity-Topic Model for Entity Li...
A derivation of the sampling formulas for An Entity-Topic Model for Entity Li...
 
A Note on BPTT for LSTM LM
A Note on BPTT for LSTM LMA Note on BPTT for LSTM LM
A Note on BPTT for LSTM LM
 
The detailed derivation of the derivatives in Table 2 of Marginalized Denoisi...
The detailed derivation of the derivatives in Table 2 of Marginalized Denoisi...The detailed derivation of the derivatives in Table 2 of Marginalized Denoisi...
The detailed derivation of the derivatives in Table 2 of Marginalized Denoisi...
 
A Note on PCVB0 for HDP-LDA
A Note on PCVB0 for HDP-LDAA Note on PCVB0 for HDP-LDA
A Note on PCVB0 for HDP-LDA
 
ChronoSAGE: Diversifying Topic Modeling Chronologically
ChronoSAGE: Diversifying Topic Modeling ChronologicallyChronoSAGE: Diversifying Topic Modeling Chronologically
ChronoSAGE: Diversifying Topic Modeling Chronologically
 

Recently uploaded

如何办理澳洲悉尼大学毕业证(USYD毕业证书)学位证书成绩单原版一比一
如何办理澳洲悉尼大学毕业证(USYD毕业证书)学位证书成绩单原版一比一如何办理澳洲悉尼大学毕业证(USYD毕业证书)学位证书成绩单原版一比一
如何办理澳洲悉尼大学毕业证(USYD毕业证书)学位证书成绩单原版一比一
w7jl3eyno
 
edited gordis ebook sixth edition david d.pdf
edited gordis ebook sixth edition david d.pdfedited gordis ebook sixth edition david d.pdf
edited gordis ebook sixth edition david d.pdf
great91
 
Abortion pills in Dammam Saudi Arabia// +966572737505 // buy cytotec
Abortion pills in Dammam Saudi Arabia// +966572737505 // buy cytotecAbortion pills in Dammam Saudi Arabia// +966572737505 // buy cytotec
Abortion pills in Dammam Saudi Arabia// +966572737505 // buy cytotec
Abortion pills in Riyadh +966572737505 get cytotec
 
一比一原版纽卡斯尔大学毕业证成绩单如何办理
一比一原版纽卡斯尔大学毕业证成绩单如何办理一比一原版纽卡斯尔大学毕业证成绩单如何办理
一比一原版纽卡斯尔大学毕业证成绩单如何办理
cyebo
 
Fuzzy Sets decision making under information of uncertainty
Fuzzy Sets decision making under information of uncertaintyFuzzy Sets decision making under information of uncertainty
Fuzzy Sets decision making under information of uncertainty
RafigAliyev2
 
Audience Researchndfhcvnfgvgbhujhgfv.pptx
Audience Researchndfhcvnfgvgbhujhgfv.pptxAudience Researchndfhcvnfgvgbhujhgfv.pptx
Audience Researchndfhcvnfgvgbhujhgfv.pptx
Stephen266013
 
如何办理哥伦比亚大学毕业证(Columbia毕业证)成绩单原版一比一
如何办理哥伦比亚大学毕业证(Columbia毕业证)成绩单原版一比一如何办理哥伦比亚大学毕业证(Columbia毕业证)成绩单原版一比一
如何办理哥伦比亚大学毕业证(Columbia毕业证)成绩单原版一比一
fztigerwe
 
Data Analytics for Digital Marketing Lecture for Advanced Digital & Social Me...
Data Analytics for Digital Marketing Lecture for Advanced Digital & Social Me...Data Analytics for Digital Marketing Lecture for Advanced Digital & Social Me...
Data Analytics for Digital Marketing Lecture for Advanced Digital & Social Me...
Valters Lauzums
 
一比一原版加利福尼亚大学尔湾分校毕业证成绩单如何办理
一比一原版加利福尼亚大学尔湾分校毕业证成绩单如何办理一比一原版加利福尼亚大学尔湾分校毕业证成绩单如何办理
一比一原版加利福尼亚大学尔湾分校毕业证成绩单如何办理
pyhepag
 

Recently uploaded (20)

ℂall Girls Balbir Nagar ℂall Now Chhaya ☎ 9899900591 WhatsApp Number 24/7
ℂall Girls Balbir Nagar ℂall Now Chhaya ☎ 9899900591 WhatsApp  Number 24/7ℂall Girls Balbir Nagar ℂall Now Chhaya ☎ 9899900591 WhatsApp  Number 24/7
ℂall Girls Balbir Nagar ℂall Now Chhaya ☎ 9899900591 WhatsApp Number 24/7
 
123.docx. .
123.docx.                                 .123.docx.                                 .
123.docx. .
 
The Significance of Transliteration Enhancing
The Significance of Transliteration EnhancingThe Significance of Transliteration Enhancing
The Significance of Transliteration Enhancing
 
如何办理澳洲悉尼大学毕业证(USYD毕业证书)学位证书成绩单原版一比一
如何办理澳洲悉尼大学毕业证(USYD毕业证书)学位证书成绩单原版一比一如何办理澳洲悉尼大学毕业证(USYD毕业证书)学位证书成绩单原版一比一
如何办理澳洲悉尼大学毕业证(USYD毕业证书)学位证书成绩单原版一比一
 
Formulas dax para power bI de microsoft.pdf
Formulas dax para power bI de microsoft.pdfFormulas dax para power bI de microsoft.pdf
Formulas dax para power bI de microsoft.pdf
 
ℂall Girls Kashmiri Gate ℂall Now Chhaya ☎ 9899900591 WhatsApp Number 24/7
ℂall Girls Kashmiri Gate ℂall Now Chhaya ☎ 9899900591 WhatsApp  Number 24/7ℂall Girls Kashmiri Gate ℂall Now Chhaya ☎ 9899900591 WhatsApp  Number 24/7
ℂall Girls Kashmiri Gate ℂall Now Chhaya ☎ 9899900591 WhatsApp Number 24/7
 
Generative AI for Trailblazers_ Unlock the Future of AI.pdf
Generative AI for Trailblazers_ Unlock the Future of AI.pdfGenerative AI for Trailblazers_ Unlock the Future of AI.pdf
Generative AI for Trailblazers_ Unlock the Future of AI.pdf
 
edited gordis ebook sixth edition david d.pdf
edited gordis ebook sixth edition david d.pdfedited gordis ebook sixth edition david d.pdf
edited gordis ebook sixth edition david d.pdf
 
Abortion pills in Dammam Saudi Arabia// +966572737505 // buy cytotec
Abortion pills in Dammam Saudi Arabia// +966572737505 // buy cytotecAbortion pills in Dammam Saudi Arabia// +966572737505 // buy cytotec
Abortion pills in Dammam Saudi Arabia// +966572737505 // buy cytotec
 
Data Visualization Exploring and Explaining with Data 1st Edition by Camm sol...
Data Visualization Exploring and Explaining with Data 1st Edition by Camm sol...Data Visualization Exploring and Explaining with Data 1st Edition by Camm sol...
Data Visualization Exploring and Explaining with Data 1st Edition by Camm sol...
 
一比一原版纽卡斯尔大学毕业证成绩单如何办理
一比一原版纽卡斯尔大学毕业证成绩单如何办理一比一原版纽卡斯尔大学毕业证成绩单如何办理
一比一原版纽卡斯尔大学毕业证成绩单如何办理
 
Pre-ProductionImproveddsfjgndflghtgg.pptx
Pre-ProductionImproveddsfjgndflghtgg.pptxPre-ProductionImproveddsfjgndflghtgg.pptx
Pre-ProductionImproveddsfjgndflghtgg.pptx
 
Fuzzy Sets decision making under information of uncertainty
Fuzzy Sets decision making under information of uncertaintyFuzzy Sets decision making under information of uncertainty
Fuzzy Sets decision making under information of uncertainty
 
basics of data science with application areas.pdf
basics of data science with application areas.pdfbasics of data science with application areas.pdf
basics of data science with application areas.pdf
 
Audience Researchndfhcvnfgvgbhujhgfv.pptx
Audience Researchndfhcvnfgvgbhujhgfv.pptxAudience Researchndfhcvnfgvgbhujhgfv.pptx
Audience Researchndfhcvnfgvgbhujhgfv.pptx
 
如何办理哥伦比亚大学毕业证(Columbia毕业证)成绩单原版一比一
如何办理哥伦比亚大学毕业证(Columbia毕业证)成绩单原版一比一如何办理哥伦比亚大学毕业证(Columbia毕业证)成绩单原版一比一
如何办理哥伦比亚大学毕业证(Columbia毕业证)成绩单原版一比一
 
Data Analytics for Digital Marketing Lecture for Advanced Digital & Social Me...
Data Analytics for Digital Marketing Lecture for Advanced Digital & Social Me...Data Analytics for Digital Marketing Lecture for Advanced Digital & Social Me...
Data Analytics for Digital Marketing Lecture for Advanced Digital & Social Me...
 
2024 Q2 Orange County (CA) Tableau User Group Meeting
2024 Q2 Orange County (CA) Tableau User Group Meeting2024 Q2 Orange County (CA) Tableau User Group Meeting
2024 Q2 Orange County (CA) Tableau User Group Meeting
 
Machine Learning for Accident Severity Prediction
Machine Learning for Accident Severity PredictionMachine Learning for Accident Severity Prediction
Machine Learning for Accident Severity Prediction
 
一比一原版加利福尼亚大学尔湾分校毕业证成绩单如何办理
一比一原版加利福尼亚大学尔湾分校毕业证成绩单如何办理一比一原版加利福尼亚大学尔湾分校毕业证成绩单如何办理
一比一原版加利福尼亚大学尔湾分校毕业证成绩单如何办理
 

A short note on soft-plus polynomials

  • 1. A short note on soft-plus polynomials Tomonari MASADA @ Nagasaki University February 3, 2016 Consider a set V of two binary variables {x1, x2} and the function of the form ϕ : {0, 1}V → R; x → log(1 + exp(w⊤ x + c)) . (1) As is explained in [1], this corresponds to the free energy added by one hidden binary variable interacting pairwise with each of the two visible binary variable x1 and x2. All possible values obtained by ϕ are log(1 + exp(c)) for (x1, x2) = (0, 0), log(1 + exp(w1 + c)) for (x1, x2) = (1, 0), log(1 + exp(w2 + c)) for (x1, x2) = (0, 1), and log(1 + exp(w1 + w2 + c)) for (x1, x2) = (1, 1). (2) Therefore, the function ϕ can be rewritten as follows based on the fact that x1 and x2 are binary: ϕ(x1, x2) = log(1 + exp(c))(1 − x1)(1 − x2) + log(1 + exp(w1 + c))x1(1 − x2) + log(1 + exp(w2 + c))(1 − x1)x2 + log(1 + exp(w1 + w2 + c))x1x2 . (3) That is, ϕ is a polynomial. The coefficients of the monomials can be given explicitly as below: ϕ(x1, x2) ={log(1 + exp(c)) − log(1 + exp(w1 + c)) − log(1 + exp(w2 + c)) + log(1 + exp(w1 + w2 + c))}x1x2 + {− log(1 + exp(c)) + log(1 + exp(w1 + c))}x1 + {− log(1 + exp(c)) + log(1 + exp(w2 + c))}x2 + log(1 + exp(c)) . (4) The following formula gives the coefficients: KB(w, c) = ∑ C⊆B (−1)|BC| log ( 1 + exp ( ∑ i∈C wi + c )) , B ∈ 2V . (5) For example, when B = {x1, x2}, K{x1,x2}(w, c) =(−1)|{x1,x2}∅| log ( 1 + exp ( ∑ i∈∅ wi + c )) + (−1)|{x1,x2}{x1}| log ( 1 + exp ( ∑ i∈{x1} wi + c )) + (−1)|{x1,x2}{x2}| log ( 1 + exp ( ∑ i∈{x2} wi + c )) + (−1)|{x1,x2}{x1,x2}| log ( 1 + exp ( ∑ i∈{x1,x2} wi + c )) = log(1 + exp(c)) − log(1 + exp(w1 + c)) − log(1 + exp(w2 + c)) + log(1 + exp(w1 + w2 + c)) . (6) A similar discussion can be made for the case where we have more than two binary variables. See [1]. 1
  • 2. References [1] Guido Montufar, Johannes Rauh. Hierarchical Models as Marginals of Hierarchical Models. 2015. arXiv:1508.03606. 2