A Comparative Study of Learning Paradigms in Large Language Models via Intrinsic Dimension

Saahith Janapati, Yangfeng Ji
12/9/2024
cs.CL

No confident code implementation found for this paper. 2 possible matches can be shown below.

Abstract

The performance of Large Language Models (LLMs) on natural language tasks can be improved through both supervised fine-tuning (SFT) and in-context learning (ICL), which operate via distinct mechanisms. Supervised fine-tuning updates the model's weights by minimizing loss on training data, whereas in-context learning leverages task demonstrations embedded in the prompt, without changing the model's parameters. This study investigates the effects of these learning paradigms on the hidden representations of LLMs using Intrinsic Dimension (ID). We use ID to estimate the number of degrees of freedom between representations extracted from LLMs as they perform specific natural language tasks. We first explore how the ID of LLM representations evolves during SFT and how it varies due to the number of demonstrations in ICL. We then compare the IDs induced by SFT and ICL and find that ICL consistently induces a higher ID compared to SFT, suggesting that representations generated during ICL reside in higher dimensional manifolds in the embedding space.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 2 weaker matches are hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Cite this paper

@article{janapati2024comparative,
  title  = {A Comparative Study of Learning Paradigms in Large Language Models via Intrinsic Dimension},
  author = {Saahith Janapati and Yangfeng Ji},
  year   = {2024},
  eprint = {2412.06245},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2412.06245v2}
}

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/2412.06245.svg)](https://codeofpaper.com/paper/2412.06245)

Discussion