liveBook · Manning

Value

As explained in Deep Learning with Python, Third Edition

In attention, a value is a vector representation of input content that is combined with other values according to attention weights to produce an output.

In attention, a value is a content vector used in the weighted sum that produces an output. It can differ from the vector used to score relevance. section 15.3.1

Figure 15.6 Retrieving images from a database: the query is compared to a set of keys, and the match scores are used to rank values (images).
query key value

Photo retrieval offers an analogy: a query matches against keys, while the resulting scores rank the values—the photos being retrieved. section 15.3.1

How Deep Learning with Python, Third Edition covers it

How deep it goes
Explains weighted summation and separate value projections with parameterized attention code.
Examples
Uses photo retrieval as an analogy and projected source vectors in parameterized attention code.
What you can do after
Understand how attention scores weight value vectors to produce an output.
How it connects
Connects values to queries and keys, distinguishing vectors used for matching from vectors used for aggregation.

Also explained in

Compare how 8 books explain value →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Deep Learning with Python, Third Edition. The section links point to the parts of the book it draws on.