Optimistic variant of MWU, and a variant of the Extragradient Method#1
Open
Optimistic variant of MWU, and a variant of the Extragradient Method#1
Conversation
wyz2368
reviewed
Dec 7, 2023
| num_iterations = 10 | ||
| num_iterations = 50 | ||
| potential, games = runner(dim) | ||
| games.append([np.array([[2, -1], [-1, 4]]), np.array([[-2, 1], [1, -4]])]) |
Owner
There was a problem hiding this comment.
Is the game appended an ordinal potential game?
Collaborator
Author
There was a problem hiding this comment.
No, I appended a zero-sum game in order to point the difference between the vanilla MWU and the two new methods.
| @@ -0,0 +1,43 @@ | |||
| import numpy as np | |||
|
|
|||
| def FLBR_multiplicative_weights_update(meta_games, num_iterations, step_size, alternate=False): | |||
Owner
There was a problem hiding this comment.
Can you add some reference to the implementation of FLBR and Optimistic MWU? Thanks.
Collaborator
Author
There was a problem hiding this comment.
Yes sure, here you go
- Optimistic multiplicative weights update https://arxiv.org/pdf/1807.04252.pdf
- FLBR multiplicative weights update https://arxiv.org/pdf/2106.03579.pdf
|
|
||
| last_weights = [np.ones(n)/n, np.ones(m)/m] | ||
| weights = [np.ones(n) / n, np.ones(m) / m] | ||
| print(step_size) |
Owner
There was a problem hiding this comment.
Please mute all printing used for testing.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
There are two methods. The first one is the Optimistic Multiplicative Weights Update method, and the second one is the Forward Looking Best-Response Multiplicative Weights Update method. Both attain point-wise convergence in the case of 2-player zero-sum games.