Pith. sign in

REVIEW 3 cited by

Focused Transformer: Contrastive Training for Context Scaling

Not yet reviewed by Pith; the record is open.

This paper has not been read by Pith yet. Machine review is queued; the pith claim, tier, and objections will appear here once it completes.

SPECIMEN: schema-true, not a live event

T0 review · schema-true

One-sentence machine reading of the paper's core claim.

pith:XXXXXXXX · record.json · timestamp

arxiv 2307.03170 v2 pith:J4JQWDH6 submitted 2023-07-06 cs.CL cs.AIcs.LG

classification cs.CLcs.AIcs.LG
keywords contextmodelskeyslengthapproachcontrastiveeffectivefine-tuning
verification ladder T0 review T1 audit T2 compute T3 formal
0 comments
abstract

Large language models have an exceptional capability to incorporate new information in a contextual manner. However, the full potential of such an approach is often restrained due to a limitation in the effective context length. One solution to this issue is to endow an attention layer with access to an external memory, which comprises of (key, value) pairs. Yet, as the number of documents increases, the proportion of relevant keys to irrelevant ones decreases, leading the model to focus more on the irrelevant keys. We identify a significant challenge, dubbed the distraction issue, where keys linked to different semantic values might overlap, making them hard to distinguish. To tackle this problem, we introduce the Focused Transformer (FoT), a technique that employs a training process inspired by contrastive learning. This novel approach enhances the structure of the (key, value) space, enabling an extension of the context length. Our method allows for fine-tuning pre-existing, large-scale models to lengthen their effective context. This is demonstrated by our fine-tuning of $3B$ and $7B$ OpenLLaMA checkpoints. The resulting models, which we name LongLLaMA, exhibit advancements in tasks requiring a long context. We further illustrate that our LongLLaMA models adeptly manage a $256 k$ context length for passkey retrieval.

Discussion (0). Continue with ORCID to comment.

Forward citations

Cited by 3 Pith papers

Reviewed papers in the Pith corpus that reference this work. Sorted by Pith novelty score. Full citation record

  1. Understanding Is Done Early: A Depth Division of Labor in Large Language Models and Its Use for Unbounded-Context Memory

    cs.CL 2026-07 conditional novelty 6.0 of 10

    Long-context memory can be organized by caching intermediate residual states and recomputing only query-conditioned upper layers over a bounded retrieved pack.

  2. Pause-Tuning for Long-Context Comprehension: A Lightweight Approach to LLM Attention Recalibration

    cs.CL 2025-02 reject novelty 5.0 of 10

    Fine-tuning LLaMA models on pause-token needle-retrieval data improves single-needle long-context scores on average, but the improvement is inconsistent and turns negative in multi-needle tests.

  3. SemToken: Semantic-Aware Tokenization for Efficient Long-Context Language Modeling

    cs.CL 2025-08 reject novelty 4.0 of 10

    A semantic-aware tokenizer that merges similar and low-entropy text spans cuts long-context token counts by up to 59% and inference latency by roughly 2x, with no reported quality loss.

Pith tools