mirror of
https://github.com/deepseek-ai/Janus.git
synced 2026-11-05 00:57:18 +00:00
[GH-ISSUE #12] The design of semantic tokenizer #9
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
deepseek-ai/Janus#9
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @youngsheen on GitHub (Oct 19, 2024).
Original GitHub issue: https://github.com/deepseek-ai/Janus/issues/12
Hi, Excellent work!
Have you tried other SSL models rather than CLIP for semantic tokenizer training?
I also find that the feature of SSL models can significantly boost the performance of autoregressive generative models (ref DiGIT at https://github.com/DAMO-NLP-SG/DiGIT). What I do is train an offline tokenizer with K-Means on DINOv2 hidden states. And we find that patch level optimization objective (DINO) is better than image level optimization objective (MoCo or CLIP maybe).
Also, in the paper you mention that the method can be applied to other modalities, for example audio. However, the audio CLIP model still lags behind audio SSL models. We also validate the above methodology in speech data (ref GPST at https://github.com/youngsheen/GPST).
@charlesCXK commented on GitHub (Oct 19, 2024):
Thank you for your attention! Regarding the semantic tokenizer, we would like to emphasize the following points:
Regarding your point that SSL features might be more suitable than CLIP features for visual generation tasks, I think that makes sense. On the one hand, CLIP-style models focus more on the overall semantics of the image during training, while SSL methods—since the label is the image itself—might capture low-level information more effectively. Recent work like REPresentation Alignment (REPA) also found that using DINOv2 features to guide the training of diffusion models can significantly accelerate convergence, proving that SSL models indeed have great benefits for image generation.
Lastly, since Janus is not only a model but also a framework—with the core idea being the decoupling of input encoding for different tasks—it’s easy to replace the current VQ Tokenizer with a more powerful one, such as one distilled via DINOv2, for image generation. Similarly, if audio encoder is added, one can also utilize an SSL encoder (if an SSL encoder is indeed better than a CLIP-style encoder in the context of audio).