-
Notifications
You must be signed in to change notification settings - Fork 185
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
Feature Request: Implement Threshold-Consistent Margin Loss for Open-World Deep Metric Learning in TF-GNN
#830
Comments
Hello, I'd be glad to contribute to this issue |
Hey @imitation-alpha, can I work on this issue? or is this already implemented? |
Hi @Vamsi995 @ricor07 , |
Hi @imitation-alpha, thank you for letting me know. Ill get started on this, will let you know if I have any questions. |
Hey @imitation-alpha, could you guide me where to get started for this. How exactly should I implement this as a tensorflow operation? Most of the loss functions in the models are being used from the keras library. |
I would suggest you look into the contrastive_losses class and trying to implement the TCM Loss under the ContrastiveLoss class link. Some similar example like I suggestion use llm (e.g. gemini) to brainstorm the step to do that
|
Thanks for this @imitation-alpha, I will go through this and get back to you if I have any doubts. |
I propose adding the Threshold-Consistent Margin Loss (TCM) function to the TF-GNN library. TCM is a novel loss function specifically designed for open-world deep metric learning, which has shown significant improvements in handling unseen classes and imbalanced data compared to traditional loss functions.
Motivation:
Open-world scenarios: Many real-world applications involve open-world scenarios where new classes can emerge over time. TCM is well-suited for these challenges.
Improved performance: TCM has demonstrated superior performance in terms of accuracy and robustness compared to other loss functions in open-world settings.
Community benefit: Incorporating TCM into TF-GNN will benefit the broader machine learning community by providing a powerful tool for addressing open-world problems.
Implementation details:
Function definition: Implement the TCM loss function as a TensorFlow operation.
Hyperparameters: Allow users to configure TCM hyperparameters (e.g., margin, temperature) to fine-tune the loss.
Integration: Integrate TCM with existing TF-GNN components for seamless usage.
Documentation: Provide clear documentation and examples to guide users in using TCM effectively.
Additional notes:
Consider providing pre-trained models or transfer learning options to accelerate development.
Explore opportunities for optimization and performance improvements.
By incorporating TCM into TF-GNN, we can significantly enhance the library's capabilities for open-world deep metric learning and empower researchers and developers to tackle challenging real-world problems.
Paper
The text was updated successfully, but these errors were encountered: