Reinforcement Learning
Transformers
Safetensors
qwen3_5
image-text-to-text
focalrl
deep-research
agent
Instructions to use XingYing-stack/FocalRL-9B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use XingYing-stack/FocalRL-9B with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("XingYing-stack/FocalRL-9B") model = AutoModelForMultimodalLM.from_pretrained("XingYing-stack/FocalRL-9B", device_map="auto") - Notebooks
- Google Colab
- Kaggle
|
Download README.md from XingYing-stack/FocalRL-9B: direct link, hf CLI and curl.
- Browser
- Download file 3.45 kB
-
https://huggingface.co/XingYing-stack/FocalRL-9B/resolve/main/README.md
- Command line
-
hf download hf://XingYing-stack/FocalRL-9B/README.md
-
curl -L -o README.md https://huggingface.co/XingYing-stack/FocalRL-9B/resolve/main/README.md
3.45 kB
| library_name: transformers | |
| license: apache-2.0 | |
| base_model: Qwen/Qwen3.5-9B | |
| tags: | |
| - focalrl | |
| - deep-research | |
| - reinforcement-learning | |
| - agent | |
| # FocalRL-9B | |
| **FocalRL-9B** is a deep research agent based on **Qwen3.5-9B**, trained with [FocalRL](https://github.com/microsoft/FocalRL) for long-horizon web research. It combines full-trajectory outcome rewards with rubric-scored local action repair to improve credit assignment across extended search and browsing trajectories. | |
| This repository provides **FocalRL-9B** model weights in Hugging Face Transformers format. | |
| <p align="center"> | |
| <img src="assets/grpo_vs_horizonfold.png" width="480" alt="Comparison of baseline, GRPO, and FocalRL across deep research and software engineering benchmarks"> | |
| </p> | |
| *FocalRL compared with an SFT baseline and GRPO on Qwen3.5-9B Deep Research, and with the base model and GRPO on Qwen3.5-4B SWE-bench Verified. BrowseComp in this figure uses the first 200 tasks.* | |
| <p align="center"> | |
| <img src="assets/browsecomp_parameter_scaling.png" width="480" alt="BrowseComp accuracy versus total model parameters, including FocalRL-4B at 41.3% and FocalRL-9B at 57.9%"> | |
| </p> | |
| *Accuracy on the **full BrowseComp benchmark (1,266 tasks)** versus total model parameters, including FocalRL-4B (41.3%) and FocalRL-9B (57.9%).* | |
| ## Focal Credit Assignment | |
| FocalRL trains long-horizon agents through **local action repair**. It collects full trajectories, identifies consequential errors in failed attempts, and branches from the corresponding pre-error states. Short continuations are scored against task-specific repair rubrics, and the policy is optimized jointly with full-trajectory outcome rewards and local repair rewards. | |
| Each local continuation spans at most **five assistant turns**. Repair rewards are **0** for repeating the identified error, **0.5** for avoiding it, and **1** for avoiding it and making the specified correction. | |
| ## Performance | |
| Accuracy (%) across five Deep Research benchmarks, compared with 8B–9B search agents: | |
| | Model | Parameters | BrowseComp | BrowseComp-ZH | xbench-2505 | xbench-2510 | GAIA-text | | |
| | --- | ---: | ---: | ---: | ---: | ---: | ---: | | |
| | WebExplorer-8B-RL | 8B | 15.7 | 32.0 | 53.7 | <u>23.0</u> | 50.0 | | |
| | Marco-DeepResearch-8B | 8B | 31.4* | 47.1* | 82.0* | 42.0* | 69.9* | | |
| | MiroThinker-v1.0-8B | 8B | <u>31.1</u> | <u>40.2</u> | <u>60.6</u> | -- | <u>66.4</u> | | |
| | **FocalRL-9B** | **9B** | **57.9** | **56.1** | **82.0** | **49.0** | **84.5** | | |
| **Bold** and <u>underlined</u> scores indicate the best and second-best results among single-rollout evaluations in the 8B–9B category. `--` denotes an unreported result. * denotes the discard-all strategy, a different evaluation protocol from one rollout per task. | |
| ## Code and Usage | |
| Use this checkpoint as the policy model with the [FocalRL Deep Research agent](https://github.com/microsoft/FocalRL). The agent uses web search and page fetching to gather evidence, with browser summarization for fetched content. | |
| - [Deep Research setup](https://github.com/microsoft/FocalRL/blob/main/docs/deep_research.md): search, browsing, summarization, and answer judging. | |
| - [Training guide](https://github.com/microsoft/FocalRL/blob/main/docs/training.md): environment setup, checkpoint conversion, and FocalRL training. | |
| - [Agent implementation](https://github.com/microsoft/FocalRL/blob/main/adaptive_branching/src/deep_research/agent.py). | |
| ## License | |
| Apache-2.0. | |