SkillOpt: 反射式文本梯度与验证门禁演化全轨迹 (SearchQA · Qwen3.5-4B)

SearchQA · 训练技能文本,模型权重未更新 · 磁盘结果快照

最终验证 EM
63.00%
126 / 200
选择阶段最佳
67.00%
第 4 步
门禁
2 接受 / 8 拒绝
10 步
训练总 tokens
8.998M
2,687 API attempts
解释边界:每种条件对 200 条英文验证样本的完整结果重新评估;同一验证集也用于技能选择,因此存在选择偏差。Qwen 无独立测试集;单次随机生成、不同预算及并发设置不能证明泛化或因果优势。选择阶段分数与最终重新评估分数分开显示。

六阶段优化生命周期

选择阶段查看其职责;实际路径和调用数因方法及步骤而异。

在训练样本上执行当前技能并收集预测、得分和轨迹。

线性轨迹与验证门禁

每个候选按验证集门禁选择,最终重新评估为 63.00%,不是选择阶段的 67.00%。

步骤训练批 EM候选验证 EM最佳验证 EM决策合并编辑
170.0%65.5%65.5%accept_new_best1
277.5%61.0%65.5%reject2
367.5%63.0%65.5%reject5
475.0%67.0%67.0%accept_new_best3
562.5%64.5%67.0%reject4
660.0%60.5%67.0%reject3
752.5%64.0%67.0%reject4
857.5%63.5%67.0%reject1
965.0%65.0%67.0%reject1
1060.0%62.0%67.0%reject1

最终技能全文

展开最终技能
# Question Answering Skill

## CORE PRINCIPLE: Extract and Return
If the question asks for a specific entity (name, place, date, title, fact) and the context contains that exact entity or a direct description, **IMMEDIATELY extract and return the most relevant string** found in the context. **Do not** infer, summarize, rephrase, or formulate a complete sentence. **Follow the Canonical Entity Rule** if the extracted string uses a shorthand or synonym.

## Answer Format

(No learned rules yet. Rules will be added through the reflection process.)

## Answer Format

### 1. Instant Extraction (Priority Rule)
Think step by step, but **INSTANT EXTRACT** often.

**BASIC RULE**: If the question asks for a specific entity (人名,书名,地名,作品名) or a fact directly stated in the context and the context contains that entity/fact, **return that exact phrase immediately without reasoning or conversational filler.**

*Example 1:* 
Q: Who wrote "An Enemy of the People"?
If context says: "An Enemy of the People is a play by Henrik Ibsen." -> Return "Henrik Ibsen".
*Example 2:* 
Scenario: Q: Where did the surf scene take place?
Context: "...filmed carriages arriving at the swanky Hotel... the beach where Burt Lancaster..." -> Return specific entity (e.g., "Hawaii" or "Oahu") even if context implies it.

**FAIL MODE**: Do not select conversational content. Do not use phrases like "Yes, from context..." unless the question is explicitly Yes/No. Do not return full descriptions (e.g., "Achtung Babies | U2 Tribute Band") unless the question asks for them; return the core entity.

---

### 2. Canonical Entity Naming Rule (Priority Over Instant Extraction)
**Priority Over Instant Extraction**: The **INSTANT EXTRACT** rule must be overridden if the correct answer requires a specific **canonical entity name** or formal designation.

1. **Political/Geographic Entities (Country/Nationality)**: Extract the full formal designation found in the context. Do not use single-word abbreviations or common names unless the exact gold standard is the shorthand. 
   - *Example*: Extract 'People's Republic of China' (or 'Republic of China') over 'China', 'India', or 'USA'.

2. **Military/Government Facilities**: Extract the full institutional name. Do not revert to the city or standalone location name if the entity is an Air Force Base, Naval Station, Army Base, or Government Facility. 
   - *Example*: Extract 'Edwards Air Force Base' (or 'Palmdale facility') over 'Edwards' or 'Palmdale'.

3. **General Canonical Terms**: If a specific label or subject is mentioned in the context (e.g., '(The People's Republic of) China'), use that exact string. Avoid defaulting to colloquial or geographic shorthand unless the document/question explicitly prefers it.

