Abstract
In this work, we introduce a semiparametric token-sequence co-supervision training method. It trains a language model by simultaneously leveraging supervision from the traditional next token prediction loss which is calculated over the parametric token embedding space and the next sequence prediction loss which is calculated over the nonparametric sequence embedding space. The nonparametric sequence embedding space is constructed by a separate language model tasked to condense an input text into a single representative embedding. Our experiments demonstrate that a model trained via both supervisions consistently surpasses models trained via each supervision independently. Analysis suggests that this co-supervision encourages a broader generalization capability across the model. Especially, the robustness of parametric token space which is established during the pretraining step tends to effectively enhance the stability of nonparametric sequence embedding space, a new space established by another language model.
Introduction
Standard Large Language Models (LLMs) are typically trained using Next Token Prediction (NTP). While effective, this approach has two major limitations. First, there is a Granularity Gap: humans anticipate entire ideas or sequences of varying lengths, whereas NTP forces the model to focus only on the immediate next token. Second, Expressivity Constraints arise because NTP relies on a fixed, finite vocabulary (the parametric space), limiting the model's ability to represent complex, rare, or evolving external information that does not fit neatly into a static word list.
Existing Retrieval-Augmented Generation (RAG) systems attempt to mitigate these issues by incorporating external documents at inference time. However, these models are often not trained to fundamentally understand the relationship between their internal vocabulary and external embeddings.
Methods: Co-Supervision Strategy
The proposed "co-supervision" strategy trains a generator model (Gen) using two simultaneous loss functions:
- Parametric NTP ($L_{NTP}$): The standard approach where the model predicts the next token from its internal vocabulary.
- Nonparametric Next Sequence Prediction ($L_{NSP}$): A separate model (Emb<sub>seq</sub>) compresses entire text sequences into single representative embeddings. The generator is trained via contrastive learning (InfoNCE) to ensure its internal state at a specific "retrieval" token matches the embedding of the correct external sequence.
By superposing these two spaces, the model learns to treat external sequences as an extension of its own vocabulary. A special [NSP] token signals the model to switch focus from generating text to "looking up" a sequence in the nonparametric space.
Experimental Setup
The method was evaluated across 10 diverse information-seeking datasets from two major benchmarks: KILT (including Natural Questions, TriviaQA, and FEVER) and ALCE (ASQA and ELI5). The researchers used Llama2-7B as the base architecture for both the generator and the sequence encoder.
Key Results and Insights
Models trained with co-supervision consistently outperformed those trained on either NTP or NSP alone, showing an average performance improvement of 14.2 points across KILT datasets. For instance, in the "Top 100" retrieval setting for the Natural Questions (NQ) dataset, the co-supervised model achieved a retrieval score of 56.8, compared to just 35.7 for the NTP-only baseline.
The Importance of Balance
The researchers noted that the weight ($\lambda$) assigned to the sequence loss is critical. If it is too high, it compromises the model's fluency; if too low, the model fails to learn effective retrieval.
As shown in the analysis, a balanced weight (e.g., 0.01) yields the best results across retrieval, correctness, and grounding metrics. This balance allows the stable, pre-trained parametric token space to act as an "anchor" for the new nonparametric space, making it much more robust than if it were trained in isolation.
Generalization and Robustness
- Active Knowledge Utilization: Co-supervised models shift from "rote learning" (memorizing facts in weights) to "active utilization," drawing upon the nonparametric space to generate more accurate, grounded responses.
- Out-of-Domain Superiority: The method adapts better to topics not seen during fine-tuning because it learns a generalized way to interact with sequence embeddings.
- Reduced Hallucination: Grounding performance improved significantly, especially in complex tasks like FEVER and T-REx.
Conclusion
Semiparametric Token-Sequence Co-Supervision represents a significant step toward bridging the gap between internal model knowledge and external information. While computationally demanding due to the large batch sizes required for stable contrastive learning, the method significantly improves performance and reduces hallucinations in information-seeking tasks. Future work will explore scaling to larger models and diverse data modalities beyond text.
Summary updated