• bitcoinBitcoin(BTC)$81,184.000.11%
  • ethereumEthereum(ETH)$2,627.870.36%
  • tetherTether(USDT)$1.00-0.02%
  • binancecoinBNB(BNB)$760.60-0.30%
  • rippleXRP(XRP)$1.411.16%
  • usd-coinUSDC(USDC)$1.00-0.01%
  • solanaSolana(SOL)$110.59-2.09%
  • tronTRON(TRX)$0.3399010.45%
  • zcashZcash(ZEC)$1,475.95-2.44%
  • Figure HelocFigure Heloc(FIGR_HELOC)$1.02-1.61%
  • HyperliquidHyperliquid(HYPE)$91.48-0.85%
  • dogecoinDogecoin(DOGE)$0.087602-0.70%
  • moneroMonero(XMR)$542.89-4.12%
  • whitebitWhiteBIT Coin(WBT)$82.79-0.49%
  • RainRain(RAIN)$0.0137422.24%
  • USDSUSDS(USDS)$1.00-0.04%
  • chainlinkChainlink(LINK)$12.380.73%
  • cardanoCardano(ADA)$0.2273790.57%
  • leo-tokenLEO Token(LEO)$8.90-0.09%
  • stellarStellar(XLM)$0.1959541.75%
  • uniswapUniswap(UNI)$8.60-1.97%
  • bitcoin-cashBitcoin Cash(BCH)$253.04-3.60%
  • Ethena USDeEthena USDe(USDE)$1.00-0.02%
  • nearNEAR Protocol(NEAR)$3.58-4.21%
  • daiDai(DAI)$1.000.00%
  • litecoinLitecoin(LTC)$57.31-0.81%
  • USD1USD1(USD1)$1.00-0.03%
  • CantonCanton(CC)$0.109091-2.26%
  • avalanche-2Avalanche(AVAX)$9.7519.11%
  • the-open-networkGram (prev. Toncoin)(GRAM)$1.37-0.45%
  • hedera-hashgraphHedera(HBAR)$0.0812172.49%
  • suiSui(SUI)$0.865.00%
  • MemeCoreMemeCore(M)$1.4813.71%
  • Global DollarGlobal Dollar(USDG)$1.00-0.01%
  • shiba-inuShiba Inu(SHIB)$0.0000050.33%
  • BittensorBittensor(TAO)$264.476.18%
  • crypto-com-chainCronos(CRO)$0.059328-0.45%
  • paypal-usdPayPal USD(PYUSD)$1.00-0.04%
  • tether-goldTether Gold(XAUT)$4,373.48-0.07%
  • Circle USYCCircle USYC(USYC)$1.140.00%
  • okbOKB(OKB)$117.650.90%
  • Ripple USDRipple USD(RLUSD)$1.000.00%
  • BlackRock USD Institutional Digital Liquidity FundBlackRock USD Institutional Digital Liquidity Fund(BUIDL)$1.000.00%
  • Ondo US Dollar YieldOndo US Dollar Yield(USDY)$1.15-0.16%
  • aaveAave(AAVE)$141.072.32%
  • AsterAster(ASTER)$0.76-1.43%
  • mantleMantle(MNT)$0.62-0.49%
  • OndoOndo(ONDO)$0.4198326.03%
  • EthenaEthena(ENA)$0.20080420.22%
  • Pump.funPump.fun(PUMP)$0.004201-1.70%
TradePoint.io
  • Main
  • AI & Technology
  • Stock Charts
  • Market & News
  • Business
  • Finance Tips
  • Trade Tube
  • Blog
  • Shop
No Result
View All Result
TradePoint.io
No Result
View All Result

Contextual Position Encoding (CoPE): A New Position Encoding Method that Allows Positions to be Conditioned on Context by Incrementing Position only on Certain Tokens Determined by the Model

June 2, 2024
in AI & Technology
Reading Time: 5 mins read
A A
Contextual Position Encoding (CoPE): A New Position Encoding Method that Allows Positions to be Conditioned on Context by Incrementing Position only on Certain Tokens Determined by the Model
ShareShareShareShareShare

Ordered sequences, including text, audio, and code, rely on position information for meaning. Large language models (LLMs), like the Transformer architecture, lack inherent ordering information and treat sequences as sets. Position Encoding (PE) addresses this by assigning an embedding vector to each position, which is crucial for LLMs’ understanding. PE methods, including absolute and relative measures, are integral to LLMs, accommodating various tokenization methods. However, token variability poses challenges for precise position addressing in sequences.

Initially, attention mechanisms didn’t require PE as they were used with RNNs. Memory Network introduced PE alongside attention, employing learnable embedding vectors for relative positions. PE gained traction with the Transformer architecture, where both absolute and relative PE variants were explored. Various modifications followed, such as simplified bias terms, and CoPE, which contextualizes position measurement. Unlike RNNs, CoPE allows parallelization in Transformer training, enhancing efficiency. Some research works favor relative PE in recent LLMs, with RoPE offering a modification-free implementation.

Researchers from Meta present Contextual Position Encoding (CoPE), COPE determines token positions based on their context vectors. By computing gate values for previous tokens using their key vectors relative to the current token, CoPE establishes fractional positional values, requiring interpolation of assigned embeddings for computation. These embeddings enhance the attention operation by incorporating positional information. CoPE excels in toy tasks like counting and selective copying, surpassing token-based PE methods, particularly in out-of-domain scenarios. In language modeling tasks using Wikipedia text and code, CoPE consistently demonstrates superior performance, highlighting its real-world applicability.