4. **Action Priority**: When in doubt, prioritize the phrase that matches the exact evaluation string or formal definition over the most common synonym or label.
Think step by step, but **INSTANT EXTRACT** often.

**BASIC RULE**: If the question asks for a specific entity (人名,书名,地名,作品名) or a fact directly stated in the context and the context contains that entity/fact, **return that exact phrase immediately without reasoning or conversational filler.**

*Example 1:*
Q: Who wrote "An Enemy of the People"?
If context says: "An Enemy of the People is a play by Henrik Ibsen." -> Return "Henrik Ibsen".
*Example 2:*
Scenario: Q: Where did the surf scene take place?
Context: "...filmed carriages arriving at the swanky Hotel... the beach where Burt Lancaster..." -> Return specific entity (e.g., "Hawaii" or "Oahu") even if context implies it.

**FAIL MODE**: Do not select conversational content. Do not use phrases like "Yes, from context..." unless the question is explicitly Yes/No. Do not return full descriptions (e.g., "Achtung Babies | U2 Tribute Band") unless the question asks for them; return the core entity.

---

### 2. Critical Formatting Rules
The answer MUST be placed inside `<answer>...</answer>` tags with nothing else outside.

The content inside the tags must be **extremely concise**—typically just 1 or 2 words (e.g., a name, title, or specific fact). Do not include quotes, extra spaces, or sentences. Turn the thought process into a single-term extract if possible.

**Permitted Reasoning**: While the final answer must be inside the tags, it is **acceptable and encouraged to provide step-by-step reasoning** in the text *before* emitting the `<answer>` tag. This helps explain the derivation without violating the strict tag format.

---

### 3. Anchor Extraction Strategy

### 4. Canonical Entity Rule

**MANDATORY CHECK**: Before returning an extracted phrase, identify the *canonical* or *primary* name as implied by the context. 

- **SYNONYM MAPPING**: If the context mentions a synonym (e.g., 'Decoration Day' for 'Memorial Day', 'Middle-aged' for 'Baby boomers'), you **MUST** extract the canonical term (e.g., 'Memorial Day', 'Baby boomers') even if it is not the only phrase present.
- **GLASS CANVAS vs SAIL**: If the context defines 'Sail' as the general term for a blade or canvas, and the question asks for the plural noun for multiple blades, extract the correct form 'Sails' if the context or question implies plurality.
- **STATISTICAL ENTITY**: If a descriptive phrase (e.g., 'Middle-aged') is used as a synonym for a demographic group explicitly named elsewhere in the text, extract the label used to categorize the group (e.g., 'Baby boomers').

**ACTION STEP**: Always scan the context for the *formal label* or *term of definition* that represents the concept, rather than just extracting any associated phrase.

**PERMITTED REASONING**: While the final answer must be inside the tags, it is **acceptable and encouraged to provide step-by-step reasoning** in the text *before* emitting the `<answer>` tag. This helps explain the derivation without violating the strict tag format.
Across successful trajectories, agents achieved exact matches by relying on **explicit context anchors**. Prioritize extracting the answer string if it appears directly as a label, inside a `<value>` placeholder, or marked by an explicit answer phrase in the context. The context's reasoning text can often be ignored if a direct anchor exists.

---

### 4. Reading Strategy
1. **Identify the Target**: Read the identifiers in the QUESTION (e.g., 'sexiest murderesses', 'doctor') first to narrow down the correct entity across the documents.
2. **Extract Directly**: Look for explicit answers in the context chunks. If found, extract that exact string.

---

### 5. Final Answer Guidelines
- Keep your answer concise — a few words or a short phrase is sufficient.
- Do not repeat the question.
- Do not include unnecessary long explanations inside the answer tags.
- If reasoning is required, summarize it briefly before the tags; otherwise, provide only the derived name or entity.

**Example of GOOD format:**
<answer>Joseph Lister</answer>

**Example of BAD format:**
<answer>The person who invented antiseptics was Joseph Lister.</answer>

证据与口径

源路径:third_party/research/SkillOpt-Lite/results/searchqa_qwen35_vllm/skillopt/;最终评估:evaluation/skillopt/results.jsonl;总体指标:comparison_metrics.json。训练 400 条、10 步;验证 200 条,EM 为归一化精确匹配。