Login Sign Up
Advert
Your ad spot
Reserve this exclusive slot for the selected period.
Buy advertising →
Artificial Intelligence

A new way to increase the capabilities of large language models

4 min read 21.12.2025

MIT-IBM Watson AI Lab researchers introduce PaTH Attention, an adaptive positional encoding that enhances state tracking and long-context reasoning in LLMs.

Image for article - A new way to increase the capabilities of large language models
Advert
Your ad spot
Reserve this exclusive slot for the selected period.
Buy advertising →

Hook — PaTH Attention: adaptive positional encoding that tracks state

PaTH Attention, a new position-encoding technique from MIT and the MIT‑IBM Watson AI Lab, makes positional information adaptive and context‑aware so transformers can better track state and sequential changes across long text and code.

A new way to increase the capabilities of large language models

Problem: why standard attention struggles with state tracking

Transformers rely on an attention mechanism to weigh tokens, but the mechanism alone does not encode word order. The dominant solution, rotary position encoding (RoPE), encodes only relative token distance and applies a fixed rotation for each relative offset. That means tokens separated by the same distance always receive the same positional transform, limiting the model's ability to model evolving syntax, variables, or conditional steps over long spans.

What PaTH Attention changes

PaTH Attention replaces fixed rotations with data‑dependent, stepwise transformations along the path between tokens. Instead of a single static rotation for a given distance, PaTH treats the intervening tokens as a sequence of small, adaptive transforms.

Advert
Your ad spot
Reserve this exclusive slot for the selected period.
Buy advertising →

Core innovations

  • Data‑dependent positional encoding: transforms vary with token content, not just distance.
  • Householder reflections: each step uses a compact mathematical reflection that adapts to each token.
  • Positional memory: cumulative transforms model how meaning and relationships change over sequences.
  • Hardware‑efficient algorithm: compresses cumulative transforms into smaller computations optimized for GPUs.
Pro tip: Treat positional encoding as a path of contextual transformations rather than a fixed distance metric — that's the intuition behind PaTH.

Why this matters — practical capabilities

PaTH Attention improves tracking of state and sequential reasoning where RoPE and other static encodings struggle. It enables transformers to follow recent writes, handle multi‑step recalls, and maintain content awareness across tens of thousands of tokens.

Evaluations and results

  • Synthetic diagnostics: better handling of state‑tracking tasks and multi‑step recalls.
  • Long‑context benchmarks: improved retrieval and reasoning with very long inputs.
  • Language modeling: mid‑size LLMs trained with PaTH achieved lower perplexity and outperformed alternatives on unseen reasoning benchmarks.
  • Stability: consistent content‑aware performance across tasks requiring entity and relation tracking.

Extension: PaTH‑FoX — selective forgetting combined with PaTH

The team combined PaTH with the Forgetting Transformer (FoX) to allow selective down‑weighting of older or less relevant information. The PaTH‑FoX hybrid preserves PaTH's data‑dependent positional power while adding a mechanism to ignore outdated context, yielding strong results across reasoning, long‑context understanding, and language modeling.

Technical summary table

Aspect RoPE (standard) PaTH Attention PaTH‑FoX
Position encoding Fixed, relative distance rotations Adaptive, data‑dependent path of transforms (Householder reflections) Adaptive + selective forgetting
State tracking Limited Improved (positional memory) Improved + down‑weighting obsolete info
Hardware efficiency Standard attention runtimes Hardware‑efficient algorithm for GPU compatibility Same as PaTH
Benchmarks Baseline Lower perplexity; better reasoning and long‑context performance Strongest on tasks requiring forgetting + tracking

Research context and implications

Yoon Kim and colleagues (MIT, MIT‑IBM Watson AI Lab, IBM Research, Stanford, Microsoft) presented this work at NeurIPS. The approach aims to preserve transformer scalability while increasing expressivity for structured domains such as code, biology (proteins, DNA), and long documents. The research received support from the MIT‑IBM Watson AI Lab and the AI2050 program at Schmidt Sciences.

Takeaway for practitioners

  1. Consider PaTH when models must track evolving state, variables, or conditional logic across long contexts.
  2. Use PaTH‑FoX when you also need to forget or down‑weight old context selectively.
  3. Expect improvements in reasoning benchmarks and long‑context language modeling without sacrificing hardware scalability.

FAQ

What problem does PaTH solve?

PaTH solves the limitation of fixed relative positional encodings by making positional transforms data‑dependent, enabling better state and sequence tracking.

Does PaTH increase computation cost?

The authors designed a hardware‑efficient algorithm that compresses and splits the cumulative transforms into GPU‑friendly computations, keeping runtime practical.

Can PaTH help non‑language domains?

Yes. The approach applies to structured domains such as code and biology, where relations and state evolve across sequences.

Source: NeurIPS paper from the MIT and MIT‑IBM Watson AI Lab team (lead author Songlin Yang; senior author Yoon Kim) presented with collaborators from Stanford, Microsoft, and IBM Research.

Share Facebook X Telegram

Comments

No comments

Add Comment

0 / 2000