In CoPE, position measurement is context-dependent, determined by gate values computed for each query-key pair, allowing differentiation through backpropagation. Position values are computed by aggregating gate values between the current and target tokens. It generalizes relative PE by accommodating various positional concepts, not just token counts. Unlike token positions, CoPE’s values can be fractional, necessitating interpolation between integer embeddings for position embeddings. The effectiveness of CoPE is demonstrated in toy tasks and real-world applications, showcasing its superiority over token-based PE methods. In state-of-the-art LLMs, standard position encodings exhibit failures, especially in tasks requiring precise counting, indicating the need for more advanced position-addressing techniques like CoPE.

Absolute PE exhibits the poorest performance among the compared PE methods. CoPE surpasses relative PE and shows further enhancement when combined with it, underscoring CoPE’s efficacy in general language modeling tasks. Evaluating CoPE on code data reveals its superiority over Absolute PE and RoPE, with perplexity improvements of 17% and 5%, respectively. While combining RoPE and CoPE embeddings yields improvements over RoPE alone, it does not surpass the performance of CoPE alone. This underscores CoPE’s effectiveness in utilizing context for improved modeling, particularly in structured data domains like code.

The paper introduces CoPE, a robust position encoding method that measures position contextually, diverging from token-based paradigms. This approach offers enhanced flexibility in positional addressing, yielding performance improvements across various tasks in text and code domains. CoPE’s potential extends to domains like video and speech, where token position might be less suitable. Future research could explore training larger models with CoPE and evaluating their performance on downstream tasks to assess its efficacy and applicability further.


Check out the Paper. All credit for this research goes to the researchers of this project. Also, don’t forget to follow us on Twitter. Join our Telegram Channel, Discord Channel, and LinkedIn Group.

If you like our work, you will love our newsletter..

Don’t Forget to join our 43k+ ML SubReddit | Also, check out our AI Events Platform


YOU MAY ALSO LIKE

Trump Proposes Renaming Artificial Intelligence, Announces AI Force – Unite.AI

SpaceX Targets September 28 For Starship’s First Orbital Flight

Asjad is an intern consultant at Marktechpost. He is persuing B.Tech in mechanical engineering at the Indian Institute of Technology, Kharagpur. Asjad is a Machine learning and deep learning enthusiast who is always researching the applications of machine learning in healthcare.


🐝 Join the Fastest Growing AI Research Newsletter Read by Researchers from Google + NVIDIA + Meta + Stanford + MIT + Microsoft and many others…


Credit: Source link

ShareTweetSendSharePin

Related Posts

Trump Proposes Renaming Artificial Intelligence, Announces AI Force – Unite.AI
AI & Technology

Trump Proposes Renaming Artificial Intelligence, Announces AI Force – Unite.AI

September 19, 2026
SpaceX Targets September 28 For Starship’s First Orbital Flight
AI & Technology

SpaceX Targets September 28 For Starship’s First Orbital Flight

September 19, 2026
Now Trump Says He’s Creating An AI Force
AI & Technology

Now Trump Says He’s Creating An AI Force

September 19, 2026
TypeSafe AI Releases Jev: A System One Model That Returns Typed, Calibrated Decisions Instead of Text
AI & Technology

TypeSafe AI Releases Jev: A System One Model That Returns Typed, Calibrated Decisions Instead of Text

September 19, 2026
Next Post
Russia-Ukraine war: Zelenskyy accuses China of helping Russia disrupt upcoming peace talk

Russia-Ukraine war: Zelenskyy accuses China of helping Russia disrupt upcoming peace talk

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Search

No Result
View All Result
The Street Fighter Movie Popcorn Bucket Is Gloriously Goofy

The Street Fighter Movie Popcorn Bucket Is Gloriously Goofy

September 18, 2026
Sit Out or Buy Now? The Signal Ken Mahoney Wants Before Jumping In

Sit Out or Buy Now? The Signal Ken Mahoney Wants Before Jumping In

September 14, 2026
Kornacki: Trump’s 2024 coalition shows ‘warning signs’ in Texas as GOP midterm convention wraps

Kornacki: Trump’s 2024 coalition shows ‘warning signs’ in Texas as GOP midterm convention wraps

September 14, 2026

About

Learn more

Our Services

Legal

Privacy Policy

Terms of Use

Bloggers

Learn more

Article Links

Contact

Advertise

Ask us anything

©2020- TradePoint.io - All rights reserved!

Tradepoint.io, being just a publishing and technology platform, is not a registered broker-dealer or investment adviser. So we do not provide investment advice. Rather, brokerage services are provided to clients of Tradepoint.io by independent SEC-registered broker-dealers and members of FINRA/SIPC. Every form of investing carries some risk and past performance is not a guarantee of future results. “Tradepoint.io“, “Instant Investing” and “My Trading Tools” are registered trademarks of Apperbuild, LLC.

This website is operated by Apperbuild, LLC. We have no link to any brokerage firm and we do not provide investment advice. Every information and resource we provide is solely for the education of our readers. © 2020 Apperbuild, LLC. All rights reserved.

No Result
View All Result
  • Main
  • AI & Technology
  • Stock Charts
  • Market & News
  • Business
  • Finance Tips
  • Trade Tube
  • Blog
  • Shop

© 2023 - TradePoint.io - All Rights Reserved!