# FracEncoder: Towards Adaptive Cognitive Trajectories via Fractional-Order Context Encoding

*Lulu Wang, Shengling Wang, Anlin Chen, Ke Chao, Weicheng Wang*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/148356) · [Open on the map](../papers.html#p148356)

Category: [LLM Reasoning, Memory & RAG](../pcat/19.md) › [Efficient Language Model Scaling](../pgroup/329.md) · Type: new method · Keywords: fractional-order neural differential equations, non-Markovian reinforcement learning, adaptive memory span, context encoding, cognitive trajectories

Areas: [Memory](../areas/memory.md) › Agent Memory Systems › Continual Learning; [AI Agents](../areas/agents.md) › Agent Capabilities › Memory and Representation; [Model Architectures & Sequence Modeling](../areas/architectures.md) › Language Model Architectures › Transformer Dynamics

## Summary
FracEncoder introduces a context encoder based on fractional-order neural differential equations that adaptively adjusts memory span and incorporates thought process history to improve performance in non-Markovian tasks.

## Explained to a 5-year-old
Robots sometimes don't see everything around them, so they need to remember what happened before. We use a special math rule that can look back far in time and keep those memories. This math learns how far back it should look, depending on the task. It helps robots make better choices when they have missing information. It also gives a simple number that shows how hard the problem is.

## Explained to a 5-year-old, longer
Robots that drive or move around often don't see everything at once. They need to understand what happened earlier to make good decisions. Traditional robots only remember the very recent past, which can cause mistakes. This paper creates a new way for robots to remember longer periods of time. The new method uses a kind of math that can look back over a long history. It also learns how far back it should look for each situation. This helps robots avoid forgetting important clues. The method works as a plug-in for many learning algorithms, making them better without changing much. It gives a simple number that tells how complex the task is. All of this makes robots smarter and safer in real-world situations.

## For a technical reader
The paper proposes a plug-in encoder that models context using fractional-order differential equations, allowing it to capture long-range dependencies beyond the typical Markovian bottleneck. By learning a fractional order parameter, the model can automatically adjust its effective memory length for each task. Experiments across multiple benchmarks show consistent improvements over existing baselines, with notable gains on delayed-observation control tasks. The approach also provides an interpretable measure of task complexity via the learned order. It can be integrated into various reinforcement-learning pipelines, yielding stable performance boosts.

## Problem
Existing recurrent encoders suffer from a Markovian compression bottleneck and lack adaptive memory span, causing loss of deep semantic cues and inability to adjust memory for different tasks.

## Method
The approach uses fractional-order neural differential equations with a nonlocal property and a power-law kernel to incorporate thought process history into state evolution, and learns a fractional order parameter to adaptively set memory span.

## Results
The approach matches or outperforms baselines on over ten benchmarks, achieving average returns of -511.5 ± 7.9 on Pendulum and 732.1 ± 152.7 on Hopper for the 8-step delayed-observation task, and provides stable gains as a plug-in module.

## Contributions
It introduces a context encoder that leverages fractional-order derivatives to capture long-range thought process history and adaptively learns memory span, offering an interpretable measure of cognitive complexity for non-Markovian tasks.

## Practical relevance
It enables more robust decision-making in real-world autonomous systems by better handling incomplete observations and long-term dependencies.

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/148356)
