Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

Soft-NBCE: Entropy-Weighted Chunk Fusion for Long-Context

About

The quadratic complexity of self-attention remains a bottleneck for Large Language Models (LLMs) processing ultra-long contexts. The Naive Bayes Cognitive Engine (NBCE) parallelizes long-context inference by chunking documents and routing to the lowest-entropy chunk at each decoding step. This hard-selection strategy causes semantic fragmentation during cross-chunk reasoning, as abrupt routing changes between adjacent tokens disrupt the model's contextual grounding. We present Soft-NBCE, a lightweight extension that replaces discrete chunk selection with soft entropy-weighted chunk fusion. A temperature-scaled Softmax over predictive entropies assigns continuous weights to all chunks, enabling log-space aggregation across chunk-conditioned distributions. To partially compensate for the conditional independence assumption introduced by chunking, we propose Consistency Distillation, a LoRA-based self-distillation that constrains the chunked logit distribution toward a full-context teacher via KL-divergence. On LongBench multi-hop benchmarks, Soft-NBCE with Consistency Distillation improves consistently over NBCE-style baselines (MuSiQue F1: 0.310 vs.\ 0.275 for Vanilla NBCE; HotpotQA F1: 0.479 vs.\ 0.427) while maintaining retrieval accuracy (NIAH-32K: 0.909) at O(L^2/n) peak memory.

Shihao Ji, Mingyu Li, Zihui Song• 2026

Related benchmarks

TaskDatasetResultRank
Knowledge-intensive reasoningMuSiQue
F1 Score31
43
Multi-hop ReasoningHotpotQA
F1 Score0.479
22
Long-Range RetrievalNIAH 32k
Accuracy90.9
4
Showing 3 of 3 rows

Other info

Follow for update