r/computervision • • Oct 27 '26

Research Publication I made an open-source Jev for object detection 👀

TypeSafe recently added a Box question type to Jev: you describe something in an image in plain words and get back one bounding box with a confidence. It’s closed and API-only, so I built an open version: LOCUS (Locate Once, Check Until Settled).

The weights are open (2B and 0.8B) so you can run them on your own GPU

The problem: VLMs normally write a box out as text, one token at a time. That’s precise but slow, about 18 steps per box. A small regression head can predict the whole box in one pass, which is fast, but the edges come out loose.

The idea: use both. The head makes a quick draft, then the same model checks every draft token in parallel and fixes the ones it disagrees with, repeating until nothing changes. The final box is exactly what the model would have decoded on its own, in about 5.6 steps instead of 18.

Results (RefCOCO / RefCOCO+ / RefCOCOg):

  • Same weights, Acc@0.9 goes from 54.9 → 59.1 with verification
  • +4.52 Acc@0.9 over Jag (strongest open regression-head model) at the same size and training budget
  • 1.5x faster than vLLM decoding the exact same tokens

Use it on your own data: the released models are trained on RefCOCO, but you can fine-tune them on your own dataset (images, a description and a box for each). The repo covers full fine-tuning and LoRA, so a smaller GPU works too.

Limitations: a pure regression head is still faster, and since it’s trained only on RefCOCO it struggles with very small objects. Fine-tuning on your own domain is the fix there.

Not affiliated with TypeSafe. Since Jev’s Box is API-only, I couldn’t evaluate it under the same conditions, so all comparisons are against open models. Happy to answer questions.

245 Upvotes

28 comments sorted by

26

u/hellobutno Oct 27 '26

This is quite a bit different from JEV

5

u/LimitlessSaint Oct 27 '26

Fair point, it’s a different design. I only meant that Jev, Jag and LOCUS all always return a box with no “no target” option, not that they work the same way. LOCUS uses its box head as a draft, and the model then checks that draft with its own coordinate tokens. My goal was an open alternative to the Box primitive in Jev.

1

u/hellobutno Oct 27 '26

Yeah still neat, just I'm personally looking to be able to use all of JEV's feature to reduce overall number of models being run.

1

u/LimitlessSaint Oct 27 '26

Makes sense. The next step would definitely be unified model for all primitives

7

u/bykof Oct 27 '26

1

u/LimitlessSaint Oct 27 '26

Nice, this looks really interesting, I’ll test it out.

2

u/tenkei_01 Oct 27 '26

Gave you an star as well. The JEV style head is good for attribution, verification, but otherwise it is a little bit waste of potential. Sure for LLMs decision is good, but for Vision I think there are much more interesting use-cases.

3

u/I-am_Sleepy Oct 27 '26

So vLLM + CenterNet?

3

u/LimitlessSaint Oct 27 '26

Closer to DETR, really. Think of it as DETR with only one query. The [BOX] token is that query, and it looks over the image features and spits out a single box. The CenterNet bit is only that the attention ends up peaking around the object’s centre, kind of like a heatmap, but it’s never trained as one. And since there’s just one query, it’s the text that decides which object it goes after.

1

u/cleversmoke Oct 27 '26

Awesome work!! I have some ideas to apply a lightweight Jev model like this. Thank you!

1

u/LimitlessSaint Oct 27 '26

Thanks, and you're welcome

1

u/MultiheadAttention Oct 27 '26

Interesting. Did you test it on more nuanced data? E.g. medical imaging, engineering blueprints.. Also how does it handle false requests? What it will answer if you ask for a "man on the left" on image with the elephants?

1

u/LimitlessSaint Oct 27 '26 edited Oct 27 '26

Thanks, both are good questions, and I’m planning more work in both directions.

LOCUS is trained only on RefCOCO, RefCOCO+ and RefCOCOg, which are all natural COCO photos. The only out-of-domain test so far is Ref-L4. Its Objects365 images have much smaller targets than anything in RefCOCO, and on those LOCUS and Jag both score well below the zero-shot base model. So I’d expect medical images or blueprints to need fine-tuning. The repo already supports training on your own data (a JSONL file with image, expression and box), so that’s easy to try. I do want to look at specialized domains properly.

On false requests: right now LOCUS always returns a box. It has no “no target” output. The other models in this category behave the same way. Jev and Jag always output a box, and Jag's head gives no confidence score at all. LOCUS at least gets an IoU-aware confidence from its head, which you could threshold to reject answers. But that score was only calibrated on RefCOCO, where a target always exists, so I don’t want to claim it handles this yet. Proper rejection is next on my list. The draft-and-verify setup should help here, because when the verifier disagrees with the draft, that’s a second signal on top of the head’s confidence.

If you have a domain or dataset in mind, I’d love to hear it.

1

u/MultiheadAttention Oct 27 '26

