• bitcoinBitcoin(BTC)$79,644.00-1.72%
  • ethereumEthereum(ETH)$2,455.44-2.48%
  • tetherTether(USDT)$1.000.02%
  • binancecoinBNB(BNB)$746.824.01%
  • rippleXRP(XRP)$1.40-3.23%
  • usd-coinUSDC(USDC)$1.000.01%
  • solanaSolana(SOL)$102.32-1.55%
  • tronTRON(TRX)$0.3327481.45%
  • Figure HelocFigure Heloc(FIGR_HELOC)$1.040.60%
  • HyperliquidHyperliquid(HYPE)$84.56-1.82%
  • zcashZcash(ZEC)$1,006.973.84%
  • dogecoinDogecoin(DOGE)$0.085724-1.68%
  • RainRain(RAIN)$0.016423-2.58%
  • moneroMonero(XMR)$528.06-3.06%
  • USDSUSDS(USDS)$1.000.00%
  • chainlinkChainlink(LINK)$11.76-2.00%
  • whitebitWhiteBIT Coin(WBT)$73.19-1.04%
  • leo-tokenLEO Token(LEO)$9.27-0.37%
  • cardanoCardano(ADA)$0.213540-3.46%
  • stellarStellar(XLM)$0.182203-0.92%
  • bitcoin-cashBitcoin Cash(BCH)$251.31-2.58%
  • daiDai(DAI)$1.000.00%
  • Ethena USDeEthena USDe(USDE)$1.000.02%
  • CantonCanton(CC)$0.108173-3.43%
  • USD1USD1(USD1)$1.000.01%
  • litecoinLitecoin(LTC)$53.193.92%
  • the-open-networkGram (prev. Toncoin)(GRAM)$1.423.87%
  • uniswapUniswap(UNI)$6.22-2.30%
  • hedera-hashgraphHedera(HBAR)$0.0796571.78%
  • Global DollarGlobal Dollar(USDG)$1.00-0.02%
  • avalanche-2Avalanche(AVAX)$7.48-0.34%
  • suiSui(SUI)$0.792.10%
  • shiba-inuShiba Inu(SHIB)$0.0000051.21%
  • nearNEAR Protocol(NEAR)$2.2212.83%
  • paypal-usdPayPal USD(PYUSD)$1.000.00%
  • BlackRock USD Institutional Digital Liquidity FundBlackRock USD Institutional Digital Liquidity Fund(BUIDL)$1.000.00%
  • crypto-com-chainCronos(CRO)$0.056182-1.68%
  • tether-goldTether Gold(XAUT)$4,426.38-1.04%
  • Circle USYCCircle USYC(USYC)$1.140.04%
  • MemeCoreMemeCore(M)$1.128.50%
  • Ripple USDRipple USD(RLUSD)$1.000.01%
  • okbOKB(OKB)$110.992.64%
  • BittensorBittensor(TAO)$236.352.90%
  • Ondo US Dollar YieldOndo US Dollar Yield(USDY)$1.150.31%
  • aaveAave(AAVE)$129.95-3.39%
  • AsterAster(ASTER)$0.741.22%
  • pax-goldPAX Gold(PAXG)$4,433.74-1.06%
  • mantleMantle(MNT)$0.571.63%
  • OndoOndo(ONDO)$0.3687171.22%
  • World Liberty FinancialWorld Liberty Financial(WLFI)$0.056534-2.89%
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

CMU Researchers Introduce Unlimiformer: An AI Method for Augmenting Pretrained Encoder-Decoders with an External Datastore to Allow for Unlimited Length Input

May 8, 2023
in AI & Technology
Reading Time: 4 mins read
A A
CMU Researchers Introduce Unlimiformer: An AI Method for Augmenting Pretrained Encoder-Decoders with an External Datastore to Allow for Unlimited Length Input
ShareShareShareShareShare

Transformer-based models have dominated the natural language processing (NLP) field since their introduction in 2017. Tokens for words, morphemes, punctuation, etc., are generated from the text input by the transformer. However, because transformers have to pay attention to every token in the input, their context windows need to be bigger to handle long-form jobs like book summaries, etc., where the number of tokens in the input might easily exceed a hundred thousand. To handle inputs of arbitrary length, a group of researchers from Carnegie Mellon University provides a broad strategy for enhancing model performance by supplementing pretrained encoder-decoder converters with an external datastore.

Unlimiformer is a new retrieval-based strategy that expands the input length tolerance of pretrained language models during testing. Any preexisting encoder-decoder transformer can be augmented with Unlimiformer to accept limitless inputs. Unlimiformer builds a datastore over the hidden states of all input tokens given a long input sequence. Next, the decoder uses its default cross attention to access the database and focus on the top k input tokens. The datastore supports sublinear searches and can be kept in GPU or CPU memory. A trained model can have its checkpoint enhanced by Unlimiformer without more training. Unlimiformer’s effectiveness can be further enhanced by tuning.

The maximum length of an input to a transformer is bounded by the size of the encoder’s context window. However, different information may be meaningful during decoding stages, and different attention centers may focus on multiple aspects of the data. As a result, a fixed context window may be inefficient since it focuses on tokens that an attention head needs to prioritize. At each decoding stage, Unlimiformer gives each head the option of selecting its unique context window from the entire input. To formalize this, we inject an Unlimiformer lookup into the decoder before applying cross-attention. This causes the model to conduct a k-nearest neighbor (kNN) search in an external datastore, selecting a set of tokens to focus on for each decoder layer and attention head.

🚀 JOIN the fastest ML Subreddit Community

To further boost Unlimiformer’s effectiveness, researchers are now focusing on training approaches. As a preliminary step, they consider alternative training methods that only demand less processing power than the conventional fine-tuning regime. They also investigate the computationally costly option of directly training the Unlimiformer.

The study’s code and models are available for download from GitHub.

Empirically, the team tested Unlimiformer on long-document and multi-document summarizing tasks, showing that it could summarize documents with as many as 350k tokens without truncating the inputs. Existing pretrained models were also fine-tuned using Unlimiformer, allowing them to handle unlimited inputs without needing any newly learned weights or alterations to the source code. Adding structure to the datastore or recovering embeddings in chunks, Unlimiformer may lead to further performance gains in retrieval-augmented big language models, which have shown encouraging results on downstream sequence-to-sequence generation tasks. Incorporating structure into the datastore or retrieving embeddings in chunks are two ways the researchers believe future work can boost speed. To further enhance the performance of retrieval-augmented LLMs on difficult downstream tasks, the information retrieval community has developed a wide array of approaches for improving retrieval. This is why the researchers behind the HuggingFace Transformers library have released a script that allows Unlimiformer to be injected into any model with a single click.


Check out the Paper and Github link. Don’t forget to join our 20k+ ML SubReddit, Discord Channel, and Email Newsletter, where we share the latest AI research news, cool AI projects, and more. If you have any questions regarding the above article or if we missed anything, feel free to email us at [email protected]

🚀 Check Out 100’s AI Tools in AI Tools Club


YOU MAY ALSO LIKE

Google Launches Agentic Video Understanding for Gemini Flash Models, Cutting Video Tokens by Up to 88%

Seattle Times and Newsday Sue OpenAI and Microsoft Over News Content – Unite.AI

Dhanshree Shenwai is a Computer Science Engineer and has a good experience in FinTech companies covering Financial, Cards & Payments and Banking domain with keen interest in applications of AI. She is enthusiastic about exploring new technologies and advancements in today’s evolving world making everyone’s life easy.


Credit: Source link

ShareTweetSendSharePin

Related Posts

Google Launches Agentic Video Understanding for Gemini Flash Models, Cutting Video Tokens by Up to 88%
AI & Technology

Google Launches Agentic Video Understanding for Gemini Flash Models, Cutting Video Tokens by Up to 88%

September 5, 2026
Seattle Times and Newsday Sue OpenAI and Microsoft Over News Content – Unite.AI
AI & Technology

Seattle Times and Newsday Sue OpenAI and Microsoft Over News Content – Unite.AI

September 5, 2026
How To See What’s Taking Up Space On Your Windows PC
AI & Technology

How To See What’s Taking Up Space On Your Windows PC

September 4, 2026
The Tetris Company Wants Nothing To Do With The White House’s New Copycat Game
AI & Technology

The Tetris Company Wants Nothing To Do With The White House’s New Copycat Game

September 4, 2026
Next Post
Coinbase, Disney, Unmasking the Rally: Jim Cramer’s Stock Market Breakdown – May 14

Coinbase, Disney, Unmasking the Rally: Jim Cramer's Stock Market Breakdown - May 14

Leave a Reply Cancel reply

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

Search

No Result
View All Result
With plans to renovate a D.C. golf course, Trump tees up another fight with residents

With plans to renovate a D.C. golf course, Trump tees up another fight with residents

September 5, 2026
Crete beaches evacuated as wildfire spreads

Crete beaches evacuated as wildfire spreads

September 1, 2026
DOJ drops Reflecting Pool vandalism case

DOJ drops Reflecting Pool vandalism case

August 31, 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!