softmax

Tag

Cards List
#softmax

The Softmax function and its derivative

Hacker News Top ↗ · 2026-10-01 Cached

A detailed mathematical explainer of the softmax function, its probabilistic interpretation in multiclass classification, and a full derivation of its Jacobian/derivative using the quotient rule, including the gradient of a softmax-based loss.

0 favorites 0 likes
#softmax

Pretraining Transformers with Quantized Softmax in Attention

Hugging Face Daily Papers ↗ · 2026-09-27 Cached

The paper investigates quantizing softmax in transformer attention during pretraining, comparing calibration and rounding strategies to reduce validation loss gaps. Experiments at 124M parameters show minimal loss degradation with specific techniques.

0 favorites 0 likes
#softmax

Z-Loss Backward Geometry in Dense Output Heads and Sparse Routers

arXiv cs.LG ↗ · 2026-09-16 Cached

This paper analyzes the backward-pass geometry of Z-loss in AI model training, providing a framework for understanding and optimizing gradients in dense output heads and sparse mixture-of-experts routers, with evaluations on GPT-2 and Pythia models.

0 favorites 0 likes
#softmax

@__solo69__: Flash attention follows this principle, minimize expensive data movement and maximize reuse of data that has already re…

X AI KOLs Timeline ↗ · 2026-09-14 Cached

A tweet explains the optimization principle behind Flash attention, focusing on minimizing data movement and maximizing on-chip memory reuse, in the context of a language modeling course lecture.

0 favorites 0 likes
#softmax

Jacobian-guided Noise Injection for Quantization Robustness in Large Language Models

arXiv cs.LG ↗ · 2026-08-24 Cached

This paper proposes Jacobian-guided noise injection, a training strategy that improves quantization robustness in large language models by injecting noise into pre-attention logits with variance derived from the Jacobian norm, leading to significant performance gains in low-bit quantization settings.

0 favorites 0 likes
#softmax

Reflecting to optimise

Hacker News Top ↗ · 2026-06-26 Cached

A blog post discussing optimization techniques for constrained categorical probability distributions, using softmax reparameterization and log barrier methods, applied to protein binder design.

0 favorites 0 likes
#softmax

I Figured Out What Causes 'Super Weights'

Reddit r/ArtificialInteligence ↗ · 2026-06-23

Explains that super weights in large language models arise from the SoftMax-Attention interaction creating a 'Nothing Dump' token that serves as a stable reference point; removing these weights cripples performance.

0 favorites 0 likes
#softmax

@TheTuringPost: https://x.com/TheTuringPost/status/2068474648925216861

X AI KOLs Timeline ↗ · 2026-06-20 Cached

An educational overview of knowledge distillation, covering its history, core concepts like softmax and temperature, types, scaling laws, and practical examples including DeepSeek-R1.

0 favorites 0 likes
#softmax

@reprompting: Naive CUDA softmax using shared memory reduction. Reduction seems to be a pretty straightforward concept.

X AI KOLs Timeline ↗ · 2026-06-17 Cached

A tweet sharing a naive CUDA softmax implementation using shared memory reduction, noting that reduction is straightforward.

0 favorites 0 likes
#softmax

P-Cast Precision in FP8 Attention: Sink-Induced Collapse and the Optimality of S=2^8

arXiv cs.AI ↗ · 2026-06-08 Cached

This paper analyzes precision loss in FP8 attention due to the attention sink phenomenon when casting the softmax output to FP8 (E4M3). It shows that forward KV iteration causes underflow of non-sink attention values, and proposes reverse iteration and a static scaling factor S=256 to eliminate underflow, achieving 3-10x MSE improvement.

0 favorites 0 likes
#softmax

When Softmax Fails at the Top: Extreme Value Corrections for InfoNCE

arXiv cs.LG ↗ · 2026-06-02 Cached

The paper identifies a misalignment between the softmax-based InfoNCE loss and the normalized embedding setting in modern contrastive learning. It proposes WEINCE, a simple modification that blends softmax logits with an endpoint shortfall correction using extreme value theory, yielding consistent improvements across vision benchmarks.

0 favorites 0 likes
#softmax

@zhaoran_wang: for me, the coolest finding is that you can connect/interpolate all softmax/linear variants and give a promising direct…

X AI KOLs Timeline ↗ · 2026-05-30 Cached

Discussion of a finding that all softmax/linear attention variants can be interpolated, and that the Muon optimizer is crucial for Parallax to move beyond Softmax Attention. Includes link to paper and code.

0 favorites 0 likes
← Back to home

Submit Feedback