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

🔍 Read the full analysis: Fine-tuning AI Models: How 350M Parameters Can Deliver More Structured Results on ThorstenMeyerAI.com

TL;DR

Liquid AI has published an open, low-cost fine-tuning recipe for its 350-million-parameter LFM2.5 model, using Group Relative Policy Optimization (GRPO). This process improves schema compliance on the IFStruct benchmark from 22.6% to 29.7% with only around 500 samples and 100 steps, accessible on free-tier hardware. The approach aims to demonstrate that small models can achieve performance comparable to larger models for structured output tasks.

Liquid AI has publicly released a low-cost, reproducible fine-tuning recipe that significantly improves the schema compliance of its 350-million-parameter LFM2.5 model, as detailed in the original analysis. Using Group Relative Policy Optimization (GRPO), the method raises the model’s score on the IFStruct benchmark from 22.6% to 29.7% after roughly 500 training samples and 100 steps, all executable on free-tier GPU services like Colab and Kaggle. This development underscores how small models can be adapted for structured output tasks with minimal resources, making advanced fine-tuning accessible to a broader developer base.

The core of the new approach involves fine-tuning the LFM2.5-350M model using the GRPO method, implemented via the TRl library on a GPU. The training process used approximately 500 samples and 100 steps, designed to be low-cost and quick enough for free-tier hardware. The evaluation was conducted locally with llama.cpp serving the model through an OpenAI-compatible endpoint, and the results showed a notable improvement in schema adherence, from 22.6% to 29.7% on the IFStruct benchmark.

Liquid AI’s data for fine-tuning came from NVIDIA’s Nemotron-RL-structured dataset, which pairs prompts with JSON schemas. To improve format compliance, the team augmented prompts with instructions to return outputs inside fenced code blocks in 40% of cases. The analysis revealed that the most common errors involved missing required fields, incorrect item counts, and type mismatches, with failure rates varying across output formats such as JSON, YAML, and wrapper-key structures. The baseline local performance closely matched the original benchmark’s reported 21.1%, indicating measurement consistency across different serving stacks.

The significance of this work lies in its demonstration that small, inexpensive models can be fine-tuned effectively for structured output tasks, an area traditionally dominated by large, costly models. The modest but meaningful gain shows that task-specific adaptation is feasible without extensive compute resources, lowering barriers for developers and smaller organizations. The approach’s reproducibility and open-source availability further support its potential for broader adoption and experimentation in the AI community.

At a glance
reportWhen: announced March 2024
The developmentLiquid AI’s new fine-tuning recipe enhances a small language model’s ability to produce structured, schema-compliant outputs, with significant performance gains demonstrated on a public benchmark.
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 Cost-Effective Fine-Tuning for Small Models

This development matters because it shows that small language models, often limited by their size, can be improved to reliably produce structured, schema-compliant outputs—a critical capability for integrating AI into real-world systems. The low resource requirement makes this approach accessible to developers without large-scale infrastructure, democratizing advanced AI customization. As schema adherence is vital for downstream tasks like data extraction, automation, and interfacing with other systems, these improvements can expand the practical deployment of small models in enterprise and research settings.

Furthermore, the demonstration that a roughly seven-percentage-point increase is achievable with minimal data and steps suggests that targeted fine-tuning can bridge some performance gaps between small and large models. This could influence future model development strategies, emphasizing task-specific adaptation over sheer size, and potentially lead to more efficient AI solutions across industries.

Amazon

JSON schema validation tool

As an affiliate, we earn on qualifying purchases.

As an affiliate, we earn on qualifying purchases.

Background on Fine-Tuning and Structured Output Benchmarks

Prior to this work, most benchmarks for language models focused on broad reasoning, extraction, or generation metrics, often embedding structured output evaluation within larger tasks. Structured output, such as JSON or YAML, is essential for many practical applications but remains challenging for small models to produce reliably. Larger models trained with extensive data and compute resources typically perform better in these tasks, but their high cost limits accessibility.

Liquid AI’s recent efforts build on the trend of making AI more accessible through open-source tools and low-resource fine-tuning. The IFStruct benchmark, used here for evaluation, is an open-source test designed to measure schema adherence explicitly, providing a clear metric for structured output performance. The baseline performance of the LFM2.5 model before fine-tuning was around 22.6%, consistent with the original benchmark report, indicating room for improvement through targeted methods like GRPO.

This context underscores the importance of developing efficient, small-scale fine-tuning techniques that can boost performance without requiring large datasets or expensive infrastructure, aligning with broader goals of democratizing AI development.

“Our goal was to show that small models can be effectively fine-tuned for structured output tasks using minimal resources, making advanced AI more accessible.”

— Thorsten Meyer, Liquid AI

Amazon

small language model fine-tuning kit

As an affiliate, we earn on qualifying purchases.

As an affiliate, we earn on qualifying purchases.

Limitations and Unanswered Questions About the Approach

It remains unclear how well these gains will generalize beyond the specific IFStruct benchmark or with different types of structured-output tasks. The experiment was conducted using a particular serving stack and evaluation setup, which may introduce measurement variance—evidenced by the slight difference between local baseline (22.6%) and original benchmark (21.1%).

Additionally, the stability of the improvements across different model checkpoints, quantizations, or larger sample sizes has not been tested. The authors acknowledge that the results are based on a minimal, reproducible pipeline, and further research is needed to confirm whether similar gains are achievable in more complex or varied settings.

It is also not clear how these improvements compare directly with larger models trained with more extensive data, as the guide does not include head-to-head benchmarking against such models.

Amazon

GPU cloud service for AI training

As an affiliate, we earn on qualifying purchases.

As an affiliate, we earn on qualifying purchases.

Next Steps for Validation and Broader Application

The immediate next step is for the community to reproduce the fine-tuning process using the provided GitHub notebook, testing its effectiveness across different structured-output tasks and datasets. Scaling the sample size and training steps, experimenting with quantized models, and applying the GRPO method to other small models are logical follow-ups.

Further validation on various benchmarks and real-world applications will help determine the robustness and generalizability of these gains. Researchers and developers may also explore combining this approach with other fine-tuning techniques or integrating it into larger pipelines to assess its scalability and impact.

Overall, the open-source nature of the recipe invites collaborative testing, which will clarify the method’s broader utility and potential for mainstream adoption.

Amazon

structured data output AI tools

As an affiliate, we earn on qualifying purchases.

As an affiliate, we earn on qualifying purchases.

Key Questions

Can this fine-tuning approach be applied to larger models?

While the guide focuses on a 350M parameter model, the principles behind GRPO and task-specific fine-tuning can potentially be adapted for larger models, though results and resource requirements may differ.

Does this improvement make small models competitive with larger models?

The results show a significant boost in schema compliance, but the authors clarify that their goal is to demonstrate potential, not to claim parity with large, extensively trained models. Further testing is needed for direct comparison.

What are the main benefits of this low-resource fine-tuning method?

It allows developers to improve small model performance on structured tasks using minimal data, hardware, and cost, making advanced AI customization more accessible.

Is the fine-tuning process available for public use?

Yes, the full pipeline and instructions are published on GitHub, enabling anyone to reproduce and experiment with the method.

What are the limitations of the current results?

The improvements are demonstrated on a specific benchmark with limited data; their generalizability to other tasks, models, or real-world scenarios remains to be validated.

Primary source: Hugging Face · via ThorstenMeyerAI.com

You May Also Like

Revolutionize Your AI Results: The Two Settings That Boosted Our Scores Threefold

OpenAI reports that enabling two specific settings on its model tripled its performance on the ARC-AGI-3 benchmark, highlighting sensitivity of AI evaluation setups.

How Artificial Intelligence Is Shaping The Future Of Weather Forecasting In China

Huawei Pangu highlights AI efforts in China’s weather prediction sector, but operational deployment and performance details remain unconfirmed.

Data Center Surges In Global Coverage

Data center mentions in global news sources have increased 41-fold, highlighting rising interest and investment in infrastructure worldwide.

Google Surges In Global Coverage

Google’s international media mentions have surged, with GDELT reporting 130 mentions in recent days, indicating a major increase in global visibility.