Abstract
Large AI systems increasingly depend on operational machinery around the model: memory management, context allocation, cache policy, constraint handling, decoding controls, and evidence layers. These components shape cost, latency, reliability, safety posture, and developer experience.
Arxis Systems groups three Tunet Cognition modules into one research thesis. Adaptive-memory explores learned memory management for inference workloads. Pama-cache explores learned KV-cache allocation under memory budgets. Verified-decoding explores differentiable constraint handling, verifier-guided structured outputs, and logit repair during generation.
The current evidence is narrower than version 0.2 presented. Small-model runs show that grammar and schema constraints keep JSON valid while often selecting a value the source does not support. They do not yet show a verifier that closes that gap: the configuration reported at 100% exact match is forced onto the same answer it is graded against, and the configuration that relies on the verifier never beat grammar-only decoding.
Revision Note (v0.3)
Version 0.2 reported that semantic_verified reached 100% exact match on a 24-case semantic extraction suite and won 18 of 24 and 19 of 24 paired cases against an Outlines schema baseline with no losses. The 100% and the absence of losses are guaranteed by how the benchmark is built, and the win counts only restate how often Outlines missed; none of these numbers measures the verifier. Section 7 explains why and replaces the v0.2 tables.
Version 0.2 also attributed 151 passing tests to verified-decoding (the figure is for the three-package workspace), cited benchmark artifacts whose raw reports were not committed, and omitted the negative results recorded alongside the positive ones. This version corrects all four points and revises the abstract, sections 1, 6, 7, 8, 9, 10 and 12, the conclusion and the source register to match. The adaptive-memory and pama-cache sections are unchanged.
01 Source Basis and Method
This paper is grounded in local product pages for adaptive-memory, pama-cache, and verified-decoding. Those pages describe predictive prefetching, adaptive compression, intelligent caching, learned KV-cache retention and eviction, tiered memory, differentiable constraints, learned world models, logit repair, and conformal acceptance layers.
The verified-decoding portion is also grounded in the package source, its tests, research protocol notes, and a markdown summary of local benchmark runs dated 2026-06-10. Those runs cover a 6-task explicit-value benchmark on Pythia 160M, 24-case adversarial semantic extraction on Pythia 160M, TinyLlama 1.1B and distilgpt2, and an Outlines schema baseline on Pythia 160M and distilgpt2. The JSON reports the runs wrote were excluded from version control, so the figures here come from the summary, not from audited raw reports.
For version 0.3 the benchmark harness was also re-read and re-run without a language model, to check what each method's score depends on.
The paper does not assert broad empirical performance. It translates module behavior into a coherent system architecture, names the evidence now available, and identifies the evidence still needed before external claims should be made.
02 Problem Statement
AI applications are often bottlenecked outside the core model weights. Long-context workflows pressure KV-cache budgets. Repeated inference workflows benefit from memory reuse and prefetching. Safety-sensitive generation needs controls that are stronger than prompting but more flexible than rigid grammar masks.
Static heuristics can be useful, but they struggle when workload, task, context distribution, and risk profile change. Arxis asks whether these surrounding controls can become adaptive, inspectable, and task-aware while remaining measurable and bounded.
03 System Family
The Arxis family can be modeled as three control planes around inference. The memory control plane predicts and allocates reusable information. The cache control plane decides which context representations should remain active, compressed, or evicted. The decoding control plane evaluates and repairs generation steps against constraints and learned world-state expectations.
These planes should remain modular. A product may adopt cache allocation without verified decoding, or verified decoding without adaptive-memory. The shared research direction is explicit interfaces and evidence for controls around models.
04 Adaptive Memory
Adaptive-memory is described as learned memory management for ML inference. Its mechanisms include access-pattern prediction, importance-aware compression, tier promotion, and prefetching before demand.
The research question is whether learned policy improves useful availability of information under resource constraints. Evaluation should measure hit rate, latency effect, compression loss, policy overhead, workload sensitivity, and failure behavior when predictions are wrong.
05 Pama-Cache
Pama-cache is described as learned KV-cache allocation for long-context LLM workflows. It replaces static eviction with learned policy across working, compressed, and associative memory tiers.
The key systems challenge is preserving useful context without letting cache management become opaque or unstable. The policy should expose why tokens, segments, or representations were retained, compressed, or removed.
06 Verified Decoding
Verified-decoding is described as differentiable constraint satisfaction for LLM decoding. Rather than relying only on grammar masks or post-hoc rejection, it proposes soft learned constraints, world-model rollouts, gradient-based logit repair, and a conformal acceptance layer.
The strongest current use case is narrower and more practical: evidence-grounded structured output. Grammar and schema systems can make JSON valid while still selecting the wrong source-supported value. The research question is whether a verifier can keep the output inside the valid schema while selecting the value supported by evidence. The current benchmark does not yet answer it: in the configuration that scores well, the value is chosen by a deterministic resolver, not by the verifier (section 7).
This is safety-sensitive. Constraint-aware decoding may reduce some invalid generation, but it can also introduce false confidence if constraints are incomplete, learned models are wrong, or acceptance criteria are poorly calibrated.
07 Current Verified-Decoding Evidence
The three-package Arxis workspace had 151 passing tests in continuous integration on 2026-08-13. verified-decoding accounts for 88 of them. These tests pin implementation behaviour; they are not evidence of output quality.
The semantic extraction benchmark gives each method a short source text and asks for a JSON object whose values the source supports. Four methods matter. grammar_sequence masks tokens so the output follows the task's JSON prefix grammar. outlines_schema uses the Outlines library's JSON-schema generation. schema_verified adds the world-model verifier to the grammar mask. semantic_verified adds a third processor: a hard mask that allows only the tokens of the answer produced by a hand-written, deterministic resolver that reads the source with regular expressions.
The scorer takes its expected answer from the same resolver. semantic_verified is therefore forced to emit exactly the string it is graded against, and its 100% exact match is guaranteed by construction. It measures the resolver, not the model or the verifier. Re-running the benchmark's own processors, resolver and scorer, with a character-level tokenizer and random numbers in place of both the model and the verifier, confirms this: semantic_verified still scores 100% (480 of 480 runs), serialising the resolver's answer with no model at all also scores 100%, and grammar-only decoding with the same random stand-in scores 12.7%. The v0.2 paired results against Outlines (18 of 24 and 19 of 24 wins, no losses) compare that ceiling with a generation method and are withdrawn as evidence. The same applies to value_verified on the explicit-value benchmark, which is forced onto the task's own target.
The configurations that rely on the verifier did not help. schema_verified never improved exact match over grammar_sequence: 12.5% against 25.0% on Pythia 160M, 50.0% against 50.0% on TinyLlama 1.1B and 20.8% against 20.8% on distilgpt2, and 33.3% against 100% on the explicit-value benchmark. Standalone verified_repair produced empty continuations, so 0% of its outputs were valid JSON. In the current code the world-model verifier is not trained, and its conformal acceptance decision is computed but does not gate generation.
What the runs do show is the gap the paper set out to address. Grammar and schema constraints kept 100% of outputs valid while selecting the source-supported value in only 25.0% (Pythia 160M), 50.0% (TinyLlama 1.1B) and 20.8% (distilgpt2) of 24 cases. With 24 cases, the Pythia 160M and distilgpt2 rates are not clearly above chance (13.9% for a uniform choice among the valid values; 12.7% for random token choices inside the grammar in the no-model re-run), so they reflect model capacity as much as the constraint method. Valid-but-wrong output is real and easy to reproduce; a verifier that fixes it without being handed the answer has not yet been demonstrated.
| Model | Method | JSON valid | Schema valid | Exact match |
|---|---|---|---|---|
| Pythia 160M | grammar_sequence | 100.0% | 100.0% | 25.0% |
| Pythia 160M | outlines_schema | 100.0% | 100.0% | 25.0% |
| Pythia 160M | schema_verified (verifier + grammar) | 100.0% | 100.0% | 12.5% |
| Pythia 160M | semantic_verified (resolver ceiling) | 100.0% | 100.0% | 100.0% |
| TinyLlama 1.1B | grammar_sequence | 100.0% | 100.0% | 50.0% |
| TinyLlama 1.1B | schema_verified (verifier + grammar) | 100.0% | 100.0% | 50.0% |
| TinyLlama 1.1B | semantic_verified (resolver ceiling) | 100.0% | 100.0% | 100.0% |
| distilgpt2 | grammar_sequence | 100.0% | 100.0% | 20.8% |
| distilgpt2 | outlines_schema | 100.0% | 100.0% | 20.8% |
| distilgpt2 | schema_verified (verifier + grammar) | 100.0% | 100.0% | 20.8% |
| distilgpt2 | semantic_verified (resolver ceiling) | 100.0% | 100.0% | 100.0% |
| Method | JSON valid | Schema valid | Exact match |
|---|---|---|---|
| unconstrained | 0.0% | 0.0% | 0.0% |
| grammar_sequence | 100.0% | 100.0% | 100.0% |
| verified_repair | 0.0% | 0.0% | 0.0% |
| schema_verified (verifier + grammar) | 100.0% | 100.0% | 33.3% |
| value_verified (target ceiling) | 100.0% | 100.0% | 100.0% |
08 Frontier-Model Integration
Frontier model APIs usually do not expose token logits or custom decoding hooks. In that setting, verified-decoding cannot honestly be described as token-level decoding. It should be used as a verifier, reranker, retry controller, tool-call guardrail, or evaluation harness.
A practical frontier-model workflow asks the model for one or more candidate JSON or tool-call outputs, verifies each candidate against schema and source evidence, accepts the best supported candidate, or issues a focused retry when no candidate passes. This is compatible with API models because verification happens after generation. In the current package this is a design, not a tested verifier: the QA plugin accepts a candidate only if it equals an expected object that the caller or the same deterministic resolver supplies, and its retry prompt gives the model that object. Checking candidates against source evidence without being handed the answer has not yet been built or evaluated.
For open-weight or local models that expose logits, verified-decoding can also act during generation through decoding-time constraints and repair. The paper therefore distinguishes two integration modes: verifier-guided structured output for frontier APIs, and decoding-time constraint methods for local models with token-level access.
09 Evaluation Requirements
Arxis modules require empirical evaluation before strong claims. Adaptive-memory needs workload benchmarks and ablation studies. Pama-cache needs long-context task suites, memory-budget curves, and degradation analysis. Verified-decoding first needs an evaluation that can show a verifier effect at all: an evidence resolver that is independent of the grader, a no-model control reported beside every method, a trained verifier, and committed raw reports for every published figure. After that it needs larger adversarial suites, full TinyLlama Outlines runs, Guidance and LMQL generation-method baselines, latency measurements, failure examples, and human review for task-specific validity.
The evaluation should measure not only output quality but operational cost. A learned controller that improves one metric while adding unacceptable latency, complexity, or debugging opacity may not be a product improvement.
10 Safety and Failure Modes
The main failure modes are prediction error, cache misallocation, over-compression, constraint mismatch, world-model hallucination, evidence opacity, and verifier overreach. In each case, the system may look intelligent while silently making poor operational decisions.
For structured outputs, the most important failure mode is valid-but-wrong JSON: an output can satisfy the schema while selecting a value not supported by the source. The verified-decoding benchmark measures this gap; it does not yet show a method that closes it without being given the answer.
Fallbacks matter. Static policies, conservative decoding, hard constraints, retry prompts, or human review may be required when learned controls are uncertain.
11 Integration Patterns
Arxis modules should expose small, testable interfaces: memory policy APIs, cache budget controls, decoding constraint adapters, evidence traces, candidate verifiers, retry controllers, and configuration profiles.
An agent using Arxis should be able to explain which memory was loaded, which context was retained, which constraints were applied, which evidence supported the structured output, and why a generation step or candidate answer was accepted or repaired.
12 Limitations and Future Work
Learned operational controls can improve adaptability, but they can also make systems harder to reason about. Without traces, tests, and fallback policy, they may move hidden complexity from hand-written heuristics into learned components.
The immediate verified-decoding roadmap is clear: separate the evidence resolver from the grader, report a no-model control, train the verifier and wire its acceptance decision into generation, commit raw reports, then complete the TinyLlama Outlines comparison, implement Guidance and LMQL as true generation baselines, expand the adversarial suite from dozens to hundreds or thousands of cases, report latency and failure modes, and separate local decoding-time claims from frontier API verifier/reranker claims.
Future work should build benchmark harnesses, evidence traces, fallback interfaces, and documentation that lets developers inspect the behavior of each control plane.
Conclusion
Arxis Systems proposes that memory, cache, and decoding controls around AI models should become explicit system layers. The disciplined claim is not that learned controllers automatically outperform static rules. The claim is that these controls deserve named interfaces, evidence traces, evaluation suites, and bounded fallback behavior.
The verified-decoding runs illustrate one part of that thesis: with three small models, valid JSON often carried the wrong value, so structure alone was not enough. They do not yet support the other part. Evidence-grounded structure, where valid JSON or tool calls must also match the source facts they claim to represent, remains the goal; the evaluation that would show a verifier achieving it has still to be built.
Source Register
- adaptive-memory page: predictive prefetching, adaptive compression, intelligent caching, tier promotion, and access pattern prediction.
- pama-cache page: learned KV-cache allocation, working/compressed/associative tiers, rate-distortion under memory budgets, and task-adaptive retention.
- verified-decoding package docs: differentiable constraints, learned world models, logit repair, recurrent rollouts, conformal acceptance, and QA/API-model verifier workflows.
- verified-decoding results summary for local runs dated 2026-06-10 (markdown only; raw JSON reports not committed): Pythia 160M explicit-value benchmark; Pythia 160M, TinyLlama 1.1B and distilgpt2 semantic extraction; Pythia 160M and distilgpt2 Outlines schema baselines.
- verified-decoding benchmark harness source: the semantic_verified method's hard target mask and the scorer's expected answer are both built from the same deterministic evidence resolver; re-run in November 2026 with the benchmark's processors, resolver and scorer and random numbers in place of the model and the verifier.
- Arxis continuous-integration run of 2026-08-13: 151 tests passing across three packages, 88 of them in verified-decoding.
- Tunet Cognition catalogue: Arxis modules and agent systems as operational AI patterns.