Is Bigger and Deeper Always Better? Probing LLaMA Across Scales and Layers

Nuo Chen, Ning Wu, Shining Liang, Ming Gong, Linjun Shou +2 more
12/7/2023
25 citations
cs.CL

Official code: nuochenpku/LLaMA_Analysis (30 stars, Python, last commit 2024-01-13).

Abstract

This paper presents an in-depth analysis of Large Language Models (LLMs), focusing on LLaMA, a prominent open-source foundational model in natural language processing. Instead of assessing LLaMA through its generative output, we design multiple-choice tasks to probe its intrinsic understanding in high-order tasks such as reasoning and computation.

Show full abstract

We examine the model horizontally, comparing different sizes, and vertically, assessing different layers. We unveil several key and uncommon findings based on the designed probing tasks: (1) Horizontally, enlarging model sizes almost could not automatically impart additional knowledge or computational prowess. Instead, it can enhance reasoning abilities, especially in math problem solving, and helps reduce hallucinations, but only beyond certain size thresholds; (2) In vertical analysis, the lower layers of LLaMA lack substantial arithmetic and factual knowledge, showcasing logical thinking, multilingual and recognitive abilities, with top layers housing most computational power and real-world knowledge.

View on arXivView PDF

Code Implementations(1)

This is official project in our paper: Is Bigger and Deeper Always Better? Probing LLaMA Across Scales and Layers

304Python, ShellNov 28, 20232 years ago
large-language-modelsllama

Similar Papers

Cite this paper

@article{chen2023bigger,
  title  = {Is Bigger and Deeper Always Better? Probing LLaMA Across Scales and Layers},
  author = {Nuo Chen and Ning Wu and Shining Liang and Ming Gong and Linjun Shou and Dongmei Zhang and Jia Li},
  year   = {2023},
  eprint = {2312.04333},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2312.04333v4}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2312.04333.svg)](https://codeofpaper.com/paper/2312.04333)

Discussion