Search arXiv⌕ Search

arXiv subjects

Tatsuki Okada

Publications and source records attributed to Tatsuki Okada.

2 recordsLinked to original sources

LensLapse: In-Browser Logit Lens for Interactive Exploration of Language Model Training Dynamics

The logit lens is a standard mechanistic interpretability tool for inspecting a Transformer's predictions across layers. However, existing logit lens tools typically focus on individual checkpoints rather than interactive exploration of a model's training history. In this study, we introduce LensLapse, an open-source web application for interactive exploration of a model's training history through token-level interpretability. Users can scrub a slider across public checkpoints from five model families and three multilingual checkpoint suites and observe how per-layer, per-position logit lens predictions evolve from frequency bias to factual knowledge. For browser-compatible models, arbitrary user prompts are probed live in the browser via local inference over per-checkpoint model pairs. No server, no API key, no hosting cost, and prompts never leave the user's device. Moreover, LensLapse supports local models. A single pip install enables users to launch the application and explore their own models and training checkpoints without any additional web setup. LensLapse is MIT-licensed and permanently hosted at iamtatsuki05.github.io/lenslapse.

cs.CL↗

What Makes Decoder-Based Sentence Embeddings Strong? Rethinking Encoder and Decoder Architectures for Sentence Embeddings

It is known that adapting large pre-trained decoder models for sentence embeddings achieves strong performance. However, it remains unclear whether this advantage comes from the decoder itself or from substantially larger pre-training. In this study, we systematically align encoder and decoder pairs with identical parameter counts, tokenizers, training data, and training procedures, and evaluate them in Japanese and English at 0.5B and 1B parameters. Under these controlled settings, the randomly initialized encoder consistently outperforms the randomly initialized decoder on average across all languages, model sizes, and decoder implementations, within pre-training budgets of up to 20B tokens. In contrast, a decoder pre-trained on 10T tokens surpasses the encoder when adapted with the same training recipe. These results provide no evidence that decoders are inherently superior for sentence embeddings. Instead, their advantage largely stems from transferred pre-training, and adapting a model pre-trained on 100B tokens achieves performance comparable to adapting another pre-trained one on 18T tokens, suggesting that pre-training volume alone does not fully explain the gain. Furthermore, we reveal that sentence-level language understanding, rather than span extraction, is more closely associated with embedding quality. Our findings suggest a simple guideline: train an encoder when starting from scratch, and adapt a pre-trained model when available.

cs.CL↗