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
I found the concept manipulation example to be incredibly intriguing, especially when it comes to dual-meaning concepts like "crane."
I'm curious about how you adjust the weight of "stork" in the showcased example to illustrate different degrees of the concept. Is it simply a matter of manipulating the weight of "stork" in the embedding? Additionally, I'm wondering if there is any code available that allows us to experiment with this concept manipulation.
Thank you!
The text was updated successfully, but these errors were encountered:
Hi @lindapu-1, thanks for your interest and your kind words!
Our code is available under the Google research repo so you should be able to reproduce our results by following the instructions there :)
As for the manipulation- after obtaining the decomposition, you can see an example of performing inference with the learned decomposition in this notebook. The Visualize top coefficients and top tokens cell allows you to print the top 10 decomposition elements and their learned coefficients. You can then manipulate the coefficients (in sorted_alphas). For the "stork" example, I recommend trying to zero out the coefficient to see its impact, and trying to multiply it by a factor of 2 to see the stork element in the original image.
Hi Hila! Thanks for your fantastic work.
I found the concept manipulation example to be incredibly intriguing, especially when it comes to dual-meaning concepts like "crane."
I'm curious about how you adjust the weight of "stork" in the showcased example to illustrate different degrees of the concept. Is it simply a matter of manipulating the weight of "stork" in the embedding? Additionally, I'm wondering if there is any code available that allows us to experiment with this concept manipulation.
Thank you!
The text was updated successfully, but these errors were encountered: