This repository contains PyTorch implemenations of "Uncertainty-driven Embedding Convolution" .
Uncertainty-driven Embedding Convolution (UEC) is a framework for combining embeddings in principled, uncertainty-aware manner. UEC consists of three key components.
- post-hoc conversion of deterministic embeddings into probabilistic ones via Laplace approximation
- Gaussian convolution with uncertainty-aware weights
- uncertainty-aware similarity scoring
To install the required dependencies, please follow the steps in order:
# 1. Install the base dependencies
pip install -r requirements.txt
# 2. Manually install flash-attn (version must match)
pip install flash-attn==2.7.4.post1Below are example commands to execute the different Python scripts in this project.
For details on how to run the multilingual evaluation, please refer to the Multilingual Evaluation README.
For details on how to run the MTEB experiments, please refer to the MTEB Experiments README.