Improve model card by adding pipeline tag and library name

#1
by nielsr HF Staff - opened
Files changed (1) hide show
  1. README.md +30 -2
README.md CHANGED
@@ -1,6 +1,29 @@
1
  ---
2
  license: apache-2.0
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4
  This is the repository for SophiaVL-R1-7B (https://arxiv.org/abs/2505.17018).
5
 
6
  For training and evaluation, please refer to the Code: [SophiaVL-R1](https://github.com/kxfan2002/SophiaVL-R1).
@@ -37,7 +60,8 @@ SYS_PROMPT = """You FIRST think about the reasoning process as an internal monol
37
  The reasoning process MUST BE enclosed within <think> </think> tagsdd. The final answer MUST BE enclosed within <answer> </answer> tags, for example <think>your_thinking_process</think><answer>your_final_answer</answer>. If you use formula, please use LaTeX format."""
38
 
39
  QUESTION_TEMPLATE = (
40
- "{Question}\n"
 
41
  "Please think about this question as if you were a human pondering deeply. "
42
  "Engage in an internal dialogue using expressions such as 'let me think', 'wait', 'Hmm', 'oh, I see', 'let's break it down', etc, or other natural language thought expressions "
43
  "It's encouraged to include self-reflection or verification in the reasoning process. "
@@ -78,4 +102,8 @@ def inference(image_path, question, problem_type = "numerical", sys_prompt="You
78
 
79
  response = inference(image_path, prompt, question_type, sys_prompt=SYS_PROMPT, max_new_tokens=2048)
80
  print(response)
81
- ```
 
 
 
 
 
1
  ---
2
  license: apache-2.0
3
+ pipeline_tag: image-text-to-text
4
+ library_name: transformers
5
  ---
6
+
7
+ # SophiaVL-R1: Reinforcing MLLMs Reasoning with Thinking Reward
8
+
9
+ The model was presented in the paper [SophiaVL-R1: Reinforcing MLLMs Reasoning with Thinking Reward](https://huggingface.co/papers/2505.17018).
10
+
11
+ # Paper abstract
12
+
13
+ The abstract of the paper is the following:
14
+
15
+ Recent advances have shown success in eliciting strong reasoning abilities in multimodal large language models (MLLMs) through rule-based reinforcement learning (RL) with outcome rewards. However, this paradigm typically lacks supervision over the thinking process leading to the final this http URL a result, the model may learn sub-optimal reasoning strategies, which can hinder its generalization ability. In light of this, we propose SophiaVL-R1, as an attempt to add reward signals for the thinking process in this paradigm. To achieve this, we first train a thinking reward model that evaluates the quality of the entire thinking process. Given that the thinking reward may be unreliable for certain samples due to reward hacking, we propose the Trust-GRPO method, which assigns a trustworthiness weight to the thinking reward during training. This weight is computed based on the thinking reward comparison of responses leading to correct answers versus incorrect answers, helping to mitigate the impact of potentially unreliable thinking rewards. Moreover, we design an annealing training strategy that gradually reduces the thinking reward over time, allowing the model to rely more on the accurate rule-based outcome reward in later training stages. Experiments show that our SophiaVL-R1 surpasses a series of reasoning MLLMs on various benchmarks (e.g., MathVisita, MMMU), demonstrating strong reasoning and generalization capabilities. Notably, our SophiaVL-R1-7B even outperforms LLaVA-OneVision-72B on most benchmarks, despite the latter having 10 times more parameters. All code, models, and datasets are made publicly available at this https URL .
16
+
17
+ # Current model card
18
+
19
+ The README of the model repository currently looks like this:
20
+
21
+ ## Metadata
22
+ ```yaml
23
+ license: apache-2.0
24
+ ```
25
+
26
+ ## Content
27
  This is the repository for SophiaVL-R1-7B (https://arxiv.org/abs/2505.17018).
28
 
29
  For training and evaluation, please refer to the Code: [SophiaVL-R1](https://github.com/kxfan2002/SophiaVL-R1).
 
60
  The reasoning process MUST BE enclosed within <think> </think> tagsdd. The final answer MUST BE enclosed within <answer> </answer> tags, for example <think>your_thinking_process</think><answer>your_final_answer</answer>. If you use formula, please use LaTeX format."""
61
 
62
  QUESTION_TEMPLATE = (
63
+ "{Question}
64
+ "
65
  "Please think about this question as if you were a human pondering deeply. "
66
  "Engage in an internal dialogue using expressions such as 'let me think', 'wait', 'Hmm', 'oh, I see', 'let's break it down', etc, or other natural language thought expressions "
67
  "It's encouraged to include self-reflection or verification in the reasoning process. "
 
102
 
103
  response = inference(image_path, prompt, question_type, sys_prompt=SYS_PROMPT, max_new_tokens=2048)
104
  print(response)
105
+ ```
106
+
107
+ # Project page
108
+
109
+ The project page URL we found has the following URL: https://github.com/kxfan2002/SophiaVL-R1