LFM3-1.7B-Focused-Search

A small search agent that stops searching once it has found the answer.

v1, 2026-11-19 (intermediate release). Fine-tuned from LiquidAI/LFM3-1.7B. GGUF: AmaLS367/LFM3-1.7B-Focused-Search-GGUF.

Goal of the project: bring small models up to the general capability of Claude Haiku 5.5: reasoning, knowledge, tool use, and how efficiently they reach an answer. It is an ambitious goal. This release takes one step toward it, in search efficiency: it narrows the gap between this 1.7B model and Haiku 5.5 on how many searches it needs to answer a question.

As a search agent, LFM3-1.7B usually does find the evidence: in 77% of questions the right answer appears in its search results, typically by the 2nd or 3rd search. But it does not stop there. It keeps searching for about 5 more queries, and 45% of its runs end only because they hit the 12-search limit. Haiku 5.5, given the same tool, needs 2.15 searches per question.

This model was trained (DPO) to answer as soon as the evidence is on screen.

In short

504 questions from 7 standard QA benchmarks. Every model, LFM3 and Claude Haiku 5.5 alike, ran in the same agent harness, Claude Code 2.1.325 (headless), with the same tool and the same questions. Accuracy is graded by an LLM judge, Gemini 3.8 Flash (run through the agy CLI).

LFM3-1.7B (base) this model Claude Haiku 5.5
accuracy (LLM judge: Gemini 3.8 Flash) 0.621 0.629 0.665
searches per question, mean 8.49 6.58 2.15
searches per question, median 9 4 2
runs that hit the 12-search limit 45% 33% 0.6%
questions where the answer appears in the search results 77% 74% 55%
stops right at the first search that found the answerยน 18% 39% 64%
searches after the answer was already foundยน 5.28 3.27 0.74

ยน Over the questions where the answer appeared in the search results. Haiku 5.5 often answers from its own knowledge after a search that did not return the answer, so it has fewer such questions.

  • Accuracy did not drop. The difference to the base is +0.8 pp, 95% CI [โˆ’2.0, +3.6] (paired bootstrap), so it is within noise. No benchmark dropped noticeably.
  • When it stops on its own, it is close to Haiku. In the runs that end before the limit, this model needs 3.3 searches per question and Haiku 2.1. This excludes the hardest third of the questions, so it is not the overall average. Almost all of the remaining gap comes from the 33% of runs that still search until the limit.

Known weaknesses of v1

  • 33% of runs still use all 12 searches.
  • The model also stops earlier when the answer has not been found yet: 11.1 โ†’ 9.0 searches on such questions. The share of questions where the answer appears in the results dropped slightly, 0.766 โ†’ 0.744.
  • Accuracy is unchanged. Haiku 5.5 is still +4.4 pp more accurate against the same base.
  • Some training pairs rewarded answering without the evidence on screen. An audit after release (2026-11-19) checked the 183 post-hit pairs: an LLM (Gemini 3.8 Flash) read the passages the model had seen and decided whether any of them actually gives the gold answer to the question. 140 (76.5%) were confirmed, 32 had the answer string only in an unrelated context (another person, a different relation, a list), and 11 had no passage with the full answer string. The checker misses about a third of real evidence, so an estimated 11โ€“16% of the post-hit pairs taught the model to answer from its own knowledge right after a search that did not actually contain the answer. The next version will use only verified pairs.
  • The "answer found" metric above is a plain string match, and it over-counts. It matches short aliases inside other words, counts answers that are already in the question, and counts searches made after the 12-call limit (which returned no results to the model). With whole-word matching and those cases excluded (base / this model / Haiku 5.5): answer found 0.67 / 0.64 / 0.46 instead of 0.77 / 0.74 / 0.55; stops right at the first hit 20% / 41% / 70% instead of 18% / 39% / 64%; searches after the answer was found 5.17 / 3.16 / 0.55 instead of 5.28 / 3.27 / 0.74. The conclusions do not change. Search counts and accuracy do not depend on this metric.
  • Evaluated only with a Wikipedia BM25 search tool and English factoid questions.

