Skip to content

Unified model predicting same vector for unseen #2

Description

@momalekabid

Hello,
I trained the unified model with the following parameters on the WantWords/Hill train dataset which I preprocessed by vectorizing each word with the same word2vec model cited in the paper (example command):
python3 train_unified.py --do_train --train_file ../data/wwdata/train_w2v.json --dev_file ../data/wwdata/dev_w2v.json --device cuda:0 --target_arch sgns --save_dir unifiedsave

and then attempted to generate predictions from the trained model on the unseen dataset:
python3 train_unified.py --do_pred --test_file ../data/wwdata/unseen.json --pred_file w2vpreds/unifiedw2v_unseen.json --pred_direction embedding --save_dir unifiedsave --device cuda:0 --embedding_arch sgns

After scoring using the provided scoring function, I attempted to test the predicted vectors for reverse dictionary, and found that the vectors predicted are almost exactly the same for every word:
vector2
vector1
and thus querying an mse-based vector search for the predicted vector results in the same top ~10 words every time. Any idea where I've gone wrong/how to improve these results?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions