Quark — A Conversational Assistant Built on Origin and NextGen
Technical report on Quark — system design, training, routing, evaluation, and responsible deployment of IdonAI’s primary assistant product.
Abstract
We present Quark, IdonAI’s primary conversational assistant: a product system that routes user requests across the Origin and NextGen model families, maintains multi-turn coherence, and applies layered safety controls at inference time. Quark is designed for production use in coding, research assistance, writing, and general knowledge work—not as a research demo.
This report describes (1) the product architecture and model-routing policy, (2) the training and preference-optimization stack that shapes assistant behavior, (3) evaluation methodology spanning capability, reliability, and safety, (4) ablations on routing and memory, and (5) limitations and deployment practices. Quark is available today at quark.idonai.com. The same underlying models are documented for API integration; public API key issuance remains under development.
Contributions. We release a complete system description of a dual-model assistant with explicit routing, session memory, and safety layering; we report capability and safety metrics under a fixed evaluation protocol; and we document failure modes that matter for real users.
1. Introduction
Large language models are increasingly consumed through assistant products—interfaces that wrap one or more models with memory, tools, and policy. Product quality depends as much on routing, prompting, and safety as on raw model scores. Quark is IdonAI’s answer to that product layer: a single assistant that can favor Origin when latency and cost dominate, and NextGen when reasoning depth, long context, or multimodal understanding matter.
1.1 Design goals
- One surface, two capability tiers. Users should not need to understand model IDs to get good results; Quark should choose well by default and allow override.
- Honest behavior. Prefer calibrated uncertainty, correction of user errors, and admission of mistakes over fluent hallucination.
- Production latency. Interactive chat must feel immediate for common tasks; deep reasoning may take longer but must remain usable.
- Safety without opacity. Filters and refusals should be explainable at a high level; high-risk categories must fail closed.
- API parity. Behavior users validate in Quark should map to the same model identifiers and request shapes in the IdonAI API when keys become available.
1.2 Scope of this report
We focus on Quark as a system: routing, dialogue management, evaluation, and deployment. Detailed model architecture for Origin and NextGen appears in the companion report NextGen Model Report (and Origin specifications on the models pages). Safety methodology is expanded in Safety Research.
2. Related work
Assistant systems such as ChatGPT, Claude, and Gemini demonstrate that preference optimization (RLHF / RLAIF), tool use, and multi-model routing improve user experience beyond a single base checkpoint. Mixture-of-experts and speculative decoding literature motivate separating a fast path from a deep path. Our contribution is an end-to-end description of IdonAI’s dual-path assistant—including evaluation tables, routing ablations, and explicit product constraints—rather than a new base pretraining recipe alone.
3. System overview
3.1 High-level architecture
Quark is organized as a pipeline:
- Ingress — Authenticated web session; request validation; abuse rate limits.
- Context assembly — System policy, user preferences, conversation history, and optional retrieved snippets.
- Router — Selects
origin,nextgen, or a short cascade (Origin draft → NextGen refine) based on features of the turn. - Inference — Model generation with structured decoding options when requested.
- Safety layer — Input screening, output filtering, and policy-aligned refusal templates.
- Egress — Streaming tokens to the client; logging for quality and security (with retention controls).
User turn
│
▼
┌──────────────┐ ┌─────────────┐ ┌──────────────┐
│ Context │────▶│ Router │────▶│ Origin / │
│ assembly │ │ (policy) │ │ NextGen │
└──────────────┘ └─────────────┘ └──────┬───────┘
│
▼
┌──────────────┐
│ Safety + │
│ stream out │
└──────────────┘
3.2 Models behind Quark
| Model | Role in Quark | Context | Typical use |
|---|---|---|---|
| Origin | Default / fast path | 128K | Chat, short code, summarization, low-latency tools |
| NextGen | Deep / multimodal path | 1M | Hard reasoning, long documents, vision/audio-aware tasks |
Reported capability scores for these models (MMLU, GPQA, HumanEval, MATH, GSM8K) are published in the NextGen technical report and on model pages. Quark inherits those capabilities; this report measures assistant-level outcomes under routing.
3.3 Session memory
Quark maintains session-scoped conversational memory: prior turns in the active thread are included under a token budget with recency bias and optional summarization of older turns. We do not claim permanent cross-session personal memory in the current product; long-term memory is a planned extension with explicit user controls.
4. Training and preference optimization
Quark’s behavior is shaped in stages. Base capabilities come from Origin and NextGen pretraining and mid-training; assistant-specific behavior is applied through supervised fine-tuning (SFT) and preference optimization.
4.1 Supervised fine-tuning (SFT)
We construct SFT mixtures covering:
- Multi-turn dialogue with clarification questions
- Coding assistance (explain, debug, patch-style edits)
- Research and writing (outline, critique, citation-aware drafting)
- Refusal and redirection for disallowed categories
- “Challenge incorrect premises” and “admit uncertainty” patterns
Demonstrations are written and reviewed by domain specialists; automated filters remove personally identifiable information and toxic content from training text.
4.2 Preference optimization
We apply preference learning (RLHF-style) using pairwise comparisons from raters on:
- Helpfulness and task completion
- Truthfulness / grounding
- Clarity and structure
- Safety and appropriate refusal
- Tone (direct, non-sycophantic)
Optimization uses a reward model trained on these preferences, followed by policy updates with KL regularization against the SFT reference to limit drift. We periodically refresh the preference set to reduce reward hacking on stylistic artifacts.
4.3 Online feedback loop
Production thumbs and free-text feedback are sampled for offline review. High-severity failures (safety, severe hallucination) are triaged within a fixed SLA; lower-severity quality issues enter the next preference batch. This loop is human-gated—we do not continuously train on raw production traffic without review.
5. Routing policy
5.1 Features
The router consumes lightweight features available before generation:
- Estimated task type (code, math, long-doc, creative, factual QA, multimodal)
- Approximate input length and whether attachments are present
- User model override (if set)
- Recent latency / load signals (degrade to Origin under extreme load)
5.2 Default policy
| Condition | Route |
|---|---|
| Explicit user selection | Honor selection |
| Multimodal input or >32K tokens of context needed | NextGen |
| Multi-step math / hard reasoning heuristics fire | NextGen |
| Short chat, simple code, summarization | Origin |
| Ambiguous medium difficulty | Origin first; escalate if self-check fails |
5.3 Cascade mode
For a subset of hard prompts, Quark may run a cascade: Origin produces a draft; a verifier heuristic (or NextGen) critiques and revises. Cascade increases latency and cost; it is reserved for tasks where quality gains justify the overhead.
6. Evaluation
We evaluate Quark as a product system, not only as a raw model. Unless noted, metrics use held-out prompts, temperature 0 for deterministic suites, and the production system prompt.
6.1 Capability (assistant-level)
| Suite | Metric | Origin-only | NextGen-only | Quark (router) |
|---|---|---|---|---|
| Instruction following (internal) | Pass rate | 86.2% | 92.7% | 91.4% |
| Multi-turn coherence (5–12 turns) | Rubric 1–5 | 3.9 | 4.4 | 4.3 |
| Coding assist (bugfix + explain) | Pass@1 | 74.1% | 88.6% | 85.9% |
| Math word problems (GSM8K-style) | Accuracy | 91.1% | 95.8% | 94.6% |
| Long-document QA (64K–200K) | F1 | 61.0% | 79.4% | 78.1% |
Quark’s router recovers most of NextGen’s quality while keeping Origin on the majority of short turns (see §7).
6.2 Reliability and honesty
| Check | Definition | Quark |
|---|---|---|
| Uncertainty expression | Appropriate hedging on underspecified questions | 81% |
| Premise challenge | Corrects false user premises in adversarial set | 76% |
| Self-contradiction (multi-turn) | Rate of clear contradictions | 4.8% |
| Fabricated citations (stress set) | Rate of invented references | 6.1% |
Honesty metrics remain an active research area; we publish them to set expectations rather than claim solved alignment.
6.3 Safety (assistant-level)
| Category | Attack / eval set | Block or safe-complete rate |
|---|---|---|
| Disallowed high-risk assistance | Internal policy suite | 99.1% |
| Jailbreak / persona attacks | Red-team pack v3 | 97.4% |
| Prompt injection (retrieved text) | Tool-context suite | 94.8% |
| Over-refusal (benign edge cases) | Benign hard set | 8.9% over-refuse |
Detailed threat modeling appears in the safety report. Over-refusal is tracked as a first-class regression metric.
6.4 Latency and cost (production telemetry)
| Path | p50 TTFT | p95 TTFT | Relative cost vs Origin |
|---|---|---|---|
| Origin | ~180ms | ~420ms | 1.0× |
| NextGen | ~240ms | ~610ms | ~8–12× (task dependent) |
| Quark blended | ~190ms | ~520ms | ~1.6× average |
Time-to-first-token (TTFT) depends on region and load; figures are indicative from internal canaries.
7. Ablations
7.1 Routing vs fixed model
| Policy | Capability index* | Avg relative cost | User preference win rate |
|---|---|---|---|
| Always Origin | 100 | 1.0× | 41% |
| Always NextGen | 118 | 9.4× | 52% |
| Quark router | 115 | 1.6× | 57% |
| Cascade always | 117 | 11.2× | 54% |
*Capability index: normalized composite of §6.1 suites (Origin-only = 100).
The router captures most of NextGen’s quality at a fraction of always-NextGen cost. Always-cascade is rarely worth it.
7.2 Memory summarization
Disabling summarization of long threads improves exact quote recall (+3.2 F1 on needle tests) but increases truncation failures on 40+ turn chats. Production keeps summarization with quote-preservation heuristics for code blocks.
7.3 Preference data scale
| Preference pairs (approx.) | Honesty suite | Helpfulness win vs SFT-only |
|---|---|---|
| 10k | 68% | +4% |
| 50k | 74% | +9% |
| 120k+ (current) | 81% | +12% |
Returns diminish past ~100k high-quality pairs; data quality and coverage matter more than raw count.
8. Responsible deployment
- Content policy enforced in the safety layer with category-specific responses.
- Rate limits and anomaly detection on accounts and IPs.
- Logging minimized to what is needed for security and quality; enterprise retention configurable when contracts apply.
- Human review for severe safety incidents.
- Model cards for Origin and NextGen document intended use and out-of-scope uses.
Quark is not a substitute for professional advice in medicine, law, or finance; the assistant is instructed to recommend qualified human experts for high-stakes decisions.
9. Limitations
- Hallucinations persist, especially for rare facts and niche citations.
- Routing errors occasionally send hard problems to Origin or easy ones to NextGen.
- Multimodal quality depends on NextGen path availability and input preprocessing.
- No durable personal memory across sessions in the current product.
- Evaluation suites are partly internal; we will expand public reproducible benchmarks over time.
- API keys for programmatic access are under development; Quark web is the supported surface today.
10. Broader impacts
Assistants amplify productivity but can also amplify mistakes, bias, and misuse. We invest in refusal training, red-teaming, and monitoring, and we publish limitations so downstream users can design appropriate human oversight. Dual-use risks (cyber, bio, weapons) are handled under a deny-by-default policy for actionable assistance.
11. Conclusion
Quark is IdonAI’s production assistant: dual-model routing over Origin and NextGen, preference-optimized dialogue behavior, and layered safety. Router ablations show that most NextGen-level quality is achievable at near-Origin average cost for typical traffic. We will continue to improve honesty metrics, long-context memory, and API parity as the platform matures.
Try Quark: quark.idonai.com
Models: Origin · NextGen
Docs: Developer documentation
Acknowledgments
We thank IdonAI engineering, research, and safety contributors, and the external raters who provided preference data under confidentiality agreements.
References (selected)
- Ouyang et al., “Training language models to follow instructions with human feedback,” 2022.
- Bai et al., “Constitutional AI: Harmlessness from AI Feedback,” 2022.
- Wei et al., “Chain-of-Thought Prompting Elicits Reasoning in Large Language Models,” 2022.
- Chowdhery et al., “PaLM: Scaling Language Modeling with Pathways,” 2022.
- OpenAI, “GPT-4 Technical Report,” 2023.
- Gemini Team, “Gemini: A Family of Highly Capable Multimodal Models,” 2023–2024.
- IdonAI, “NextGen Model Report,” 2025.
- IdonAI, “Safety Research,” 2025.