• bitcoinBitcoin(BTC)$80,397.002.64%
  • ethereumEthereum(ETH)$2,418.104.20%
  • tetherTether(USDT)$1.000.07%
  • binancecoinBNB(BNB)$715.432.05%
  • rippleXRP(XRP)$1.322.97%
  • usd-coinUSDC(USDC)$1.000.04%
  • solanaSolana(SOL)$96.814.05%
  • tronTRON(TRX)$0.318478-0.91%
  • Figure HelocFigure Heloc(FIGR_HELOC)$1.050.00%
  • zcashZcash(ZEC)$1,327.092.99%
  • HyperliquidHyperliquid(HYPE)$83.52-3.40%
  • dogecoinDogecoin(DOGE)$0.0770422.57%
  • moneroMonero(XMR)$636.040.22%
  • USDSUSDS(USDS)$1.000.01%
  • whitebitWhiteBIT Coin(WBT)$77.703.23%
  • chainlinkChainlink(LINK)$11.594.28%
  • leo-tokenLEO Token(LEO)$9.350.35%
  • cardanoCardano(ADA)$0.1988974.11%
  • stellarStellar(XLM)$0.1674432.00%
  • bitcoin-cashBitcoin Cash(BCH)$288.224.75%
  • nearNEAR Protocol(NEAR)$4.03-0.78%
  • uniswapUniswap(UNI)$7.581.61%
  • daiDai(DAI)$1.000.05%
  • Ethena USDeEthena USDe(USDE)$1.000.09%
  • RainRain(RAIN)$0.006162-0.57%
  • litecoinLitecoin(LTC)$56.202.82%
  • CantonCanton(CC)$0.1032614.65%
  • avalanche-2Avalanche(AVAX)$8.770.93%
  • suiSui(SUI)$0.932.12%
  • USD1USD1(USD1)$1.000.06%
  • tether-goldTether Gold(XAUT)$4,103.101.88%
  • the-open-networkGram (prev. Toncoin)(GRAM)$1.16-1.91%
  • hedera-hashgraphHedera(HBAR)$0.0728263.22%
  • quant-networkQuant(QNT)$205.144.98%
  • Global DollarGlobal Dollar(USDG)$1.000.03%
  • shiba-inuShiba Inu(SHIB)$0.0000051.48%
  • BittensorBittensor(TAO)$235.922.74%
  • paypal-usdPayPal USD(PYUSD)$1.000.01%
  • crypto-com-chainCronos(CRO)$0.0523652.32%
  • Ripple USDRipple USD(RLUSD)$1.000.03%
  • EthenaEthena(ENA)$0.181331-0.84%
  • Ondo US Dollar YieldOndo US Dollar Yield(USDY)$1.15-0.05%
  • okbOKB(OKB)$111.262.37%
  • Circle USYCCircle USYC(USYC)$1.140.01%
  • pepePepe(PEPE)$0.000005-1.70%
  • aaveAave(AAVE)$133.592.16%
  • Pump.funPump.fun(PUMP)$0.004345-1.21%
  • OndoOndo(ONDO)$0.4069010.91%
  • MemeCoreMemeCore(M)$0.83-2.57%
  • BlackRock USD Institutional Digital Liquidity FundBlackRock USD Institutional Digital Liquidity Fund(BUIDL)$1.000.00%
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

Understanding the Hidden Layers in Large Language Models LLMs

September 12, 2024
in AI & Technology
Reading Time: 4 mins read
A A
Understanding the Hidden Layers in Large Language Models LLMs
ShareShareShareShareShare

Hebrew University Researchers addressed the challenge of understanding how information flows through different layers of decoder-based large language models (LLMs). Specifically, it investigates whether the hidden states of previous tokens in higher layers are as crucial as believed. Current LLMs, such as transformer-based models, use the attention mechanism to process tokens by attending to all previous tokens in every layer. While each transformer layer applies this attention uniformly, prior research indicates that different layers capture different types of information. The study builds on the idea that not all layers may equally rely on the hidden states of previous tokens, especially in higher layers.

The research team hypothesized that while lower layers focus on aggregating information from previous tokens, higher layers may rely less on this information. They propose various manipulations in the hidden states of previous tokens in different layers of the model. These include replacing hidden states with random vectors, freezing hidden states at specific layers, and swapping the hidden states of one token with another from a different prompt. They conduct experiments on four open-source LLMs (Llama2-7B, Mistral-7B, Yi-6B, and Llemma-7B) and four tasks, including question answering and summarization, to evaluate the impact of these manipulations on model performance.

YOU MAY ALSO LIKE

Together AI Releases Together Compiler: Agents Make Inference Up to 2.6x Faster

OpenAI’s Enterprise Sales Take Majority as Brockman Sees IPO Readiness – Unite.AI

One technique involves introducing noise by replacing hidden states with random vectors, which allows researchers to evaluate whether the content of these hidden states still matters at certain layers. The second method, freezing, locks the hidden states at a particular layer and reuses them for the subsequent layers, reducing the computational load.

The researchers found that when these manipulations were applied to the top 30-50% of the model, performance across multiple tasks experienced little to no drop, suggesting that the top layers rely less on the hidden representations of previous tokens. For example, when freezing up to 50% of the layers, the models retained performance similar to that of the baseline. Additionally, swapping hidden states from different prompts further confirmed this observation; the model ignored changes made in the top layers, while changes in lower layers significantly altered the output. The experiments were conducted to understand whether attention was needed in the higher layers of the model by skipping the attention block in those layers. This test demonstrated that skipping attention in the upper layers had minimal impact on tasks like summarization and question answering, while doing so in lower layers led to severe performance degradation.

In conclusion, the study reveals a two-phase process in transformer-based LLMs: the early layers gather information from previous tokens, while the higher layers primarily process that information internally. The findings suggest that higher layers are less dependent on the detailed representation of previous tokens, offering potential optimizations, such as skipping attention in these layers to reduce computational costs. Overall, the paper dives deep into the hierarchical nature of information processing in LLMs and leads to more informed and efficient model designs.


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 and join our Telegram Channel and LinkedIn Group. If you like our work, you will love our newsletter..

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

⏩ ⏩ FREE AI WEBINAR: ‘SAM 2 for Video: How to Fine-tune On Your Data’ (Wed, Sep 25, 4:00 AM – 4:45 AM EST)


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

Together AI Releases Together Compiler: Agents Make Inference Up to 2.6x Faster
AI & Technology

Together AI Releases Together Compiler: Agents Make Inference Up to 2.6x Faster

November 5, 2026
OpenAI’s Enterprise Sales Take Majority as Brockman Sees IPO Readiness – Unite.AI
AI & Technology

OpenAI’s Enterprise Sales Take Majority as Brockman Sees IPO Readiness – Unite.AI

November 5, 2026
Cat Wu to Lead Product Management for OpenAI’s Core Products – Unite.AI
AI & Technology

Cat Wu to Lead Product Management for OpenAI’s Core Products – Unite.AI

November 5, 2026
Amodei Wins Dismissal of Direct Copyright Claim with Leave to Amend – Unite.AI
AI & Technology

Amodei Wins Dismissal of Direct Copyright Claim with Leave to Amend – Unite.AI

November 5, 2026
Next Post
Alberto Fujimori, authoritarian former president of Peru, dies aged 86 – The Guardian

Alberto Fujimori, authoritarian former president of Peru, dies aged 86 - The Guardian

Leave a Reply Cancel reply

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

Search

No Result
View All Result
Physicians Preferred AI Discharge Summaries in 95% of Cases in Stony Brook Study – Unite.AI

Physicians Preferred AI Discharge Summaries in 95% of Cases in Stony Brook Study – Unite.AI

November 2, 2026
Sony Is Working On A Film Adaptation Of Viral Indie Horror Game Mouthwashing

Sony Is Working On A Film Adaptation Of Viral Indie Horror Game Mouthwashing

October 29, 2026
Civility expert mediates town’s divide after controversial Buc-ee’s proposal

Civility expert mediates town’s divide after controversial Buc-ee’s proposal

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