• bitcoinBitcoin(BTC)$79,804.00-0.73%
  • ethereumEthereum(ETH)$2,305.62-1.64%
  • tetherTether(USDT)$1.00-0.03%
  • binancecoinBNB(BNB)$740.610.14%
  • rippleXRP(XRP)$1.29-0.78%
  • usd-coinUSDC(USDC)$1.00-0.03%
  • solanaSolana(SOL)$100.25-1.27%
  • tronTRON(TRX)$0.329881-0.11%
  • Figure HelocFigure Heloc(FIGR_HELOC)$1.040.00%
  • zcashZcash(ZEC)$1,222.470.62%
  • HyperliquidHyperliquid(HYPE)$77.670.75%
  • dogecoinDogecoin(DOGE)$0.077099-0.07%
  • moneroMonero(XMR)$593.47-1.09%
  • USDSUSDS(USDS)$1.00-0.02%
  • whitebitWhiteBIT Coin(WBT)$76.62-1.17%
  • chainlinkChainlink(LINK)$11.34-1.16%
  • leo-tokenLEO Token(LEO)$9.030.21%
  • cardanoCardano(ADA)$0.204507-0.40%
  • stellarStellar(XLM)$0.167861-0.43%
  • nearNEAR Protocol(NEAR)$4.46-2.19%
  • bitcoin-cashBitcoin Cash(BCH)$277.96-0.59%
  • RainRain(RAIN)$0.007594-11.34%
  • Ethena USDeEthena USDe(USDE)$1.00-0.08%
  • daiDai(DAI)$1.00-0.02%
  • uniswapUniswap(UNI)$7.071.55%
  • litecoinLitecoin(LTC)$56.45-0.91%
  • avalanche-2Avalanche(AVAX)$8.89-0.57%
  • CantonCanton(CC)$0.098693-3.25%
  • USD1USD1(USD1)$1.00-0.02%
  • suiSui(SUI)$0.91-1.73%
  • the-open-networkGram (prev. Toncoin)(GRAM)$1.21-3.78%
  • hedera-hashgraphHedera(HBAR)$0.076425-1.23%
  • tether-goldTether Gold(XAUT)$4,014.150.47%
  • Global DollarGlobal Dollar(USDG)$1.00-0.02%
  • paypal-usdPayPal USD(PYUSD)$1.00-0.04%
  • quant-networkQuant(QNT)$202.365.69%
  • shiba-inuShiba Inu(SHIB)$0.000005-0.44%
  • BittensorBittensor(TAO)$250.05-1.39%
  • EthenaEthena(ENA)$0.2071680.47%
  • crypto-com-chainCronos(CRO)$0.053139-2.37%
  • Ripple USDRipple USD(RLUSD)$1.00-0.01%
  • Circle USYCCircle USYC(USYC)$1.140.01%
  • Ondo US Dollar YieldOndo US Dollar Yield(USDY)$1.15-0.06%
  • okbOKB(OKB)$108.810.76%
  • BlackRock USD Institutional Digital Liquidity FundBlackRock USD Institutional Digital Liquidity Fund(BUIDL)$1.000.00%
  • MemeCoreMemeCore(M)$0.951.55%
  • aaveAave(AAVE)$134.62-2.11%
  • OndoOndo(ONDO)$0.4123771.41%
  • Pump.funPump.fun(PUMP)$0.004208-1.62%
  • Falcon USDFalcon USD(USDF)$0.99-0.02%
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

Apple Adds More Siri AI Tools In Its 27.2 System Updates, Out Today

Apple Expands Siri AI Beyond English with 27.2 Software Updates – Unite.AI

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

Apple Adds More Siri AI Tools In Its 27.2 System Updates, Out Today
AI & Technology

Apple Adds More Siri AI Tools In Its 27.2 System Updates, Out Today

October 26, 2026
Apple Expands Siri AI Beyond English with 27.2 Software Updates – Unite.AI
AI & Technology

Apple Expands Siri AI Beyond English with 27.2 Software Updates – Unite.AI

October 26, 2026
Instagram Wants You To Watch 90-Minute Videos On Your TV
AI & Technology

Instagram Wants You To Watch 90-Minute Videos On Your TV

October 26, 2026
Apollo-Led  Billion GPU Lease Deal Draws Binding SpaceX Pledge – Unite.AI
AI & Technology

Apollo-Led $40 Billion GPU Lease Deal Draws Binding SpaceX Pledge – Unite.AI

October 26, 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
French President Macron condemns violence in address

French President Macron condemns violence in address

October 23, 2026
Inflation jumps to 3.7% as oil prices hit consumers

Inflation jumps to 3.7% as oil prices hit consumers

October 26, 2026
DOJ seized Rep. Omar’s phone, subpoenaed family members in immigration status investigation

DOJ seized Rep. Omar’s phone, subpoenaed family members in immigration status investigation

October 25, 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!