Run this model with HF Jobs

Run caccccc/crisp-recognizer on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs and TRL to fine-tune https://huggingface.co/caccccc/crisp-recognizer. Ask me which dataset to train on, then push the LoRA adapter to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs and Transformers to run batch inference with https://huggingface.co/caccccc/crisp-recognizer on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the predictions back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.

Evaluate on a benchmark

Use HF Jobs and Lighteval to evaluate https://huggingface.co/caccccc/crisp-recognizer. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.

Quantize for lower memory use

Use HF Jobs to create a 4-bit version of https://huggingface.co/caccccc/crisp-recognizer with Transformers and bitsandbytes. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
File size: 4,518 Bytes
84191ef
 
ce60163
84191ef
 
 
ce60163
 
 
 
 
 
 
 
84191ef
 
ce60163
84191ef
ce60163
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
84191ef
 
 
ce60163
 
 
 
 
 
 
 
84191ef
 
 
 
 
 
ce60163
84191ef
 
ce60163
84191ef
 
 
 
 
 
 
ce60163
84191ef
ce60163
84191ef
ce60163
 
 
 
 
 
84191ef
ce60163
84191ef
ce60163
84191ef
 
 
ce60163
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
---
license: apache-2.0
base_model: Qwen/Qwen3.5-9B-Instruct
pipeline_tag: text-generation
tags:
  - text-generation
  - reinforcement-learning
  - agent
  - deep-search
  - trajectory-analysis
  - critical-step-recognition
library_name: transformers
language:
  - en
---

# CRISP Critical Step Recognizer

**Critical step recognizer** fine-tuned from **Qwen3.5-9B-Instruct** for trajectory-level analysis of multi-turn deep search agents.

Given a complete agent trajectory, the model identifies which tool-interaction steps are **critical** — that is, steps that directly provide necessary evidence for the final answer, or that open the entry point for subsequent critical evidence collection. Distinguishing these steps from redundant exploration is what enables efficiency-aware reinforcement learning without sacrificing accuracy.

This repository hosts the **student recognizer** used in the CRISP framework.

## Paper

**CRISP: Critical Step Perception for Training Efficient Deep Search Agents**
Haosi Mo\*, Zihao Yan\*, Ruiqing Zhang†, Zhongli Li, Hexuan Deng, Xuebo Liu†, Min Zhang

*AAAI 2027* (CCF-A), **Accepted**.

\* Equal contribution. † Corresponding authors.
Affiliations: Harbin Institute of Technology (Shenzhen); Baidu Inc.

```bibtex
@misc{mo2026crispcriticalstepperception,
  title         = {CRISP: Critical Step Perception for Training Efficient Deep Search Agents},
  author        = {Haosi Mo and Zihao Yan and Ruiqing Zhang and Zhongli Li and Hexuan Deng and Xuebo Liu and Min Zhang},
  year          = {2026},
  eprint        = {2608.01867},
  archivePrefix = {arXiv},
  primaryClass  = {cs.CL},
  url           = {https://arxiv.org/abs/2608.01867}
}
```

## Model Details

The recognizer is distilled from a strong teacher model (Qwen3.5-397B-A17B) that performs **backward evidence induction**: starting from the final answer, the teacher walks the trajectory backwards step by step and judges whether each step is critical. This turns a long-range, noisy global judgement into a sequence of stable local marginal-value decisions.

Per-step teacher labelling costs one forward pass per step. The student instead reads the **entire trajectory once** and emits all critical steps in a single generation, which makes step-level criticality affordable inside an online RL loop — it is used to score every correct rollout during GRPO training.

- **Base model**: `Qwen3.5-9B-Instruct` (`Qwen3_5ForConditionalGeneration`, 32 layers, hidden size 4096)
- **Checkpoint**: SFT step 1800
- **Training data**: teacher-annotated trajectories built from BrowseComp-Plus and collected deep-search rollouts
- **Precision**: bfloat16
- **Format**: safetensors (4 shards) + HuggingFace `config.json` / tokenizer

## Input / Output

Input is a single user message containing the serialized trajectory (system prompt + all turns of thought, tool call, and observation). Output is strict JSON:

```json
{"thought_process": "...", "valid_steps": [1, 2, 5, 8]}
```

`valid_steps` are 1-based indices of the critical steps.

## Serving

The model is served as an OpenAI-compatible chat endpoint (SGLang / vLLM):

```bash
python -m sglang.launch_server \
  --model-path caccccc/111 \
  --served-model-name crisp-recognizer \
  --port 8000
```

```python
from openai import OpenAI

client = OpenAI(base_url="http://127.0.0.1:8000/v1", api_key="EMPTY")
resp = client.chat.completions.create(
    model="crisp-recognizer",
    messages=[
        {"role": "system", "content": system_prompt},
        {"role": "user", "content": trajectory_text},
    ],
    temperature=0.0,
    max_tokens=8192,
)
print(resp.choices[0].message.content)
```

> The system prompt used at training time ships with the training data construction code; prompts must match it for reliable output.

## Intended Use

- Scoring and filtering large batches of agent rollouts by evidence density
- Providing an auxiliary efficiency reward (gated on answer correctness) in GRPO-style RL training
- Diagnosing redundant exploration in deep-search / multi-step tool-use trajectories
- Quality assessment of synthesized agent training data

The model is a trajectory analyser, not a general chat assistant. It is not intended for open-ended dialogue, and its judgements reflect the annotation convention of the CRISP paper.

## Citation

If you use this model, please cite the CRISP paper above.

## License

Released under Apache-2.0, following the license of the base model. Check the base model's terms before commercial deployment.