arXiv:2610.10483v1 cs.LG

올바른 2단계 소프트맥스 샘플링: 크기 불균형과 분산으로 인한 바이어스 보정

Two-Level Softmax Sampling Done Right: Correcting Bias from Size Imbalance and Dispersion

Walid Bendada, Guillaume Salha-Galvan

제출 2026-10-07

저자 비고

arXiv Comments

NeurIPS 2026

한국어 초록

소프트맥스(softmax) 분포로부터 샘플링하는 것은 머신러닝의 기본 연산이지만, 아이템 수에 비례하는 선형 복잡도로 인해 대규모 환경에서는 정확한 샘플링이 비실용적입니다. 2단계 소프트맥스(2LS) 샘플링은 서브리니어(sublinear) 시간 샘플링을 가능하게 하는 널리 쓰이는 대안입니다. 아이템들이 클러스터로 분할되어 있다고 가정할 때, 2LS는 먼저 클러스터를 샘플링한 후 해당 클러스터 내에서 아이템을 샘플링합니다. 본 논문에서는 이러한 장점에도 불구하고 2LS가 체계적이고 바람직하지 않은 샘플링 바이어스를 유발함을 보여줍니다. 이는 클러스터 크기 불균형과 클러스터 내 유사도 분산(dispersion)을 모두 무시하여 클러스터 가중치를 잘못 부여하는 데서 기인합니다. 우리는 이러한 바이어스를 보정하고 계산 오버헤드가 거의 없거나 전혀 없이 증명 가능하게 더 나은 소프트맥스 근사를 제공하는 두 가지 샘플링 방법인 크기 보정 2LS(S-2LS)와 크기 및 분산 보정 2LS(SD-2LS)를 제안합니다. 5개의 대규모 데이터셋에 대한 심층 실험을 통해 제안 방법들의 향상된 샘플링 특성을 검증합니다. 향후 연구에서 표준 2LS 대신 이들 방법을 일관되게 사용할 것을 권장합니다.

원문 초록

Sampling from a softmax distribution is a fundamental operation in machine learning, but its linear complexity in the number of items makes exact sampling impractical at scale. Two-level softmax (2LS) sampling is a popular alternative enabling sublinear-time sampling. Assuming items are partitioned into clusters, 2LS first samples a cluster and then an item within it. In this paper, we show that, despite its advantages, 2LS introduces systematic and undesirable sampling biases, which arise from misweighting clusters by ignoring both cluster size imbalance and intra-cluster similarity dispersion. We propose two sampling methods, Size-Corrected 2LS (S-2LS) and Size- and Dispersion-Corrected 2LS (SD-2LS), which correct these biases and provide provably better softmax approximations with negligible to non-existent computational overhead. In-depth experiments on five large-scale datasets validate the improved sampling properties of our methods. We recommend their consistent use in place of standard 2LS in future work.

제출 이력

확인된 버전만 표시합니다. 전체 제출 이력은 arXiv 원문에서 확인하세요.

  1. arXiv:2610.10483v1

함께 살펴볼 논문

공통 태그를 근거로 연결했습니다. 실제 인용 관계나 논문의 우수성을 뜻하지 않습니다.

공통 태그로 연결된 공개 논문이 아직 없습니다.

토론

이 논문과 연결된 포럼 글이 아직 없습니다.