So the main use case of this model is when you already know what objects present on the image, and you want to know where are they, right?

1

u/LimitlessSaint Oct 27 '26

Yeah, it's more for the "where" questions. Although I plan on training it on data with no-target examples and observe the behavior afterwards. The closest dataset to RefCOCO with this requirement is gRefCOCO.

1

u/tenkei_01 Oct 27 '26

u/LimitlessSaint I gave you the first start 🎉

What I liked: Decoding is waste of effort for vision tasks, similar to what JEV did, by replace the decode head you can optimize the performance greatly!

What I didn't get: If both grounding and corrections use the same model backbone, then what is the advantage of the correction beside repetition? I didn't check, but I'm betting that you can achieve the same result simply using the very same regression head.

Some Opinion: I think Qwen is a little bit more accurate when outputting the boxes in normalized space [0, 1], though the [0, 1000] space is also very good (it might be bias in my dataset though so please test it yourself).

1

u/LimitlessSaint Oct 27 '26

We actually found decoding to be the more precise option. It’s just slow. LOCUS keeps the decoded answer and gets there in fewer passes, because the head drafts the tokens and the model only checks them. If you only care about speed, a plain regression head is still faster.

The head and the verifier read the box out in different ways. The head regresses it from a single hidden state. The verifier is the model writing its own coordinate tokens, each one conditioned on the ones before it. With exact acceptance you get the same box greedy decoding would give. We ran head-only on the same weights: it ties or wins at Acc@0.5, but verification adds +4.3 (2B) and +6.1 (0.8B) at Acc@0.9. ground() returns both boxes, so you can use either.

I’ll definitely test the normalization. We picked [0, 1000] because the base model was pretrained on it, and we never compared it against [0, 1]. It’s a simple experiment: the head and verifier train together, so I’ll retrain both on [0, 1] targets and look at Acc@0.9, where any difference should show up. Floats take more tokens per box, so verification gets a bit more expensive, and I’ll report that too. I’ll post the results here. If you have numbers from your dataset, I would be very interested to see them so we can compare.

1

u/tenkei_01 Oct 27 '26

It's not much, 0910 (normalized) vs 0.894 (0-1000). So for +1.5 it might not worth the extra cost.

As for correction, again I didn't check in depth, but my first impression was that if your model is not mixture of expert (you run the entire graph every time), then how come one head is more accurate than the other head? I think it is mostly because your new head is not tuned properly to the hidden state of the base model, so the model native head has the edge here.

Again all my speculations, I will check it later in details.

1

u/metatron7471 Oct 27 '26

Can it only give one bbox per query?

1

u/LimitlessSaint Oct 27 '26

For now, yes. It gives one box per expression. You can still pass many expressions for the same image in one ground() call: they share one prefill, so it stays fast.

1

u/bfyvfftujijg Oct 27 '26

Can you give us the really basic tldr?

My interpretation of the whole Jev thing is you take a standard VLLM and replace its heavy token-generating decoder with a lightweight decoder that only outputs a specific shape (like 4 numbers equating to a bounding box) AND a calibrated confidence number. It can run multiple times with different random seeds to produce a distribution weighted by confidence of each output.

Is that roughly correct?

And what’s the advantage over a traditional object detection model trained on tons of classes?

1

u/LimitlessSaint Oct 27 '26

A VLM normally writes a box out one number-token at a time. That’s accurate but slow, about 18 steps. LOCUS adds a small head that guesses the whole box in one shot. The VLM then checks that guess all at once, keeps the parts it agrees with, and fixes the rest. That takes about 5–6 passes instead of 18. You get the same box the VLM would have written on its own, just faster, plus a confidence score.

A detector finds categories like “person” or “car”. LOCUS (similar to some other zero-shot models) can also find specific things you describe, like “the guy in the red shirt next to the bus”.

1

u/bguberfain Oct 27 '26

Looks good. Tnks for sharing. I only missed a comparison chart with acc vs timing (or fps). Also, it is worth polishing a bit more and publish on Hacker News.

1

u/agonizerq Oct 27 '26

I'll try it, don't hack me :v

1

u/Flyward_Aerospace Oct 28 '26

The number I'd want before putting this near a device is the pass count distribution, not the mean. Check Until Settled means the work per image is data dependent, so 5 to 6 on average is fine on a desktop and rough on a fixed frame budget where you have to size for the worst case. Do you cap the iterations, and what does p99 look like on the small-object Ref-L4 images you mentioned? If the tail runs out to 12 then the comparison against an 18 step decode is a lot closer than it reads.

1

u/Harshit_Ahluwalia 26d ago

If you want to learn more about JEV, here's a workshop for you at 30% discount: https://luma.com/i3qtcion?coupon=HARSH30

1

u/Potential-Quiet-6018 Oct 29 '26

there are drex/laya open weights lol