Reinforcement Learning
Transformers
Safetensors
qwen3_5
image-text-to-text
focalrl
deep-research
agent
Instructions to use XingYing-stack/FocalRL-4B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use XingYing-stack/FocalRL-4B with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("XingYing-stack/FocalRL-4B") model = AutoModelForMultimodalLM.from_pretrained("XingYing-stack/FocalRL-4B", device_map="auto") - Notebooks
- Google Colab
- Kaggle
File size: 3,246 Bytes
2a96349 e9fead9 2a96349 e9fead9 2a96349 e9fead9 2a96349 b5e2ee4 2a96349 e9fead9 cfb87a2 2a96349 b5e2ee4 cfb87a2 b5e2ee4 98a9793 2a96349 e9fead9 2a96349 e9fead9 2a96349 e9fead9 2a96349 e9fead9 2a96349 e9fead9 2a96349 e9fead9 2a96349 e9fead9 2a96349 e9fead9 2a96349 e9fead9 2a96349 e9fead9 2a96349 e9fead9 2a96349 e9fead9 | 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 | ---
library_name: transformers
license: apache-2.0
base_model: Qwen/Qwen3.5-4B
tags:
- focalrl
- deep-research
- reinforcement-learning
- agent
---
# FocalRL-4B
**FocalRL-4B** is a deep research agent based on **Qwen3.5-4B**, 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-4B** 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 4B search agents:
| Model | Parameters | BrowseComp | BrowseComp-ZH | xbench-2505 | xbench-2510 | GAIA-text |
| --- | ---: | ---: | ---: | ---: | ---: | ---: |
| DR-Venus | 4B | 29.1 | 37.7 | 74.7 | 40.7 | 64.4 |
| AgentCPM-Explore | 4B | 24.1 | 29.1 | 70.0 | 34.0 | 63.9 |
| ABSeeker | 4B | <u>37.3</u> | <u>39.1</u> | <u>77.0</u> | <u>46.0</u> | <u>81.6</u> |
| **FocalRL-4B** | **4B** | **41.3** | **46.1** | **78.0** | **48.0** | **82.5** |
**Bold** and <u>underlined</u> scores indicate the best and second-best results in the 4B category.
## 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.
|