MARC: Memory-Augmented RL Token Compression
- MARC is a systems-level paradigm that uses reinforcement learning to compress external memory representations, balancing efficiency and task performance.
- It integrates methods like optical rendering, skill distillation, and learned latent compression to reduce token costs while maintaining reasoning quality.
- Empirical results show that MARC achieves significant token reduction with near-baseline performance across video understanding, long-context reasoning, and agent interaction tasks.
Searching arXiv for the specified MARC-related papers and closely related work. Memory-Augmented Reinforcement Learning-based Token Compression (MARC) denotes a class of architectures in which an agent maintains an external memory, compresses that memory into a more compact representation, and optimizes the resulting task–efficiency trade-off with reinforcement learning. The term is the name of a specific video-understanding method in "MARC: Memory-Augmented RL Token Compression for Efficient Video Understanding" (Wu et al., 9 Oct 2025), and later work explicitly recasts related systems as MARC-style designs for agent-history rendering, skill distillation, and long-context compressed-memory reasoning (Feng et al., 8 Jan 2026, Xia et al., 9 Feb 2026, Chen et al., 9 Feb 2026). Across these formulations, the recurring objective is to preserve reasoning utility while reducing context length, visual tokens, memory usage, or inference cost.
1. Conceptual scope and problem setting
The motivating bottlenecks differ by modality but are structurally similar. In agentic LLM systems trained with reinforcement learning over multi-turn interaction trajectories, practical deployment is bottlenecked by rapidly growing textual histories that inflate token budgets and memory usage (Feng et al., 8 Jan 2026). In memory-based LLM agents, raw trajectories are often redundant and noise-heavy, preventing extraction of high-level, reusable behavioral patterns (Xia et al., 9 Feb 2026). In long-context reasoning, the dominant issues include quadratic computational costs, information forgetting, and the context fragmentation inherent in retrieval-augmented generation (Chen et al., 9 Feb 2026). In video understanding, visual LLMs incur heavy computational costs when extended from images to videos due to high frame rates and long durations (Wu et al., 9 Oct 2025).
Within this shared setting, MARC is not a single fixed mechanism. In the cited works, it appears as optical rendering of dialogue history into an image, distillation of trajectories into compact natural-language skills, chunk-wise compression into learned memory tokens, and retrieve-then-compress video processing. The common design principle is that the policy no longer consumes the full raw history directly; instead, it acts over a compressed memory object that is explicitly optimized for downstream reward.
This suggests that MARC is best understood as a systems-level paradigm rather than a single algorithmic primitive.
2. Canonical architectural pattern
A MARC system typically separates three functions: persistent memory construction, memory compression or retrieval, and RL-based policy optimization under an explicit context budget or efficiency signal. The specific memory substrate differs across implementations.
| Instantiation | Memory object | Compression or retrieval mechanism |
|---|---|---|
| AgentOCR | External buffer | Deterministic renderer , segment optical caching, adaptive compression factor |
| SkillRL | Hierarchical SkillBank | Experience-based skill distillation and TopK retrieval |
| LycheeMemory | Compressed memory bank | Chunk-wise learned compressor plus gating module |
| Video MARC | Retrieved visual memory fragments | Visual Memory Retriever and memory-aware temporal compression |
In AgentOCR, the state representation replaces raw text with an external memory buffer and renders it via a deterministic renderer into an image ; the model ingests (Feng et al., 8 Jan 2026). In SkillRL, the agent is parameterized as , where is an external context formed from general skills 0 and retrieved task-specific skills 1 (Xia et al., 9 Feb 2026). In LycheeMemory, an input document 2 is split into non-overlapping chunks, each chunk is compressed into a memory block 3, and a gating module decides which blocks should update the evolving working memory 4 (Chen et al., 9 Feb 2026). In the video MARC pipeline, event-based video segmentation yields visual memory fragments, a retriever returns the top-5 clips most relevant to the query, and compression is applied only after retrieval (Wu et al., 9 Oct 2025).
A plausible implication is that MARC replaces monolithic context processing with a factorized pipeline in which memory density and policy quality can be optimized separately, then coupled through reward.
3. Reinforcement-learning formulations
RL is central to MARC because compression is not treated as a purely offline preprocessing step. In AgentOCR, baseline agentic RL uses Group Relative Policy Optimization (GRPO) with the clipped surrogate
6
where 7 and 8 is the group-normalized advantage. AgentOCR augments the environment reward 9 with a compression term 0 to form
1
and for binary-success tasks
2
The compression reward is injected intermittently to avoid trivial high-compression strategies (Feng et al., 8 Jan 2026).
In SkillRL, the formal objective is
3
subject to 4 tokens. After cold-start SFT, GRPO-based RL is performed with a KL term to preserve skill-use capabilities:
5
where 6 (Xia et al., 9 Feb 2026).
In LycheeMemory, the RL problem is defined over states 7, actions that retrieve or skip memory blocks, and a terminal reward 8 if the generated answer exactly matches ground truth within <answer> tags and 9 otherwise. The joint policy
0
is optimized with a PPO-style clipped surrogate with a KL penalty (GSPO) (Chen et al., 9 Feb 2026).
In video MARC, the student policy 1 is trained with Compression Group Relative Policy Optimization (C-GRPO). The retention ratio is
2
the compression bonus is
3
and the total reward is
4
The optimization objective is a PPO-style clipped loss with a KL anchor to a reference policy 5 (Wu et al., 9 Oct 2025).
These formulations show that MARC does not simply compress tokens; it trains a policy to decide what compressed memory should contain, how strongly compression should be incentivized, and how far policy updates may drift from a reference behavior.
4. Memory representations and compression mechanisms
The memory object in MARC can be textual, visual, latent, or hybrid. AgentOCR uses optical self-compression: instead of feeding a large text history directly, it renders the accumulated observation–action history as a compact image. The history 6 is split into text segments 7, each segment receives a content key
8
and an episode-specific visual cache
9
stores rendered segment images. The final memory image is assembled by vertical stacking,
0
The amortized per-step render cost is 1 where 2 is the number of new cache-miss segments, and cache size grows with the number of unique segments rather than the number of steps. The wrapper may then downsample by factor 3 to produce the next observation image (Feng et al., 8 Jan 2026).
SkillRL compresses memory by abstraction rather than rendering. A trajectory 4 is converted by a teacher memory module 5 into a concise skill 6, with successful and failed trajectories producing 7 and 8. The resulting skills are short natural-language “principle + when_to_apply” entries. For a batch 9, the compression ratio is
0
and the summary states that typically 1–2 in SkillRL. At inference, the agent forms
3
which restricts memory to a bounded set of high-density reusable skills (Xia et al., 9 Feb 2026).
LycheeMemory uses learned latent compression. Each chunk 4 of size 5 is interleaved with 6 trainable memory tokens 7; a single forward pass through the compressor yields hidden states 8, and
9
is stored as the compressed memory block. A separate gate computes
0
from 1 and marks a block relevant if 2 (Chen et al., 9 Feb 2026).
The original video MARC uses a retrieve-then-compress pipeline. Event-based segmentation yields semantically coherent clips. A contrastive retriever embeds query and fragments into a shared latent space and returns the top-3 clips, with 4 set to 5 in most experiments. From the retrieved clips, the method uniformly samples 6 frames in total at 7 fps and encodes them into
8
Within short-term windows 9, it repeatedly merges the two consecutive frames with highest average patch cosine similarity,
0
replacing them by
1
until only
2
frames remain (Wu et al., 9 Oct 2025).
Taken together, these mechanisms indicate that MARC is defined less by a particular codec than by a common principle: memory is retained externally, compressed into a denser form, and exposed to the policy through a learned or structured access pathway.
5. Empirical behavior and efficiency trade-offs
The reported empirical results emphasize trade-offs between performance retention and context efficiency rather than absolute minimization of tokens. On ALFWorld, the 7B text baseline with GRPO achieves 3 success with 4 tokens per step, while AgentOCR obtains 5 (6 retention) with 7 tokens per step (8). On search-based QA, the text baseline scores 9 Exact Match with 0 tokens per step, while AgentOCR scores 1 (2 retention) with 3 tokens per step (4). Segment optical caching yields 5 faster per-step rendering compared to re-rendering full history, and 6 less cache memory versus naive append-only caching (Feng et al., 8 Jan 2026).
SkillRL reports stronger gains on success-oriented agent benchmarks. On ALFWorld, the GRPO baseline is 7, memory-augmented RL baselines are 8–9, and SkillRL reaches 0 overall success rate, corresponding to 1 over GRPO and 2–3 over other memory-RL methods. The context-efficiency trade-off in Figure 1 is summarized as 4 tokens versus 5 tokens, implying 6 (7 saving) while improving success from 8. On seven search-augmented QA tasks, the reported average scores are 9 for ZeroSearch, 00 for EvolveR, and 01 for SkillRL (Xia et al., 9 Feb 2026).
LycheeMemory focuses on extreme long-context extrapolation. LycheeMemory-7B without Gate achieves up to 02 at 03 context and degrades mildly to 04 at 05. The full model with Gate trades 06–07 accuracy for 08 inference speedup and 09 lower peak GPU memory versus MemAgent. Additional ablations report that 10 is nearly lossless, while 11 degrades sharply at long lengths; Query+Memory Gate retains 12 recall at 13 versus 14 for query-only and 15 for text-embedding; and end-to-end RL achieves 16 Avg., outperforming RL with frozen compressor, SFT only, and naive chunking (Chen et al., 9 Feb 2026).
The original video MARC reports a more aggressive compression regime. On MMVU MC, original 17-frame baseline average tokens are 18, whereas MARC uses 19 tokens, corresponding to a 20 reduction. GPU memory decreases from 21 to 22 (23), LLM generation latency decreases by 24, and end-to-end latency decreases by 25. On the six-benchmark mean, Qwen2.5-VL-3B with 26 frames scores 27, while MARC-3B with VMR + C-GRPO and one frame scores 28. Ablations further report that Qwen2.5-VL-3B + VMR with 29 frames reaches 30, and that C-GRPO outperforms SFT-based one-frame settings: 31 for MARC-3B versus 32 for Qwen2.5-VL-3B (1 fr) + SFT + VMR and 33 for Qwen2.5-VL-3B (1 fr) + SFT. For the threshold 34 in C-GRPO, the reported means are 35 at 36, 37 at 38, and 39 at 40 (Wu et al., 9 Oct 2025).
These results do not support the common assumption that token compression must be equivalent to crude truncation. In the cited systems, substantial reductions in token or memory footprint are paired with controlled degradation, near-baseline retention, or outright improvement, depending on the task and the compression substrate.
6. Limitations, misconceptions, and open directions
Several limitations recur across MARC variants. AgentOCR explicitly states that compression reward is injected only intermittently to avoid trivial high-compression strategies, indicating that naive reward shaping can collapse toward degenerate compression policies (Feng et al., 8 Jan 2026). SkillRL’s design addresses the problem that raw trajectories are redundant and noise-heavy, but its recursive evolution mechanism activates only for categories with validation accuracy below a threshold, which implies continued dependence on failure-driven skill-bank updates (Xia et al., 9 Feb 2026).
LycheeMemory provides the most explicit failure taxonomy. Its limitations section reports Unidirectional Dependency Mismatch (41), where once skipped a block cannot be revisited if it becomes relevant later; Premature Anchoring (42), where early inference biases subsequent updates; and Compression-Induced Hallucination (43), where aggressive 44 causes feature collapse leading to attribute swapping. The paper lists backtracking or multi-pass recall, Just-in-Time compression and offloading, and hybrid integration with RAG as future extensions (Chen et al., 9 Feb 2026).
Video MARC identifies a separate boundary condition. Under extremely long videos (VideoMME), performance drops to 45 of baseline when using only 46 of tokens, showing the limits of 47 fps sampling on very long inputs. The paper also notes that VMR currently relies on a single-shot retrieval of 48 clips, that the contrastive retriever assumes static embeddings, and that jointly fine-tuning VMR with C-GRPO may further close the gap (Wu et al., 9 Oct 2025).
A frequent misconception is that MARC denotes one fixed memory format. The literature cited here shows instead that MARC can operate over rendered images, distilled natural-language skills, latent memory-token blocks, or retrieved video fragments. Another misconception is that RL is always applied uniformly to every module. In LycheeMemory, the gating module is trained separately as a classifier; in SkillRL, cold-start SFT precedes GRPO; in AgentOCR, no auxiliary supervised losses are needed beyond the primary RL objective with augmented reward. This suggests that MARC is better characterized by the coupling of memory augmentation, compression, and reward-driven optimization than by any single training recipe.
The broader significance of MARC lies in this modularity. The cited systems show that token compression can be implemented through optical rendering, selective abstraction, learned latent compression, or retrieval-conditioned frame merging, while still remaining compatible with end-to-end RL or RL-centered training. That combination of explicit external memory and task-aware compression is the defining feature of the MARC paradigm.