AIThis post was created with the assistance of artificial intelligence (AI).

🔍 Read the full analysis: Enhancing 350M AI Models For More Precise Structured Outputs In 100 GRPO Steps on ThorstenMeyerAI.com

TL;DR

Liquid AI has published an open-source, low-cost fine-tuning recipe that improves a 350-million-parameter language model’s ability to produce schema-compliant structured outputs. The method, using just 100 GRPO steps and about 500 samples, raises performance on the IFStruct benchmark from 22.6% to 29.7%. The approach is accessible on free-tier hardware, making small-model fine-tuning more practical for developers.

Liquid AI has publicly released a low-cost, reproducible fine-tuning method that enhances the structured output capabilities of its 350-million-parameter LFM2.5 model, increasing its score on the IFStruct benchmark from 22.6% to 29.7%. The approach uses only 100 GRPO steps and approximately 500 training samples, making it feasible on free-tier GPUs such as those provided by Colab or Kaggle. This development demonstrates that small models can be task-optimized effectively without extensive resources, which is significant for developers working with limited hardware budgets.

The core of the method involves applying Group Relative Policy Optimization (GRPO) during fine-tuning, utilizing the TRL library on a GPU, with local evaluation on a MacBook Pro equipped with an Apple M5 Max chip. The entire process is designed to be accessible and cost-effective, with the code and instructions openly available on GitHub. The base model was initially evaluated using a BF16 GGUF build of LFM2.5-350M, with an initial accuracy of 22.6% on the 2,000-sample IFStruct test set, passing 452 samples. After roughly 500 samples and 100 steps of GRPO, the model’s score improved to 29.7%, representing a roughly 7-point increase.

Training data was sourced from NVIDIA’s Nemotron RL instruction-following dataset, which pairs prompts with JSON Schemas and expected output formats. To improve format adherence, 40% of prompts were augmented with instructions to return output within fenced code blocks, training the model to follow format instructions more reliably. Error analysis revealed that most failures involved missing required fields, incorrect item counts, and type mismatches, with performance varying significantly across different output types—from 45.8% on event ticket bookings to just 4.3% on recipes.

At a glance
release / reportWhen: announced March 2024
The developmentLiquid AI’s new fine-tuning recipe using Group Relative Policy Optimization significantly improves a small language model’s structured output accuracy on the IFStruct benchmark, with results available publicly and reproducibly.
At a glance
reportWhen: recently published; results reproducibl…
The developmentLiquid AI released a public fine-tuning guide and notebook showing that 100 GRPO training steps on ~500 samples measurably improve structured-output compliance in a 350M-parameter model.

Impact of Low-Cost Fine-Tuning on Small Models

This development matters because it demonstrates that small language models can be task-optimized for structured output compliance with minimal resources. The roughly 7-point improvement on the IFStruct benchmark, achieved through a straightforward, inexpensive process, lowers barriers for developers who lack access to large-scale training infrastructure. It suggests that small models, when properly fine-tuned, can approach the performance levels of larger models on specific tasks, expanding the accessibility of high-quality AI solutions for smaller teams and projects.

Amazon

GPU cloud computing for AI training

As an affiliate, we earn on qualifying purchases.

As an affiliate, we earn on qualifying purchases.

Background on Structured Output and Benchmarking

Structured output is a common requirement in real-world applications, such as form filling, data extraction, and command execution, where models must produce parseable, format-compliant data. Historically, benchmarks like IFStruct have measured a model’s ability to generate valid JSON, YAML, or list outputs, but such metrics are often embedded within broader reasoning tasks. Prior to this work, small models typically struggled with format adherence, often passing fewer than 20% of test samples. Liquid AI’s recent publication builds on the idea that targeted fine-tuning can substantially improve these capabilities, even on models with only 350 million parameters, using minimal data and compute.

“Our approach shows that with just 100 GRPO steps and around 500 samples, small models can significantly improve structured output compliance, making task-specific fine-tuning accessible and affordable.”

— Thorsten Meyer, Liquid AI

Amazon

small AI model fine-tuning tools

As an affiliate, we earn on qualifying purchases.

As an affiliate, we earn on qualifying purchases.

Uncertainties About Generalization and Stability

It remains unclear how well these improvements generalize across other structured-output tasks or different evaluation benchmarks. The reported gains are specific to the IFStruct dataset and may vary with different data distributions, model quantizations, or serving stacks. Additionally, the stability of the improvements over multiple runs or with larger sample sizes has not yet been established, and the comparison to larger models remains qualitative rather than quantitative.

Amazon

AI model evaluation benchmarks

As an affiliate, we earn on qualifying purchases.

As an affiliate, we earn on qualifying purchases.

Next Steps for Validation and Broader Application

Future work will likely involve testing the GRPO fine-tuning recipe on other small models and structured tasks, evaluating its robustness across various deployment setups, and exploring scaling up sample sizes or steps. Liquid AI may also investigate applying this method to other benchmarks and real-world applications, aiming to confirm the generality of the approach and its potential to democratize task-specific model tuning for small-scale AI projects.

Amazon

machine learning development hardware

As an affiliate, we earn on qualifying purchases.

As an affiliate, we earn on qualifying purchases.

Key Questions

Can this fine-tuning method be applied to other small models?

Yes, the open-source recipe is designed to be adaptable to various small models beyond LFM2.5-350M, provided they support similar fine-tuning frameworks.

How much compute is needed for this fine-tuning process?

The entire process can be completed on free-tier GPUs available via Colab or Kaggle, making it accessible for developers with limited resources.

Will this approach work for tasks other than schema compliance?

While demonstrated on structured output tasks like JSON adherence, the underlying principle of task-specific fine-tuning with GRPO could potentially be adapted for other output formats or tasks, though further testing is needed.

How does this improvement compare to larger models?

The publication does not provide direct head-to-head comparisons with larger models; it primarily shows that small models can be significantly improved for specific tasks with minimal resources, bridging some performance gap.

Primary source: Hugging Face · via ThorstenMeyerAI.com

You May Also Like

Claude Outage: Tenth Disruption in 12 Days Exposes Anthropic Infrastructure Strain

A recent outage affecting Anthropic’s Claude AI marks the tenth disruption in 12 days, raising concerns over infrastructure stability and service reliability.

Auto-research With Codex: How I Achieved A 232X Faster Kernel

A developer reports using AI-assisted auto-research with Codex to optimize kernel code, resulting in a 232-fold speed increase. Details are emerging.

Apple Silicon’s Quiet Memory Advantage

Apple Silicon chips offer a unique memory advantage for large AI models, enabling capacity beyond discrete GPUs at lower cost and power.

The 10 AI Mini PCs That Will Dominate 2026

A 2026 report names the MINISFORUM AI X1 Pro the best overall AI mini PC, comparing ten models from MINISFORUM, GEEKOM and GMKtec on power and price.