Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why use L2 regularization in reward model training? #3675

Open
hannlp opened this issue Aug 30, 2023 · 1 comment
Open

Why use L2 regularization in reward model training? #3675

hannlp opened this issue Aug 30, 2023 · 1 comment

Comments

@hannlp
Copy link

hannlp commented Aug 30, 2023

Hello, respected developers of Open Assistant. @andreaskoepf While studying your reward model training code, I noticed that besides the ranking loss, there is an additional L2 regularization term. What is the purpose of this regularization term? Are there any papers that mention it?

l2 = 0.5 * (pos_logits**2 + neg_logits**2)

@Ravenclaw1
Copy link

Ravenclaw1 commented Aug 30, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants