Reproduce “TTPA: Token-level Tool-use Preference Alignment Training Framework with Fine-grained Evaluation” on OpenResearch
Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.
Universal app for Apple silicon and Intel. Requires macOS 11 or later.
About this paper
Chengrui Huang, Shen Gao, Zhengliang Shi, Dongsheng Wang, Shuo Shang
Researchers from the University of Electronic Science and Technology of China and Shandong University developed TTPA, a framework that enhances Large Language Model tool-use by focusing on token-level preference alignment. It achieved state-of-the-art or comparable performance on ToolBench and Berkeley Function-Calling Benchmarks, demonstrating superior fine-grained accuracy in tool call generation while preserving general LLM capabilities.
Key insights
- Aligning LLMs with fine-grained, token-level preferences is critical for achieving robust and perfectly formatted tool calls, significantly reducing execution errors.
- A 'reversed' approach to synthetic data generation (answer-first, then query) can effectively guarantee answerability and prevent data leakage, yielding higher quality training data.
- Precise, error-oriented scoring at the token level offers a more discriminative and effective signal for preference optimization than coarse, trajectory-level evaluations.
Summary by alphaXiv.
Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.