• bitcoinBitcoin(BTC)$80,615.003.79%
  • ethereumEthereum(ETH)$2,438.746.17%
  • tetherTether(USDT)$1.000.03%
  • binancecoinBNB(BNB)$719.273.12%
  • rippleXRP(XRP)$1.322.85%
  • usd-coinUSDC(USDC)$1.000.01%
  • solanaSolana(SOL)$96.913.60%
  • tronTRON(TRX)$0.319975-0.88%
  • Figure HelocFigure Heloc(FIGR_HELOC)$1.03-0.20%
  • zcashZcash(ZEC)$1,324.889.16%
  • HyperliquidHyperliquid(HYPE)$85.62-1.29%
  • dogecoinDogecoin(DOGE)$0.0776673.23%
  • moneroMonero(XMR)$633.941.84%
  • USDSUSDS(USDS)$1.000.00%
  • whitebitWhiteBIT Coin(WBT)$78.144.60%
  • chainlinkChainlink(LINK)$11.674.88%
  • leo-tokenLEO Token(LEO)$9.330.66%
  • cardanoCardano(ADA)$0.1987414.28%
  • stellarStellar(XLM)$0.1693493.41%
  • bitcoin-cashBitcoin Cash(BCH)$283.112.39%
  • nearNEAR Protocol(NEAR)$4.147.66%
  • uniswapUniswap(UNI)$7.755.66%
  • daiDai(DAI)$1.00-0.02%
  • Ethena USDeEthena USDe(USDE)$1.000.04%
  • litecoinLitecoin(LTC)$56.574.36%
  • RainRain(RAIN)$0.005926-4.64%
  • CantonCanton(CC)$0.0997024.50%
  • avalanche-2Avalanche(AVAX)$8.974.97%
  • suiSui(SUI)$0.955.57%
  • USD1USD1(USD1)$1.00-0.02%
  • the-open-networkGram (prev. Toncoin)(GRAM)$1.191.76%
  • tether-goldTether Gold(XAUT)$4,044.603.20%
  • hedera-hashgraphHedera(HBAR)$0.0734805.29%
  • quant-networkQuant(QNT)$203.915.30%
  • shiba-inuShiba Inu(SHIB)$0.0000053.56%
  • Global DollarGlobal Dollar(USDG)$1.000.02%
  • BittensorBittensor(TAO)$237.714.84%
  • paypal-usdPayPal USD(PYUSD)$1.000.00%
  • crypto-com-chainCronos(CRO)$0.0522912.88%
  • Ripple USDRipple USD(RLUSD)$1.000.00%
  • EthenaEthena(ENA)$0.1837106.67%
  • Ondo US Dollar YieldOndo US Dollar Yield(USDY)$1.150.06%
  • okbOKB(OKB)$110.421.54%
  • Circle USYCCircle USYC(USYC)$1.140.01%
  • pepePepe(PEPE)$0.0000055.95%
  • aaveAave(AAVE)$134.134.31%
  • Pump.funPump.fun(PUMP)$0.0044705.26%
  • OndoOndo(ONDO)$0.4137016.08%
  • BlackRock USD Institutional Digital Liquidity FundBlackRock USD Institutional Digital Liquidity Fund(BUIDL)$1.000.00%
  • MemeCoreMemeCore(M)$0.84-0.96%
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

This AI Paper from China Proposes Continuity-Relativity indExing with gAussian Middle (CREAM): A Simple yet Effective AI Method to Extend the Context of Large Language Models

June 16, 2024
in AI & Technology
Reading Time: 4 mins read
A A
This AI Paper from China Proposes Continuity-Relativity indExing with gAussian Middle (CREAM): A Simple yet Effective AI Method to Extend the Context of Large Language Models
ShareShareShareShareShare

Large language models (LLMs) like transformers are typically pre-trained with a fixed context window size, such as 4K tokens. However, many applications require processing much longer contexts, up to 256K tokens. Extending the context length of these models poses challenges, particularly in ensuring efficient use of information from the middle part of the context, often referred to as the “Lost-in-the-Middle” problem. Existing methods that extend context length often need extensive fine-tuning at the target length and struggle to effectively handle information from the middle of the context. 

Researchers from the Beijing Institute for General Artificial Intelligence (BIGAI), Beijing, China, and the National Key Laboratory of General Artificial Intelligence, Beijing, China, introduce CREAM, ContinuityRelativity indExing with gAussian Middle, to address the challenges in extending the context window of pre-trained LLMs. Current methods to extend the context window of pre-trained LLMs include positional encoding (PE)-based approaches. These methods are based on interpolated positional encodings that require fine-tuning on the target context length, resulting in high computational overhead. Methods like efficient transformers and memory augmentation modify the model architecture or add supplementary modules, complicating implementation and adaptation. 

In contrast, CREAM is designed to extend LLMs to significantly longer context lengths efficiently. It manipulates position indices to interpolate positional encodings within the pre-trained context window size and introduces a truncated Gaussian sampling method to focus on the middle part of the context during fine-tuning. This approach allows the model to be fine-tuned within its pre-trained window size while achieving effective performance on extended contexts up to 256K tokens.

CREAM’s methodology involves two main strategies: ensuring continuity and relativity in positional encoding. For continuity, CREAM manipulates position indices to generate shorter sequences within the pre-trained context window, maintaining densely connected positional indices. For relativity, it leverages rotary positional encoding (RoPE) to learn relative positions between token pairs. Additionally, CREAM divides the pre-trained context window into three segments (head, middle, tail) and uses a truncated Gaussian function to prioritize the middle segment during fine-tuning.

Experiments with Llama-2-7B and Llama-2-7B-Chat models demonstrated CREAM’s efficiency and effectiveness. CREAM extended the context window from 4K up to 256K tokens and showed superior performance in long-context understanding tasks. Specifically, CREAM outperformed existing methods in retrieving information from long contexts and alleviating the “Lost-in-the-Middle” issue. It also achieved promising results in long-context question-answering and summarization tasks, outperforming strong baselines with minimal fine-tuning steps.

In conclusion, CREAM addresses the limitations of current methods by efficiently extending the context length of LLMs while focusing on middle-context information. The proposed method successfully balances continuity and relativity in positional encoding and employs a truncated Gaussian sampling approach to enhance middle-content understanding. Experimental results validate CREAM’s effectiveness in extending context windows and improving performance in long-context scenarios, offering a practical solution to the “Lost-in-the-Middle” problem.


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 and LinkedIn Group.

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

Don’t Forget to join our 44k+ ML SubReddit


YOU MAY ALSO LIKE

Americans Overwhelmingly Voted Against Data Centers In The Midterms

Amdocs Acquires EIS for $340 Million to Bring Agentic AI Into Insurance – Unite.AI

Pragati Jhunjhunwala is a consulting intern at MarktechPost. She is currently pursuing her B.Tech from the Indian Institute of Technology(IIT), Kharagpur. She is a tech enthusiast and has a keen interest in the scope of software and data science applications. She is always reading about the developments in different field of AI and ML.


🐝 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

Americans Overwhelmingly Voted Against Data Centers In The Midterms
AI & Technology

Americans Overwhelmingly Voted Against Data Centers In The Midterms

November 4, 2026
Amdocs Acquires EIS for 0 Million to Bring Agentic AI Into Insurance – Unite.AI
AI & Technology

Amdocs Acquires EIS for $340 Million to Bring Agentic AI Into Insurance – Unite.AI

November 4, 2026
AI Can Surface More Vulnerabilities Than Ever. Humans Still Have to Decide What Comes Next. – Unite.AI
AI & Technology

AI Can Surface More Vulnerabilities Than Ever. Humans Still Have to Decide What Comes Next. – Unite.AI

November 4, 2026
Apple Music’s Upcoming Feature Will Let You Record Yourself Doing Karaoke
AI & Technology

Apple Music’s Upcoming Feature Will Let You Record Yourself Doing Karaoke

November 4, 2026
Next Post
Amazon workers say they were exploited by labor supply and recruiting firms

Amazon workers say they were exploited by labor supply and recruiting firms

Leave a Reply Cancel reply

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

Search

No Result
View All Result
Stock market today: Nasdaq dives, S&P 500 and Dow fall as Amazon, Intel earnings fuel tech rout – Yahoo Finance

Stock market today: Nasdaq dives, S&P 500 and Dow fall as Amazon, Intel earnings fuel tech rout – Yahoo Finance

October 30, 2026
Virtus KAR Small-Mid Cap Growth Fund Q3 2026 Commentary (undefined:VAKSX)

Virtus KAR Small-Mid Cap Growth Fund Q3 2026 Commentary (undefined:VAKSX)

November 4, 2026
Haley Stevens endorses Mike Rogers amid Michigan Democratic feud – Axios

Haley Stevens endorses Mike Rogers amid Michigan Democratic feud – Axios

November 2, 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!