Skip to content

E.4.6 Information Theory Formula Reference and Exercises

Prerequisites: This page summarizes all formulas in module E.4. It is best reviewed after reading E.4.1 through E.4.5. If this is your first pass, skip to the main articles first.


This page collects all formulas used in module E.4 for review. It is recommended that you read the previous articles first and then use this page as a reference table.

Information Theory Formulas You Will Meet in This Book

ConceptFormulaMeaning in reinforcement learning
Self-informationLow-probability events contain more information
EntropyPolicy randomness and exploration
Entropy bonusEncourages exploration and avoids premature certainty
Cross-entropyClassification training and reward model training
KL divergenceMeasures differences between old and new policies
Cross-entropy-KL relationshipKL is extra encoding cost
KL penaltyConstrains policy drift in PPO/RLHF
RLHF objectiveReward maximization with a reference model constraint
DPO lossUses preference data to optimize relative probabilities
Mutual informationWhether a representation keeps task-relevant information

Summary

The hierarchy on this page is: start from "smaller probability means more information" and "a more uniform policy has higher entropy," then extend to cross-entropy, KL, the RLHF regularized objective, and the DPO loss. When reading complex information-theoretic formulas, first ask: is this measuring randomness, prediction error, or the distance between two policy distributions?


Common Mistakes

  1. Treating entropy as noise. High entropy means the policy is more random and may help exploration, but it does not mean the policy is worse.
  2. Treating KL as an ordinary distance. KL is asymmetric. and emphasize different errors.
  3. Thinking the KL constraint is only mathematical decoration. In RLHF, the KL term directly determines how far the model can move from the reference model.

Exercises

  1. Compare and . Which has higher entropy? Why?
  2. If the old policy is and the new policy is , write the expanded expression for .
  3. In the RLHF objective , when becomes larger, does the policy update become more aggressive or more conservative?

现代强化学习实战课程