You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is helpful for those (including me) who want to implement TRPO by themselves because there are a few implementations.
I just found a small mistake in your implementation, specifically in the hessian_vector_product method in TRPO agent (please, see below).
I think the KL divergence computation is incorrect because it is computing the KL divergence between two same distributions.
When I printed out the variable kl, it was always zero.
As far as I understand, it is true that the exact Fisher information matrix (FIM) should be computed by using only the current parameters.
However, the trick in TRPO is to approximate the FIM by computing the Hessian of the KL divergence between the old and current policy. This is reasonable when the old and current parameters are close enough.
This can be found in Section 6 Practical Algorithm in the TRPO paper.
Thanks for your great implementation of TRPO.
This is helpful for those (including me) who want to implement TRPO by themselves because there are a few implementations.
I just found a small mistake in your implementation, specifically in the
hessian_vector_product
method in TRPO agent (please, see below).I think the KL divergence computation is incorrect because it is computing the KL divergence between two same distributions.
When I printed out the variable
kl
, it was always zero.As far as I understand, it is true that the exact Fisher information matrix (FIM) should be computed by using only the current parameters.
However, the trick in TRPO is to approximate the FIM by computing the Hessian of the KL divergence between the old and current policy. This is reasonable when the old and current parameters are close enough.
This can be found in Section 6 Practical Algorithm in the TRPO paper.
Can you take a look at this issue?
Best regards,
Dongjin Lee
The text was updated successfully, but these errors were encountered: