Views
No views yet
| Method | Type | TED (Structure) ↓ | DLA (Accuracy) ↑ | Cost ($/doc) ↓ | Latency (s) ↓ |
|---|---|---|---|---|---|
| GPT-4o | General LLM* | 6.22 | 29.03% | 0.0210 | - |
| GPT-4.1 | 6.35 | 37.90% | 0.0168 | - | |
| OpenAI o3 | 5.51 | 28.63% | 0.0168 | - | |
| OpenAI o4-mini | 5.87 | 32.66% | 0.0092 | - | |
| Claude-3.7-Sonnet | 6.65 | 35.08% | 0.0286 | - | |
| Claude-4 | 5.08 | 43.15% | 0.0286 | - | |
| Gemini-2.5-flash | 5.82 | 27.82% | 0.0040 | - | |
| Gemini-2.5-pro | 5.61 | 32.66% | 0.0162 | - | |
| DeepSeek-V3 | 6.32 | 33.47% | 0.0012 | - | |
| DeepSeek-R1 | 6.26 | 30.65% | 0.0046 | - | |
| Qwen3-32B | 6.52 | 26.21% | 0.0012 | 10.17† | |
| Qwen3-235B | 7.67 | 19.10% | 0.0012 | - | |
| Jina-Reader | Parser API | 17.04 | - | 0.0004 | - |
| Firecrawl | 16.81 | - | 0.0007 | - | |
| Our Method (LingoEDU) | Specialized | 4.77 | 49.60% | 0.0007 | 1.20† |
1from vllm import LLM
2from vllm.config import StructuredOutputsConfig
3from vllm.sampling_params import SamplingParams, StructuredOutputsParams
4
5if __name__ == "__main__":
6
7 model_name = "deeplang-ai/LingoEDU-4B"
8
9 vllm_llm = LLM(
10 model=model_name,
11 structured_outputs_config=StructuredOutputsConfig(backend="guidance")
12 )
13 tokenizer = vllm_llm.get_tokenizer()
14
15 system_prompt = ...
16 article_input = ...
17 guidance_grammar = ...
18
19 prompt_str = tokenizer.apply_chat_template(
20 [
21 {
22 "role": "system",
23 "content": system_prompt,
24 },
25 {
26 "role": "user",
27 "content": article_input,
28 },
29 ],
30 tokenize=False,
31 add_generation_prompt=True,
32 enable_thinking=False,
33 )
34
35 output = vllm_llm.generate(
36 prompts=[prompt_str],
37 sampling_params=SamplingParams(
38 temperature=0.0,
39 top_k=-1,
40 top_p=1.0,
41 max_tokens=8*1024,
42 skip_special_tokens=False,
43 n=1,
44 structured_outputs=StructuredOutputsParams(grammar=guidance_grammar),
45 ),
46 )[0].outputs[0].text1@misc{zhou2025contextedusfaithfulstructured,
2 title={From Context to EDUs: Faithful and Structured Context Compression via Elementary Discourse Unit Decomposition},
3 author={Yiqing Zhou and Yu Lei and Shuzheng Si and Qingyan Sun and Wei Wang and Yifei Wu and Hao Wen and Gang Chen and Fanchao Qi and Maosong Sun},
4 year={2025},
5 eprint={2512.14244},
6 archivePrefix={arXiv},
7 primaryClass={cs.CL},
8 url={https://arxiv.org/abs/2512.14244},
9}