Sync updated Report.tex
Browse files- Report.tex +17 -17
Report.tex
CHANGED
|
@@ -161,11 +161,11 @@ All experiments were strictly controlled to isolate the impact of individual arc
|
|
| 161 |
\begin{tabular}{@{}lcccccccc@{}}
|
| 162 |
\toprule
|
| 163 |
\textbf{Model} & \textbf{Bit Acc (\%)} & \textbf{Seq Acc (\%)} & \textbf{Norm Lev $\downarrow$} & \textbf{BLEU-4} & \textbf{ROUGE-1} & \textbf{ROUGE-2} & \textbf{ROUGE-L} & \textbf{Train Time} \\ \midrule
|
| 164 |
-
\textbf{C1 (Base)} & 88.
|
| 165 |
-
\textbf{C2 (RoPE)} & 90.
|
| 166 |
-
\textbf{C3 (GQA)} &
|
| 167 |
-
\textbf{C4 (RMSNorm)} &
|
| 168 |
-
\textbf{C5 (BLT)} & \textbf{100.00} & \textbf{100.00} & \textbf{0.0000} & N/A & N/A & N/A & N/A & \textbf{
|
| 169 |
\end{tabular}
|
| 170 |
}
|
| 171 |
\end{table}
|
|
@@ -180,13 +180,13 @@ All experiments were strictly controlled to isolate the impact of individual arc
|
|
| 180 |
\subsection{Analysis of Individual Component Ablations}
|
| 181 |
|
| 182 |
\textbf{1. Impact of Positional Encoding (C2 vs.\ C1):}
|
| 183 |
-
Replacing static Sinusoidal Absolute Positional Encodings with Rotary Position Embeddings (RoPE) yielded the highest
|
| 184 |
|
| 185 |
\textbf{2. Impact of Attention Mechanism (C3 vs.\ C1):}
|
| 186 |
-
Grouped-Query Attention (GQA) with 2 KV heads per 4 Query heads reduced peak memory footprint to $
|
| 187 |
|
| 188 |
\textbf{3. Impact of Normalization (C4 vs.\ C1):}
|
| 189 |
-
RMSNorm
|
| 190 |
|
| 191 |
\section{Benchmarking Configuration 5: Byte Latent Transformer (BLT)}
|
| 192 |
\label{sec:blt}
|
|
@@ -211,12 +211,12 @@ Configuration 5 (C5) replaces the learned subword vocabulary with a token-free B
|
|
| 211 |
\textbf{Evaluation Dimension} & \textbf{C1 (Base Subword)} & \textbf{C5 (BLT Token-Free)} & \textbf{Relative Change} & \textbf{Architectural Cause / Analysis} \\ \midrule
|
| 212 |
\textbf{Vocabulary Size} & 4,000 subwords & 260 byte tokens & $-93.5\%$ & Complete elimination of Out-of-Vocabulary (OOV) risk \\
|
| 213 |
\textbf{Total Parameters} & 1,503,744 & 1,159,556 & $-22.9\%$ & Compact embedding table ($260 \times 128$ vs $4000 \times 128$) \\
|
| 214 |
-
\textbf{Sequence Accuracy} &
|
| 215 |
-
\textbf{Bit-Level Accuracy} & 88.
|
| 216 |
-
\textbf{BLEU-4 / ROUGE-L} & 95.
|
| 217 |
-
\textbf{Levenshtein Distance} &
|
| 218 |
-
\textbf{Peak Memory Footprint} &
|
| 219 |
-
\textbf{Training Throughput} & 1,
|
| 220 |
\bottomrule
|
| 221 |
\end{tabular}
|
| 222 |
}
|
|
@@ -224,12 +224,12 @@ Configuration 5 (C5) replaces the learned subword vocabulary with a token-free B
|
|
| 224 |
|
| 225 |
\subsection{Training Speed and Computational Overhead}
|
| 226 |
\textbf{Patch-Level Compression vs.\ Local Overhead:} In C5, grouping $P=4$ bytes into a single patch shortens the global sequence length from $L_{\text{byte}}=64$ to $L_{\text{patch}}=16$. Because self-attention complexity scales quadratically with sequence length ($\mathcal{O}(L^2)$), the global transformer attention computation is reduced by $P^2 = 16\times$.
|
| 227 |
-
Although the local byte encoder (1D convolution + intra-patch positioning + refinement MLP) and local byte decoder (linear unpooling expansion + local MLP + byte projection head) introduce local operations, the $4\times$ sequence length reduction dominates, delivering a substantial $+
|
| 228 |
|
| 229 |
\subsection{Peak GPU / MPS Memory Usage During Training}
|
| 230 |
\textbf{Activation Footprint vs.\ Embedding Memory:}
|
| 231 |
C5 achieves a $22.9\%$ parameter reduction ($1.16$\,M vs.\ $1.50$\,M params) due to replacing the large $4,000$-entry BPE embedding and projection layers with a compact 260-entry byte embedding table.
|
| 232 |
-
|
| 233 |
|
| 234 |
\subsection{Overall Sequence Reconstruction Performance on the Test Set}
|
| 235 |
\textbf{Cipher Periodicity and Architectural Alignment as the Root Cause of C5's Success:}
|
|
@@ -238,7 +238,7 @@ C5 achieves a flawless \textbf{$100.00\%$ Sequence Exact Match Accuracy}, \textb
|
|
| 238 |
Crucially, this perfect recovery is primarily driven by the mathematical alignment between the byte-latent architecture and the underlying data transformation rather than generic model superiority:
|
| 239 |
\begin{itemize}[leftmargin=*,noitemsep,topsep=2pt]
|
| 240 |
\item \textbf{Deterministic Period-8 Byte Substitution:} Statistical analysis reveals that the dataset encryption operates as an 8-byte periodic XOR substitution keystream. Because C5 aggregates raw bytes into fixed 4-byte patches ($P=4$), each 8-byte cipher cycle is divided into two symmetrical 4-byte sub-blocks (even vs.\ odd patch parity). With intra-patch and global positional encodings providing exact parity awareness, the local encoder and decoder can represent and invert this periodic byte-level mapping deterministically with zero reconstruction error.
|
| 241 |
-
\item \textbf{Failure Mode of Subword Tokenization (C1--C4):} In contrast, the cipher-side BPE tokenizer learns merges from raw byte-pair frequency statistics within fixed 16-byte chunks of ciphertext---not from word-level segmentation. Because merge selection is content-driven rather than position-driven, the resulting variable-length subword tokens begin at content-dependent byte offsets rather than fixed multiples of the 8-byte key period. This breaks the clean patch-parity property that lets BLT recover the periodic mapping exactly, fragmenting the underlying periodic structure across differently-tokenized contexts. During autoregressive decoding, these compounding subword prediction errors limit exact-match sequence accuracy to $25.
|
| 242 |
\end{itemize}
|
| 243 |
|
| 244 |
\section{Conclusion}
|
|
|
|
| 161 |
\begin{tabular}{@{}lcccccccc@{}}
|
| 162 |
\toprule
|
| 163 |
\textbf{Model} & \textbf{Bit Acc (\%)} & \textbf{Seq Acc (\%)} & \textbf{Norm Lev $\downarrow$} & \textbf{BLEU-4} & \textbf{ROUGE-1} & \textbf{ROUGE-2} & \textbf{ROUGE-L} & \textbf{Train Time} \\ \midrule
|
| 164 |
+
\textbf{C1 (Base)} & 88.60 & 29.20 & 0.0052 & 95.24 & 98.17 & 96.49 & 98.17 & 1014s \\
|
| 165 |
+
\textbf{C2 (RoPE)} & 90.91 & \textbf{33.80} & 0.0044 & 96.12 & 98.49 & 97.11 & 98.49 & 1037s \\
|
| 166 |
+
\textbf{C3 (GQA)} & 88.21 & 25.20 & 0.0055 & 95.05 & 98.08 & 96.33 & 98.08 & 2288s \\
|
| 167 |
+
\textbf{C4 (RMSNorm)} & 89.53 & 32.80 & 0.0044 & 96.06 & 98.56 & 97.23 & 98.56 & 1872s \\
|
| 168 |
+
\textbf{C5 (BLT)} & \textbf{100.00} & \textbf{100.00} & \textbf{0.0000} & N/A & N/A & N/A & N/A & \textbf{629s} \\ \bottomrule
|
| 169 |
\end{tabular}
|
| 170 |
}
|
| 171 |
\end{table}
|
|
|
|
| 180 |
\subsection{Analysis of Individual Component Ablations}
|
| 181 |
|
| 182 |
\textbf{1. Impact of Positional Encoding (C2 vs.\ C1):}
|
| 183 |
+
Replacing static Sinusoidal Absolute Positional Encodings with Rotary Position Embeddings (RoPE) yielded the highest sequence accuracy among subword models (Seq Accuracy improved from $29.20\%$ to $33.80\%$, Bit-Level Accuracy improved from $88.60\%$ to $90.91\%$, and Normalized Levenshtein distance decreased from $0.0052$ to $0.0044$). RoPE embeds relative shift information directly into the inner product of Query and Key representations, allowing the attention heads to generalize across sequence offsets.
|
| 184 |
|
| 185 |
\textbf{2. Impact of Attention Mechanism (C3 vs.\ C1):}
|
| 186 |
+
Grouped-Query Attention (GQA) with 2 KV heads per 4 Query heads reduced peak memory footprint from $161.9$\,MB (C1) to $109.2$\,MB (a $32.5\%$ reduction among subword models). The trade-off in sequence accuracy ($25.20\%$ vs.\ $29.20\%$) and training throughput reflects the computational overhead of key-value repeat operations in this small-batch regime.
|
| 187 |
|
| 188 |
\textbf{3. Impact of Normalization (C4 vs.\ C1):}
|
| 189 |
+
RMSNorm achieved strong sequence exact-match recovery ($32.80\%$) and high translation fidelity ($96.06$ BLEU-4, $98.56\%$ ROUGE-L) while reducing peak memory footprint to $109.2$\,MB (a $32.5\%$ reduction vs.\ C1). Omitting mean-centering simplifies layer normalizations and stabilizes gradient backpropagation.
|
| 190 |
|
| 191 |
\section{Benchmarking Configuration 5: Byte Latent Transformer (BLT)}
|
| 192 |
\label{sec:blt}
|
|
|
|
| 211 |
\textbf{Evaluation Dimension} & \textbf{C1 (Base Subword)} & \textbf{C5 (BLT Token-Free)} & \textbf{Relative Change} & \textbf{Architectural Cause / Analysis} \\ \midrule
|
| 212 |
\textbf{Vocabulary Size} & 4,000 subwords & 260 byte tokens & $-93.5\%$ & Complete elimination of Out-of-Vocabulary (OOV) risk \\
|
| 213 |
\textbf{Total Parameters} & 1,503,744 & 1,159,556 & $-22.9\%$ & Compact embedding table ($260 \times 128$ vs $4000 \times 128$) \\
|
| 214 |
+
\textbf{Sequence Accuracy} & 29.20\% & \textbf{100.00\%} & $+70.80\%$ & Elimination of subword boundary segmentation errors \\
|
| 215 |
+
\textbf{Bit-Level Accuracy} & 88.60\% & \textbf{100.00\%} & $+11.40\%$ & Exact deterministic bit-level byte mapping \\
|
| 216 |
+
\textbf{BLEU-4 / ROUGE-L} & 95.24 / 98.17 & N/A & --- & Token-level metrics omitted for token-free byte model \\
|
| 217 |
+
\textbf{Levenshtein Distance} & 3.038 chars & \textbf{0.000 chars} & $-100.0\%$ & Zero character substitution, insertion, or deletion errors \\
|
| 218 |
+
\textbf{Peak Memory Footprint} & 161.88 MB & 236.38 MB & $+46.0\%$ & Higher local activation volume during 1D conv and unpooling \\
|
| 219 |
+
\textbf{Training Throughput} & 1,236.7 samples/s & 1,957.8 samples/s & $+58.3\%$ & $4\times$ sequence length reduction via 4-byte patching \\
|
| 220 |
\bottomrule
|
| 221 |
\end{tabular}
|
| 222 |
}
|
|
|
|
| 224 |
|
| 225 |
\subsection{Training Speed and Computational Overhead}
|
| 226 |
\textbf{Patch-Level Compression vs.\ Local Overhead:} In C5, grouping $P=4$ bytes into a single patch shortens the global sequence length from $L_{\text{byte}}=64$ to $L_{\text{patch}}=16$. Because self-attention complexity scales quadratically with sequence length ($\mathcal{O}(L^2)$), the global transformer attention computation is reduced by $P^2 = 16\times$.
|
| 227 |
+
Although the local byte encoder (1D convolution + intra-patch positioning + refinement MLP) and local byte decoder (linear unpooling expansion + local MLP + byte projection head) introduce local operations, the $4\times$ sequence length reduction dominates, delivering a substantial $+58.3\%$ increase in training throughput ($1,957.8$\,samples/s for C5 vs.\ $1,236.7$\,samples/s for C1) and reducing training time from $1014$s to $629$s.
|
| 228 |
|
| 229 |
\subsection{Peak GPU / MPS Memory Usage During Training}
|
| 230 |
\textbf{Activation Footprint vs.\ Embedding Memory:}
|
| 231 |
C5 achieves a $22.9\%$ parameter reduction ($1.16$\,M vs.\ $1.50$\,M params) due to replacing the large $4,000$-entry BPE embedding and projection layers with a compact 260-entry byte embedding table.
|
| 232 |
+
Conversely, peak memory during training is higher for C5 ($236.38$\,MB vs.\ $161.88$\,MB for C1, a $+46.0\%$ increase). This increase is attributable to intermediate activation tensors stored during backpropagation across the dense local byte expansion layers ($16 \text{ patches} \times 4 \text{ bytes} \times 128 \text{ dim}$) and unpooled projection heads prior to cross-entropy loss.
|
| 233 |
|
| 234 |
\subsection{Overall Sequence Reconstruction Performance on the Test Set}
|
| 235 |
\textbf{Cipher Periodicity and Architectural Alignment as the Root Cause of C5's Success:}
|
|
|
|
| 238 |
Crucially, this perfect recovery is primarily driven by the mathematical alignment between the byte-latent architecture and the underlying data transformation rather than generic model superiority:
|
| 239 |
\begin{itemize}[leftmargin=*,noitemsep,topsep=2pt]
|
| 240 |
\item \textbf{Deterministic Period-8 Byte Substitution:} Statistical analysis reveals that the dataset encryption operates as an 8-byte periodic XOR substitution keystream. Because C5 aggregates raw bytes into fixed 4-byte patches ($P=4$), each 8-byte cipher cycle is divided into two symmetrical 4-byte sub-blocks (even vs.\ odd patch parity). With intra-patch and global positional encodings providing exact parity awareness, the local encoder and decoder can represent and invert this periodic byte-level mapping deterministically with zero reconstruction error.
|
| 241 |
+
\item \textbf{Failure Mode of Subword Tokenization (C1--C4):} In contrast, the cipher-side BPE tokenizer learns merges from raw byte-pair frequency statistics within fixed 16-byte chunks of ciphertext---not from word-level segmentation. Because merge selection is content-driven rather than position-driven, the resulting variable-length subword tokens begin at content-dependent byte offsets rather than fixed multiples of the 8-byte key period. This breaks the clean patch-parity property that lets BLT recover the periodic mapping exactly, fragmenting the underlying periodic structure across differently-tokenized contexts. During autoregressive decoding, these compounding subword prediction errors limit exact-match sequence accuracy to $25.2\% - 33.8\%$.
|
| 242 |
\end{itemize}
|
| 243 |
|
| 244 |
\section{Conclusion}
|