MétaCan
Menu
Back to cohort
Record W7018279385

The Cure or the Curse: Investigating the Role and Challenges of Positional Encoding in Transformers

2024· dissertation· en· W7018279385 on OpenAlexafffund

Bibliographic record

VenueeScholarship@McGill (McGill) · 2024
Typedissertation
Languageen
FieldPsychology
TopicCategorization, perception, and language
Canadian institutionsMcGill University
FundersNatural Sciences and Engineering Research Council of Canada
KeywordsEncoding (memory)TransformerPattern recognition (psychology)Key (lock)
DOInot available

Abstract

fetched live from OpenAlex

The Transformer architecture has been the driving force behind large language models (LLMs), enabling us to leverage immense computational power and data.However, it is essential to consider the parallel nature of Transformers and the specific mechanisms at work within them to help representing sequential data-particularly positional encoding.This adhoc component has become de facto standard in contemporary models without much clarity on its role.This thesis investigates positional encoding by introducing novel methodologies to expose its implications and uncover its potential shortcomings.First, we scrutinize Absolute Positional Embeddings (APEs), used in LLMs like GPT-3, which represents order by encoding each word's absolute position.Specifically, we assess APE's ability to encode sentences across all positions in Chapter 3. Our analysis reveals disparities in representation when sequences start at different positions, questioning APEs' efficacy in enabling Transformers to encode relative positions.These observations indicate APEs may cause overfitting on positions, impeding performance.Hence, we explore eliminating positional encoding in decoder-only Transformers in Chapter 4. First, we provide mathematical proof that decoder-only Transformers is capable of recovering positional encoding.Furthermore, we show it performs on-par or better than explicit positional encoding methods on length generalization in downstream tasks.This research scrutinizes the exact role of positional encoding in Transformers, highlighting the drawbacks of widely used methods and casting new light on our understanding of these models.Our findings reveal that Transformers without positional encodings can function effectively, and even show improved performance in certain tasks.Such findings pave the way for developing more optimized positional encoding techniques in future Transformer models.i My co-author, Koustuv Sinha, deserves a special mention for his impact on me about research and productivity, as well as his assistance in advancing my career.Similarly, my gratitude extends

Fetched live from OpenAlex and de-inverted. Abstracts are not stored in this database: the inverted indexes are 8.6 GB of the frame’s 9.3 GB of text, and the host has 13 GB free.

How this classification was reachedexpand

Full frame distilled prediction

Teacher imitation

Not calibrated prevalence, not ground truth. Human validation pending. Learned from the 10,348 direct Codex labels and 10,348 direct Gemma labels. Candidate is the union of thresholded teacher heads; consensus is their intersection. These outputs are machine_predicted_unvalidated and are not human labels or direct frontier model labels.

metaresearch head score (Codex)0.001
metaresearch head score (Gemma)0.000
Version: codex-gemma-dda1882f352aValidation status: machine_predicted_unvalidated
Candidate categoriesnone
Consensus categoriesnone
DomainCandidate signal: none · Consensus signal: none
Study designCandidate signal: Theoretical or conceptual · Consensus signal: none
GenreCandidate signal: Empirical · Consensus signal: Empirical
Teacher disagreement score0.554
Threshold uncertainty score0.988

Codex and Gemma teacher scores by category

CategoryCodexGemma
Metaresearch0.0010.000
Meta-epidemiology (narrow)0.0000.000
Meta-epidemiology (broad)0.0000.000
Bibliometrics0.0000.001
Science and technology studies0.0010.000
Scholarly communication0.0000.000
Open science0.0010.000
Research integrity0.0000.001
Insufficient payload (model declined to judge)0.0000.000

Machine scores (provisional)

The two teacher heads of the student model, read on this work. A score orders the frame for review; it never asserts a category, and the validation status ships verbatim with every row.

Baseline scores from an immature model (maturity gate not passed, 7 training rounds). Scores rank; they never assert a category.

Opus teacher head0.025
GPT teacher head0.288
Teacher spread0.262 · how far apart the two teachers sit on this one work
Validation statusscore_only:v0-immature-baseline · verbatim from the scoring run: score_only means the number may rank works, and no category label ships from it

Classification

machine, unvalidated

Machine predicted; a candidate call from one teacher head, not a consensus.

The models applied no category: nothing in the taxonomy fit this work.
Study designTheoretical or conceptual
Domainnot available
GenreEmpirical

How this classification was reached, model by model and score by score, is at the end of the page under "How this classification was reached".

Quick stats

Citations0
Published2024
Admission routes2
Has abstractyes

Explore more

Same venueeScholarship@McGill (McGill)Same topicCategorization, perception, and languageFrench-language works237,207