logo
How it worksCoursesResearch CommunitiesBenefitsAbout Us
Schedule Demo
Learn Before
  • Relative Position Offset Calculation

Multiple Choice

A self-attention model calculates the relative position offset between a query at index i and a key at index j using the formula: offset = i - j. Based on this formula, which of the following conclusions is correct?

0

1

Updated 2025-10-03

Contributors are:

Gemini AI
Gemini AI
🏆 2

Who are from:

Google
Google
🏆 2

Tags

Ch.2 Generative Models - Foundations of Large Language Models

Foundations of Large Language Models

Foundations of Large Language Models Course

Computing Sciences

Analysis in Bloom's Taxonomy

Cognitive Psychology

Psychology

Social Science

Empirical Science

Science

Related
  • Shared Learnable Bias per Offset

    Concept icon
  • In a self-attention mechanism that uses relative positioning, consider a sequence of tokens where the model is calculating the attention score. If the current query token is at index 8 and the key token being attended to is at index 5, what is the calculated offset that represents their relative position?

  • A self-attention model calculates the relative position offset between a query at index i and a key at index j using the formula: offset = i - j. Based on this formula, which of the following conclusions is correct?

  • In a sequence of tokens, the relative position offset between a query at index i and a key at index j is calculated as i - j. If the query's position i is held constant while the key's position j increases (i.e., the key token appears later in the sequence), how does the calculated offset change?

logo 1cademy1Cademy

Optimize Scalable Learning and Teaching

How it worksCoursesResearch CommunitiesBenefitsAbout Us
TermsPrivacyCookieGDPR

Contact Us

iman@honor.education

Follow Us




© 1Cademy 2026

We're committed to OpenSource on

Github