Skip to content

Positional Encoding and its Averaging #10

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
robhta opened this issue Apr 30, 2025 · 0 comments
Open

Positional Encoding and its Averaging #10

robhta opened this issue Apr 30, 2025 · 0 comments

Comments

@robhta
Copy link

robhta commented Apr 30, 2025

I’ve been reviewing the current implementation and had a question regarding using positional encoding. Specifically:

Is it possible that positional encoding has no effect in the current implementation?

From what I’ve observed, averaging seems to nullify the impact of the positional encoding. Since positional encodings inject information about token order, averaging across positions might remove this order-specific signal.

I have written down the following:

Image


I’d appreciate your thoughts or clarification on this, especially if I’m missing something in how the encoding is being applied or preserved.

Thanks in advance!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant