• bitcoinBitcoin(BTC)$81,277.004.39%
  • ethereumEthereum(ETH)$2,524.025.00%
  • tetherTether(USDT)$1.000.04%
  • binancecoinBNB(BNB)$724.211.78%
  • rippleXRP(XRP)$1.455.96%
  • usd-coinUSDC(USDC)$1.000.01%
  • solanaSolana(SOL)$104.173.43%
  • tronTRON(TRX)$0.3289890.40%
  • Figure HelocFigure Heloc(FIGR_HELOC)$1.030.00%
  • HyperliquidHyperliquid(HYPE)$87.026.22%
  • zcashZcash(ZEC)$1,003.6919.09%
  • dogecoinDogecoin(DOGE)$0.0878895.65%
  • RainRain(RAIN)$0.0168951.84%
  • moneroMonero(XMR)$548.396.54%
  • USDSUSDS(USDS)$1.000.02%
  • chainlinkChainlink(LINK)$12.056.95%
  • whitebitWhiteBIT Coin(WBT)$74.124.01%
  • leo-tokenLEO Token(LEO)$9.30-1.58%
  • cardanoCardano(ADA)$0.2214596.97%
  • stellarStellar(XLM)$0.1847924.16%
  • bitcoin-cashBitcoin Cash(BCH)$259.823.95%
  • daiDai(DAI)$1.000.01%
  • CantonCanton(CC)$0.1109641.54%
  • Ethena USDeEthena USDe(USDE)$1.000.05%
  • USD1USD1(USD1)$1.000.04%
  • litecoinLitecoin(LTC)$51.251.29%
  • uniswapUniswap(UNI)$6.271.55%
  • the-open-networkGram (prev. Toncoin)(GRAM)$1.393.64%
  • hedera-hashgraphHedera(HBAR)$0.0789562.93%
  • Global DollarGlobal Dollar(USDG)$1.000.00%
  • avalanche-2Avalanche(AVAX)$7.503.05%
  • suiSui(SUI)$0.781.16%
  • shiba-inuShiba Inu(SHIB)$0.0000052.69%
  • paypal-usdPayPal USD(PYUSD)$1.000.02%
  • crypto-com-chainCronos(CRO)$0.0576675.18%
  • BlackRock USD Institutional Digital Liquidity FundBlackRock USD Institutional Digital Liquidity Fund(BUIDL)$1.000.00%
  • tether-goldTether Gold(XAUT)$4,460.560.81%
  • Circle USYCCircle USYC(USYC)$1.140.01%
  • nearNEAR Protocol(NEAR)$2.026.50%
  • MemeCoreMemeCore(M)$1.07-0.89%
  • Ripple USDRipple USD(RLUSD)$1.000.00%
  • okbOKB(OKB)$110.463.82%
  • BittensorBittensor(TAO)$229.813.21%
  • Ondo US Dollar YieldOndo US Dollar Yield(USDY)$1.14-0.36%
  • aaveAave(AAVE)$133.572.82%
  • AsterAster(ASTER)$0.752.96%
  • mantleMantle(MNT)$0.594.62%
  • pax-goldPAX Gold(PAXG)$4,467.820.72%
  • World Liberty FinancialWorld Liberty Financial(WLFI)$0.0574461.76%
  • OndoOndo(ONDO)$0.3675993.43%
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

Meet LongLLaMA: A Large Language Model Capable of Handling Long Contexts of 256k Tokens

July 10, 2023
in AI & Technology
Reading Time: 4 mins read
A A
Meet LongLLaMA: A Large Language Model Capable of Handling Long Contexts of 256k Tokens
ShareShareShareShareShare

Researchers have made significant advancements in various fields using language models. However, effectively incorporating extensive new knowledge into these models remains a challenge. Fine-tuning, the common practice, is resource-intensive and complex to manage, and it only sometimes provides a straightforward method for incorporating new knowledge. Researchers propose a promising alternative called Focused Transformer (FOT) to address this.

The FOT technique aims to overcome the challenge of limited context length in language models. As the number of documents increases, the ratio of relevant to irrelevant tokens diminishes, leading to overlaps between keys related to irrelevant and relevant values. This issue is referred to as the distraction issue. The FOT allows a subset of attention layers to access an external memory of (key, value) pairs using the k-nearest neighbors (kNN) algorithm. This mechanism effectively extends the context length and helps address the distraction issue.

The training procedure of the Focused Transformer draws from contrastive learning. During training, the memory attention layers are exposed to both relevant and irrelevant keys, resembling negative samples from unrelated documents. This approach encourages the model to differentiate between keys connected to semantically diverse values, enhancing their structure.

[Sponsored] 🔥 Build your personal brand with Taplio  🚀 The 1st all-in-one AI-powered tool to grow on LinkedIn. Create better LinkedIn content 10x faster, schedule, analyze your stats & engage. Try it for free!

The researchers introduce LONGLLAMAs, which are fine-tuned OpenLLaMA models with FOT. This method demonstrates that it does not require long context during training and can be applied to existing models. LONGLLAMAs significantly improve tasks requiring long-context modeling, such as passkey retrieval.

The research contributions include identifying the distraction issue as a significant challenge to scaling up context length in Transformer models, developing the Focused Transformer (FOT) to address this issue, and providing a simple implementation method that allows existing models to be augmented with memory without modifying their architecture. The resulting models, LONGLLAMAs, exhibit enhancements in tasks that benefit from increasing the number of few-shot demonstrations in the extended context. The FOT’s capabilities are further analyzed across various datasets and model sizes, demonstrating improvements in perplexity over baselines in long-context language modeling tasks.

In summary, the Focused Transformer (FOT) technique addresses the distraction issue and allows context length extension in language models. Training the model to differentiate between relevant and irrelevant keys enhances the structure and significantly improves tasks requiring long-context modeling. The FOT method can be applied to existing models without architectural modifications, making it a cost-effective solution for augmenting models with memory.


Check out the Paper and GitHub link. Don’t forget to join our 26k+ 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

Sam Altman Apologizes as GPT-6 Astra Staged Launch Denies Paid Access – Unite.AI

This Rugged Smartphone’s Camera Is A Removable Action Cam

Niharika is a Technical consulting intern at Marktechpost. She is a third year undergraduate, currently pursuing her B.Tech from Indian Institute of Technology(IIT), Kharagpur. She is a highly enthusiastic individual with a keen interest in Machine learning, Data science and AI and an avid reader of the latest developments in these fields.


🔥 StoryBird.ai just dropped some amazing features. Generate an illustrated story from a prompt. Check it out here. (Sponsored)

Credit: Source link

ShareTweetSendSharePin

Related Posts

Sam Altman Apologizes as GPT-6 Astra Staged Launch Denies Paid Access – Unite.AI
AI & Technology

Sam Altman Apologizes as GPT-6 Astra Staged Launch Denies Paid Access – Unite.AI

September 4, 2026
This Rugged Smartphone’s Camera Is A Removable Action Cam
AI & Technology

This Rugged Smartphone’s Camera Is A Removable Action Cam

September 4, 2026
The Ternus Era At Apple Begins, But Cook Isn’t Leaving
AI & Technology

The Ternus Era At Apple Begins, But Cook Isn’t Leaving

September 4, 2026
Mobile Games Designed to Be Addictive Get More Kid-Friendly
AI & Technology

Mobile Games Designed to Be Addictive Get More Kid-Friendly

September 4, 2026
Next Post
Shopify Wants to Help SMBs to Survive the Covid Crisis, CEO Says

Shopify Wants to Help SMBs to Survive the Covid Crisis, CEO Says

Leave a Reply Cancel reply

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

Search

No Result
View All Result
Trump meets with Israel’s Netanyahu and Ukraine’s Zelenskyy at the White House

Trump meets with Israel’s Netanyahu and Ukraine’s Zelenskyy at the White House

September 3, 2026
Stocks Could Pull Back in September — Here’s What Joe Tigay is Buying

Stocks Could Pull Back in September — Here’s What Joe Tigay is Buying

August 31, 2026
LinkedIn releases list of top colleges for 2026

LinkedIn releases list of top colleges for 2026

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