Attention
Attention is the selectivity of the mind. At any moment it takes up some things and leaves others aside. Attention can be perceptual, as in watching one object among many, or intellectual, as in giving thought to one question.
Attention is directed in two ways:
- Voluntarily. The person chooses what to attend to.
- By salience. Attention is drawn to an item that stands out, whether or not the person wants it to be.
Some of the most influential theories of attention explain its selectivity by a limit on capacity. The brain cannot fully process many stimuli at once, and a person cannot consciously follow several trains of thought at once.
An actuary checking a reserve review hears a loud alarm in the corridor. How is each of the two attended to?
- The actuary chose to work through the review, so it is attended to voluntarily.
- The alarm draws attention whether or not the actuary wants it to, so it is attended to by salience.
Attention in System 1 and System 2 thinking
Attention is focused differently in the two modes of System 1 and System 2 thinking. In System 2, the mind is actively focused on a demanding task. System 1 is automatic and fast, and heavily influenced by context.
Which system is directing the actuary's attention in each case? A reserving actuary is working through a new method step by step. A colleague's figure that is far out of line catches the actuary's eye.
Answer
- Working through a new method step by step is slow, deliberate and focused, so it is System 2.
- The figure catches the eye automatically, without any decision to look for it, so it is System 1.
Salience in decisions
Salience is one of the nine effects of the MINDSPACE checklist: our attention is drawn to what is novel and seems relevant to us. A salient cue can work as a useful shorthand, but it can also lead a decision astray. In hiring, a degree from a famous university is a salient cue, so applications that carry it are more likely to be read further. Graduates of other universities may be better than some who carry the cue, and the firm cannot find them unless it hires against the cue.
Which MINDSPACE effect is at work here, and what should the team do? An underwriting team is setting next year's property rates. The meeting opens with photographs of last month's large warehouse fire.
Answer
- The fire is recent and novel, so it draws the team's attention ahead of the other years of loss experience.
- That is the Salience effect.
- The team should weigh the fire with the rest of the experience it is rating on, rather than by how much attention it draws.
Attention in machine learning
In machine learning, an attention function maps a query and a set of key-value pairs to an output. The output is a weighted sum of the values, and the weight on each value measures how well the query matches its key. The Transformer, a network architecture built on attention alone, was introduced in 2017. With the queries, keys and values stacked as the rows of matrices Q, K and V, scaled dot-product attention is
\text{Attention}(Q, K, V) = \text{softmax}\left(\frac{QK^{T}}{\sqrt{d_k}}\right)V
d_kis the number of components in each query and key.\text{softmax}turns each row of scores into weights that are positive and sum to1.
What is the attention output for this query? A query
q = (1, 0)is matched against two keys,k_1 = (2, 0)andk_2 = (0, 2), whose values arev_1 = 10andv_2 = 20.Answer
- The scores are
q \cdot k_1 / \sqrt{2} = 2/\sqrt{2} = 1.414andq \cdot k_2 / \sqrt{2} = 0.- The softmax weights are
e^{1.414}/(e^{1.414} + e^{0}) = 0.804and1/(e^{1.414} + 1) = 0.196.- The output is
0.804 \times 10 + 0.196 \times 20 = 11.96.- The query matches the first key better, so the output is closer to the first value.
Treating what stands out as what matters An item that is salient draws attention whether or not it is relevant to the decision. Before acting on the figure, case or cue that caught everyone's eye, check it against the rest of the evidence.