Home

Awesome

MANS

Negative sampling (NS) is widely used in knowledge graph embedding (KGE), which aims to generate negative triples to make a positive-negative contrast during training. However, existing NS methods are unsuitable when multi-modal informa- tion is considered in KGE models. They are also inefficient due to their complex design. In this paper, we propose Modality- Aware Negative Sampling (MANS) for multi-modal knowledge graph embedding (MMKGE) to address the mentioned problems. MANS could align structural and visual embeddings for entities in KGs and learn meaningful embeddings to perform better in multi-modal KGE while keeping lightweight and efficient. Empirical results on two benchmarks demonstrate that MANS outperforms existing NS methods. Meanwhile, we make further explorations about MANS to confirm its effectiveness.

🔔 News

Model Architecture

The KGE model: Model_architecture

Modality-Aware Negative Sampling: Model_architecture

Prerequisites

Build Environment

Our implemention is based on OpenKE. You should build Python dependencies based on the initialization steps in OpenKE.

Download Visual Embeddings

The visual embeddings of FB15K and DB15K datasets can be download from the GoogleDrive. To run the code, you should download the embeddings and place them in visual/

Train & Eval

You can run the shell scripts placed in scripts/ to run the negative sampling methods proposed in MANS. For example:

Note that you can open the .sh file for parameter modification.