Related Experiment Video
Updated: May 22, 2026

04:48
Application of Deep Learning-Based Medical Image Segmentation via Orbital Computed Tomography
Published on: November 30, 2022
SeqPE: Transformer with Sequential Position Encoding
Summary
We introduce SEQPE, a novel position encoding framework for Transformers. SEQPE enhances spatial understanding and extrapolation capabilities across various modalities without architectural changes.
Area of Science:
- Artificial Intelligence
- Machine Learning
- Deep Learning
Background:
- Transformers lack inherent spatial understanding due to permutation-invariant self-attention layers.
- Traditional position embeddings (PEs) have limited extrapolation beyond trained sequence lengths.
- Existing advanced methods (ALIBI, ROPE) require significant adaptation for new modalities.
Purpose of the Study:
- To present SEQPE, a unified, fully learnable position encoding framework.
- To improve adaptability and scalability of positional encodings across diverse applications.
- To enhance extrapolation performance in Transformers.
Main Methods:
- SEQPE represents n-dimensional position indices as symbolic sequences.
- A lightweight sequential encoder learns position embeddings end-to-end.
- Regularization uses a contrastive objective and knowledge distillation for improved extrapolation.
Main Results:
- SEQPE surpasses strong baselines in language modeling, QA, and image classification.
- Significant improvements observed in perplexity, exact match (EM), and accuracy, especially during context length extrapolation.
- Demonstrates seamless generalization to multi-dimensional inputs without architectural redesign.
Conclusions:
- SEQPE offers a flexible and effective solution for position encoding in Transformers.
- The framework enhances model performance and generalization capabilities.
- SEQPE addresses key limitations in adaptability and scalability for positional information.
Related Concept Videos
Per-Unit Sequence Models
An ideal Y-Y transformer, grounded through neutral impedances, displays per-unit sequence networks akin to those of a single-phase ideal transformer when subjected to balanced positive- or negative-sequence currents. These currents do not produce neutral currents, and their associated voltage drops.
Zero-sequence currents, which are identical in magnitude and phase, generate a neutral current, resulting in voltage drops across the neutral impedance and the low-voltage winding. If the...
Zero-sequence currents, which are identical in magnitude and phase, generate a neutral current, resulting in voltage drops across the neutral impedance and the low-voltage winding. If the...
Types Of Transformers
Transformers can provide desired voltages to a circuit by modifying the number of turns in the secondary windings.
If the ratio of the number of turns in the secondary winding to that of the primary winding is greater than one, then the transformer is said to be a step-up transformer. In a step-up transformer, the voltage at the secondary winding is greater than the voltage applied at the primary winding.
However, if this ratio is less than one, the transformer is said to be a step-down...
If the ratio of the number of turns in the secondary winding to that of the primary winding is greater than one, then the transformer is said to be a step-up transformer. In a step-up transformer, the voltage at the secondary winding is greater than the voltage applied at the primary winding.
However, if this ratio is less than one, the transformer is said to be a step-down...
Sequence Networks of Rotating Machines
A Y-connected synchronous generator, grounded through a neutral impedance, is designed to produce balanced internal phase voltages with only positive-sequence components. The generator's sequence networks include a source voltage that is exclusively in the positive-sequence network. The sequence components of line-to-ground voltages at the generator terminals illustrate this configuration.
Zero-sequence current induces a voltage drop across the generator's neutral impedance and other...
Zero-sequence current induces a voltage drop across the generator's neutral impedance and other...
Transformers
A device that transforms voltages from one value to another using induction is called a transformer. A transformer consists of two separate coils, or windings, wrapped around the same soft iron core. However, they are electrically insulated from each other.
The iron core has a substantial relative permeability. Therefore, the magnetic field lines generated due to the current in one winding are almost entirely confined within the core, such that the same magnetic flux permeates each turn of both...
The iron core has a substantial relative permeability. Therefore, the magnetic field lines generated due to the current in one winding are almost entirely confined within the core, such that the same magnetic flux permeates each turn of both...
Three-Winding Transformers
Three identical single-phase transformers can be configured to form a three-phase transformer connection, which involves high-voltage and low-voltage windings. The high-voltage windings are denoted by capital letters A-B-C, while the low-voltage windings are labeled with lowercase letters a-b-c, representing their respective phases. This notation helps distinguish between the high and low voltage sides of the transformer.
In the per-unit equivalent circuit of a grounded Y-Y three-phase...
In the per-unit equivalent circuit of a grounded Y-Y three-phase...
The Ideal Transformer
In single-phase two-winding transformers, two windings are coiled around a magnetic core characterized by cross-sectional area A and magnetic permeability μ. A phasor current i1 enters the left winding while i2 exits the right winding, establishing the fundamental working of the transformer through electromagnetic principles.
Ampere's Law forms the basis of understanding the magnetic field within the transformer. It states that the integral of the magnetic field intensity's tangential component...
Ampere's Law forms the basis of understanding the magnetic field within the transformer. It states that the integral of the magnetic field intensity's tangential component...

