Skip to content
This repository has been archived by the owner on Aug 18, 2023. It is now read-only.

Log partition estimator and derivative #180

Merged
merged 57 commits into from
Feb 15, 2022

Conversation

zaqqwerty
Copy link
Contributor

@zaqqwerty zaqqwerty commented Feb 14, 2022

Adds a default log partition function estimator and derivative estimator.

Part of #140. Estimating the QMHL loss requires estimating the log partition function. Equation C1 in the appendix provides a sample-based approximation to it. Here I implemented this approximation in the base EnergyInference class Estimator was low quality, so this is no longer included; instead, each subclass implements its own log partition forward pass.

More importantly, estimating the derivative of the QMHL loss requires estimating the derivative of the log partition function. Luckily this quantity is more well behaved than the log partition itself: an estimator is provided in equation C2 of the appendix. This is implemented as the default for the EnergyInference class.

Depends on #175

@zaqqwerty zaqqwerty requested a review from farice February 14, 2022 22:00
farice
farice previously approved these changes Feb 15, 2022
@zaqqwerty zaqqwerty merged commit 5c0c96d into google:main Feb 15, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants