🔍 Read the full analysis: Unlocking Better Output Structure In 350M AI Models Via 100 GRPO Fine-tuning Steps on ThorstenMeyerAI.com
TL;DR
Liquid AI has published a free, reproducible recipe to fine-tune its 350M parameter LFM2.5 model with Group Relative Policy Optimization (GRPO). This process improves structured output compliance, raising benchmark scores from 22.6% to 29.7% with minimal resources, making small models more reliable for real-world tasks.
Liquid AI has publicly released a low-cost, reproducible fine-tuning recipe that improves the structured output accuracy of its 350-million-parameter LFM2.5 model through 100 steps of Group Relative Policy Optimization (GRPO). The results show a score increase on the IFStruct benchmark from 22.6% to 29.7%, achieved with roughly 500 training samples and designed to run on free-tier GPUs, making this approach accessible for small-scale developers and researchers.
The method involves fine-tuning the LFM2.5-350M model with a small dataset derived from NVIDIA’s Nemotron-RL-instruction-following-structured_outputs dataset, which pairs prompts with JSON schemas and expected field counts. The authors augmented prompts by instructing the model to return outputs within fenced code blocks, training it to follow format instructions rather than always emitting raw JSON. This light fine-tuning process used about 500 samples and 100 GRPO steps, completed on a GPU via the TRL library, with local evaluation on a MacBook Pro equipped with an Apple M5 Max and 36 GB of memory.
Baseline performance on the IFStruct test set was approximately 22.6%, with failures concentrated in missing required fields, wrong item counts, and type mismatches. After fine-tuning, the model’s accuracy increased to 29.7%. The evaluation involved running the model locally using llama.cpp and BF16 GGUF build, with the results closely matching the original benchmark’s reported performance of 21.1% for the base model without fine-tuning.
Impact of Cost-Effective Fine-tuning on Small Models
This development demonstrates that small, publicly available models can be significantly improved for structured output tasks with minimal resources. The 7-point increase on the IFStruct benchmark, achieved through a straightforward, inexpensive process, suggests that task-specific fine-tuning can help small models approach the performance of larger models in practical applications. This lowers barriers for developers lacking extensive training budgets and encourages more experimentation with small models in real-world systems requiring schema adherence and output accuracy.
small AI model fine-tuning toolkit
As an affiliate, we earn on qualifying purchases.
As an affiliate, we earn on qualifying purchases.
Relevance of Structured Output in AI Applications
Structured output — such as JSON or YAML formats — is vital for integrating language models into downstream systems, including data extraction, form filling, and automation workflows. Historically, small models struggle with reliably producing parseable, schema-compliant data, limiting their utility in many practical scenarios. Benchmarks like IFStruct evaluate models’ ability to generate valid, format-specific outputs, but until now, most improvements have focused on larger models or broad reasoning capabilities. Liquid AI’s recent work emphasizes that small models can be tuned effectively for this specific challenge, closing the gap with larger systems at a fraction of the cost.
The approach builds on prior research that shows targeted fine-tuning can enhance performance in narrow tasks, but its application to schema compliance with minimal resources is a notable step forward. The use of publicly available datasets and open-source tools further democratizes access to this technology, enabling wider experimentation and deployment.
“Our results show that with just 100 GRPO steps and around 500 samples, small models can significantly improve their structured output accuracy, making them more practical for real-world tasks.”
— Thorsten Meyer, Liquid AI
As an affiliate, we earn on qualifying purchases.
Uncertainties About Generalization and Broader Impact
It remains unclear how well these improvements generalize across other structured-output tasks beyond IFStruct or whether similar gains can be achieved with different models or larger datasets. The results are based on a specific setup, evaluation stack, and data augmentation scheme, which may influence the observed performance increase. Additionally, the comparison between local baseline scores and published benchmark figures suggests some measurement variance, and it is not yet confirmed if similar fine-tuning can consistently produce comparable improvements across different deployment environments or quantization schemes.
As an affiliate, we earn on qualifying purchases.
Next Steps for Reproducibility and Expansion
The authors have made their fine-tuning notebook publicly available on GitHub, inviting others to reproduce and extend the results. Future work could involve scaling the sample size and training steps, testing the approach on other small models or structured tasks, and evaluating the robustness of the improvements under different serving stacks or quantization methods. Further research may also explore whether similar techniques can narrow performance gaps in other schema-dependent applications, broadening the impact of this low-cost fine-tuning method.
As an affiliate, we earn on qualifying purchases.
Key Questions
Can this fine-tuning method be applied to larger models?
The current work focuses on a 350M parameter model, but the principles may extend to larger models. However, larger models typically require more data and compute, so the cost-benefit balance would need reassessment.
Is the fine-tuning process suitable for real-time or production environments?
While the process is lightweight and runs on free-tier hardware, deployment considerations such as inference speed, stability, and consistency across different setups still need evaluation before production use.
Does the improvement on IFStruct translate to other structured data tasks?
It is not yet confirmed. The results are promising for schema adherence, but further testing on diverse tasks is necessary to establish broader applicability.
What tools and datasets are required to replicate this fine-tuning?
The process uses the TRL library for fine-tuning, llama.cpp for local evaluation, and NVIDIA’s Nemotron-RL dataset for training data. All are publicly available, with instructions in the GitHub repository.
Primary source: Hugging Face · via ThorstenMeyerAI.com