Comments (3)
Hi, @HaoKun-Li ,
The short answer is that, these two can be viewed as two constants to scale up the dynamic range of the score function.
Typically, NCE can deal with unnormalized distribution and will automatically adjust the score range.
In this specific case, the score is produced by the inner product of two l2-normalized vector, which means it's range is [-1, 1]. This range might not be enough for NCE's score adjustment. So here Z_v1
and Z_v2
are very simple monte carlo estimation of the partition function of full softmax (see sec 2.4 in this paper and sec 3.4 in this paper) to help adjust the score range a bit.
from repdistiller.
Thanks for your reply!
from repdistiller.
@HaoKun-Li , you are welcomed. I just closed it, but feel free to reopen it if you would like to discuss more.
from repdistiller.
Related Issues (20)
- Cross modal KD implementation release? HOT 1
- Question on memory consumption for CRD loss when the dataset is very large HOT 3
- Why "opt.nce_k" in dataset cifar100 is 16384? How can I get this ? HOT 2
- test HOT 2
- Error while running the code
- Training scheme for linear probe on STL10 and TinyImagenet
- Problem of the order of the normalization in Similarity-Preserving loss.
- resnet structure seems to be a bit wrong HOT 3
- Failed to download the teacher models HOT 2
- about using the resnet models for cifar10 HOT 1
- crd used in image enhancement task like Denoise\SR\Deblur.
- Ensemble Task Implementation HOT 2
- Question about normalization constant Z_v1 and Z_v2 in the ContrastMemory
- Why using log_softmax instead of softmax? HOT 1
- Hyperparameter Settings for KD on Imagenet
- Is Ensemble distillation also included?
- the result is different in resnet56 HOT 1
- ERROR :run ./fetch_pretrained_teachers.sh HOT 1
- How to use myself datasets? HOT 1
- No dev set split
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from repdistiller.