Short Answer

Relationship Between Sequence Padding and Memory Inefficiency

A machine learning system processes text by grouping multiple sentences of varying lengths into a single batch. To ensure a uniform data structure for parallel processing, shorter sentences are extended with special ⟨pad⟩ tokens. Despite this uniform structure, the system's performance degrades over time due to memory allocation issues. Based on this scenario, explain the underlying cause of the memory inefficiency and how the padding process contributes to it.

0

1

Updated 2025-10-09

Contributors are:

Who are from:

Tags

Ch.5 Inference - Foundations of Large Language Models

Foundations of Large Language Models

Foundations of Large Language Models Course

Computing Sciences

Analysis in Bloom's Taxonomy

Cognitive Psychology

Psychology

Social Science

Empirical Science

Science