Chain Lens Method Detailed: Contrastive Decoding, Attention Masking, State Re-injection

voooooogel · x · 2026-11-12

voooooogel shares the chain lens method and pseudocode: transport the hidden state to the final-layer basis with the J-lens, then roll out tokens with the MTP head. Three key refinements: contrastive decoding against a prior averaged from many hidden states; attention masking so the head attends only to its own token chain; and hidden-state re-injection, without which completions degrade to generic values like round numbers.

Related event: Chain Lens: Training-Free Multi-Token Readout from Model Activations(6 posts)→

Original post →

More from Research

Research channel →