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

MAP-CMA (PPSN2024) #186

Merged
merged 6 commits into from
Sep 11, 2024
Merged

MAP-CMA (PPSN2024) #186

merged 6 commits into from
Sep 11, 2024

Conversation

ha-mano
Copy link
Collaborator

@ha-mano ha-mano commented Aug 19, 2024

I have implemented MAP-CMA [Hamano+, PPSN2024] and created the description for the README.
Note that in the README, the abbreviation of the reference [Hamano et al. 2024] has been changed to distinguish between GECCO2024 and PPSN2024.

@ha-mano
Copy link
Collaborator Author

ha-mano commented Aug 21, 2024

I have added the comment, "MAP-CMA does not employ the Heaviside function h_sigma for simplifying the update rules." to _mapcma.py.

@@ -317,6 +317,53 @@ The full source code is available [here](./examples/catcma.py).
</details>


#### Maximum a Posteriori CMA-ES [Hamano et al. 2024b]
MAP-CMA is a method that is introduced to interpret the rank-one update in the CMA-ES from the perspective of the natural gradient.
The rank-one update derived from the natural gradient perspective is extensible, and an additional term, called momentum update, appears in the update of the mean vector.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is better to mention that like "The performance of MAP-CMA is not so different from CMA-ES, as the main motivation of MAP-CMA comes from theoretical understanding of CMA-ES".

README.md Outdated

if __name__ == "__main__":
dim = 20
optimizer = MAPCMA(mean=3 * np.ones(dim), sigma=2.0, momentum_r=dim)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's strange that the optimization on the Rosenbrock function starts from m=3. Please adjust it to m=0.0 and sigma=0.5. The sigma setting is to avoid local optima and make the check easier.

cmaes/_mapcma.py Outdated

mu = population_size // 2

# MAPCMA uses positive weights
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The reason for this is not clear. Please add a brief explanation if possible.



class MAPCMA:
"""MAP-CMA stochastic optimizer class with ask-and-tell interface.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is helpful to mention the difference from the CMA-ES to understand MAP-CMA.
Please add an explanation like "The only difference from the CMA-ES is the mean vector update..."

@nomuramasahir0
Copy link
Collaborator

@ha-mano I left some comments. Can you check them?

@ha-mano
Copy link
Collaborator Author

ha-mano commented Sep 2, 2024

@nomuramasahir0 Thank you for your review. I have addressed the comments and made the necessary changes.

@nomuramasahir0
Copy link
Collaborator

Thanks! LGTM.

@nomuramasahir0 nomuramasahir0 merged commit 0254e36 into CyberAgentAILab:main Sep 11, 2024
13 checks passed
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

Successfully merging this pull request may close these issues.

2 participants