Evaluation

  • Questions: 72 per set, 504 in total, from the standard search-agent QA benchmarks (the Search-R1 / FlashRAG set), taken from RUC-NLPIR/FlashRAG_datasets.
    • Test splits: NQ, TriviaQA, PopQA, Bamboogle.
    • Dev splits: HotpotQA, 2WikiMultihopQA, MuSiQue.
    • Each split is shuffled with a fixed seed (0) and the first 72 questions are taken. Questions and gold answers are used as published.
  • Agent: Claude Code 2.1.325, headless, as a model-agnostic harness.
    • LFM models are served through llama.cpp b12000 (llama-server --jinja, Anthropic Messages API, temperature 0.6, top_p 0.95, 32k context).
    • Haiku 5.5 runs in the same harness.
  • Tool: one tool, web_search. It is BM25 over the DPR Wikipedia dump (21M passages) and returns the top 5 passages. Each run is limited to 12 calls.
  • Prompt: "Answer the following question. You can use the web_search tool to look things up. When you are done, end your reply with a final line in the form: Answer: ".
  • Accuracy: an LLM judge, Gemini 3.8 Flash run through the agy CLI, compares the answer with the gold answers. The same judge graded every model. Cover and EM are given for reference.
  • "Answer found": the BM25 search is deterministic, so every logged query was replayed. A query counts as a hit when a gold answer string appears in its top-5 passages.

Per benchmark, accuracy (judge):

set base this model Haiku 5.5
NQ 0.667 0.681 0.694
TriviaQA 0.833 0.847 0.889
PopQA 0.458 0.417 0.500
HotpotQA 0.750 0.736 0.694
2WikiMultihopQA 0.667 0.708 0.611
MuSiQue 0.347 0.347 0.458
Bamboogle 0.625 0.667 0.806
all 0.621 0.629 0.665

How it was made

  1. The base model's own runs on training questions. The base answered 500 questions from the train splits of NQ, TriviaQA, HotpotQA, 2Wiki and MuSiQue in the same harness. These questions share no ids and no question text with the evaluation. Every query was replayed to find the first search whose results contain the answer.
  2. Decision points. Each turn of a run is a decision: answer now, or search again. The pairs share the model's exact context up to that turn, including its reasoning so far, and differ only from the decision on.
    • Post-hit pairs (183): taken right after the answer appeared in the results.
      • chosen: the model's own continuation that stops and answers correctly. It was sampled from the same state, and only the first word after the reasoning was fixed.
      • rejected: the continuation the model actually produced, which searched again.
    • Contrast pairs (123): taken before the answer was found, or when it was never found.
      • chosen: search again.
      • rejected: a wrong answer the model gave when made to stop at that point.
    • These pairs keep the model from simply learning "never search".
    • Several filters removed pairs whose "wrong" answer was actually right: a paraphrase of the gold, a long but correct answer, or an answer already present in the retrieved passages.
  3. Training. DPO with the sigmoid loss, beta 0.1. LoRA rank 16, alpha 32, on all linear layers.
    • Learning rate 3e-5 with a cosine schedule, 8 pairs per step, 2 epochs (68 steps), bf16, 39 minutes on one L4.
    • The reference model is the base with the adapter disabled.
    • 35 pairs (28 questions) were held out. Preference accuracy on them went from chance (margin 0 at the start) to 0.83: post-hit 0.88, contrast 0.73.
    • The adapter was merged into the base weights. The GGUF (Q8_0) is converted from these merged weights, and it is the exact file that was evaluated.

Usage

The model uses the LFM3 chat template, tool calling and reasoning, unchanged from the base. With transformers:

from transformers import AutoModelForCausalLM, AutoTokenizer
tok = AutoTokenizer.from_pretrained("AmaLS367/LFM3-1.7B-Focused-Search", trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained("AmaLS367/LFM3-1.7B-Focused-Search", trust_remote_code=True, dtype="bfloat16")

With llama.cpp: llama-server -m LFM3-1.7B-Focused-Search-Q8_0.gguf --jinja --temp 0.6 --top-p 0.95.

License

The LFM Open License v1.0, same as the base model. These weights are a modified version of LiquidAI/LFM3-1.7B: the LoRA adapter described above is merged into all linear layers. Commercial use by legal entities with annual revenue of $10M or more is not licensed (see the license, section 5).

Downloads last month
52
Safetensors
Model size
2B params
Tensor type
BF16
ยท
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for AmaLS367/LFM3-1.7B-Focused-Search

Adapter
(43)
this model
Adapters
1 model
Quantizations
1 model