🔍 Read the full analysis: Fine-tuning A 350M Model For Better Structured Outputs In 100 GRPO Steps on ThorstenMeyerAI.com
TL;DR
Liquid AI has published a public, inexpensive recipe to fine-tune its 350-million-parameter LFM2.5 model with Group Relative Policy Optimization (GRPO). This process improves the model’s structured output accuracy on the IFStruct benchmark from 22.6% to 29.7% using just 100 steps and around 500 samples, making it accessible for small-scale hardware like free-tier Colab or Kaggle GPUs.
Liquid AI has publicly released a low-cost, reproducible method to improve the structured-output compliance of its 350M-parameter LFM2.5 model through fine-tuning with Group Relative Policy Optimization (GRPO). The process, which requires only about 100 steps and roughly 500 training samples, increases the model’s score on the IFStruct benchmark from 22.6% to 29.7%, demonstrating that small models can be effectively task-specific tuned on modest hardware.
The method involves fine-tuning the LFM2.5-350M model using a publicly available recipe on GitHub, pairing the GRPO algorithm with the TRL library on a GPU, and evaluating locally on a MacBook Pro with an Apple M5 Max chip. The training data originates from NVIDIA’s Nemotron-RL instruction-following dataset, which pairs prompts with JSON Schemas and expected fields. To improve format adherence, about 40% of prompts were augmented with instructions to return output within code blocks, training the model to follow explicit format instructions rather than emitting raw JSON.
Baseline performance was assessed by evaluating the model on the full 2,000-sample IFStruct test set, with initial results showing 22.6% accuracy (452/2000). The fine-tuning process, involving roughly 500 samples and 100 GRPO steps, raised this score to 29.7%. The most common errors involved missing required fields, incorrect item counts, and type mismatches, with notable variation across different output types—ranging from 4.3% accuracy on recipes to 45.8% on event ticket bookings.
The results highlight that even minimal, low-cost fine-tuning can significantly improve a small model’s ability to produce schema-compliant outputs, which is crucial for deploying language models in real-world applications requiring structured data. The entire process is designed to be accessible, requiring only free-tier hardware and open-source tools, making it feasible for individual developers and small teams.
Impact of Low-Cost Fine-Tuning on Small Models
This development demonstrates that small language models can be effectively task-tuned to improve structured output compliance without large-scale training resources. The 7-point increase in IFStruct scores, achieved with just 100 GRPO steps on modest hardware, lowers the barrier for developers to create reliable, schema-adherent models for practical applications. It also suggests that task-specific fine-tuning can bring smaller models closer to the performance levels of larger, more expensive models for specific tasks, potentially reducing the need for costly infrastructure in deploying structured data tasks.
As an affiliate, we earn on qualifying purchases.
Background on Fine-Tuning and Structured Output Benchmarks
Prior to this release, most benchmarks for language models focused on broad reasoning or extraction tasks, with structured output compliance often embedded within larger metrics. The IFStruct benchmark, maintained by Liquid AI, provides a dedicated measure of a model’s ability to generate valid, parseable outputs in formats like JSON and YAML, which is critical for integrating language models into downstream systems. Larger models, such as GPT-3 or PaLM, have demonstrated high performance in this area, but their size and cost limit accessibility for smaller teams.
The approach taken by Liquid AI builds on existing work in instruction tuning and reinforcement learning, specifically employing the Group Relative Policy Optimization (GRPO) algorithm, which has shown promise in aligning model outputs with specific formatting and schema requirements. This release marks a shift toward democratizing structured output tuning, emphasizing that even small models can be improved with targeted, lightweight procedures.
“Our goal was to show that small models can be task-specific tuned efficiently, achieving meaningful improvements with minimal compute and data.”
— Thorsten Meyer, Liquid AI
Limitations and Unanswered Questions about the Approach
It remains unclear how well these gains generalize beyond the specific IFStruct benchmark or whether similar improvements can be achieved on other structured-output tasks. The results are based on a limited number of samples and steps, and the evaluation was conducted locally, which may introduce measurement variance. The long-term stability of the fine-tuned model’s performance and its robustness across different serving stacks or quantization levels are also not yet established. Additionally, the claim that small models can match larger models in schema compliance is presented as a motivation rather than a direct comparison, so further benchmarking is needed to substantiate this assertion across diverse tasks.
Next Steps for Development and Validation
Future work may include scaling the sample size and number of fine-tuning steps to further improve performance, testing the recipe on other small models or different structured-output benchmarks, and evaluating robustness under various deployment conditions. Researchers and developers are encouraged to reproduce the process, experiment with different data augmentation strategies, and explore applying GRPO to other tasks requiring strict output formats. Additional comparative studies against larger models or more complex fine-tuning regimes are also anticipated to validate and extend these initial results.
Key Questions
Can this fine-tuning method be applied to larger models?
The current focus is on small models like the 350M parameter LFM2.5. While the principles may extend, the recipe and results are specifically demonstrated at this scale. Larger models may require different tuning strategies and resources.
Is the fine-tuning process suitable for real-world deployment?
Yes, the process is designed to be lightweight and accessible, making it suitable for deployment in systems where schema adherence is critical, especially when hardware resources are limited.
How significant is the performance improvement in practical terms?
The roughly 7-point increase on the IFStruct benchmark indicates a meaningful enhancement in schema compliance, reducing errors like missing fields or wrong formats, which is vital for downstream system integration.
Will this approach work with other structured data tasks?
While promising, the method has been demonstrated only on the IFStruct benchmark. Its effectiveness on other tasks needs further testing and validation.
Is the full fine-tuning recipe publicly available?
Yes, the complete pipeline, including code and instructions, is published on GitHub, enabling reproduction on free-tier hardware like Colab or Kaggle.
Primary source: Hugging Face · via ThorstenMeyerAI.com