frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Show HN: RAIF – an experimental structured I/O format for LLMs

https://github.com/skrrt-sh/raif-standard
1•truehazker•1h ago

Comments

truehazker•1h ago
I was playing around with the JSON and similar formats. I've questioned myself if it's really an optimized way to present information in and out of LLMs. Did a bit of research and experiments and came up with a solution that's essentially a new format that uses fewer tokens than JSON and TOON. Speaking of the last, it's used primarily for inputting data to the model and not making the model output in a TOON format.

None of those formats fully satisfied my curiosity, so my RAIF thing isn't just lighter on syntax, but also features a self-repair feature as a core principle. LLMs are non-deterministic and sometimes the structured output may be corrupted. jsonrepair fixes the issue, but still I wanted to push it further and make a format built around repairability. Just like a QR code (of course it works a bit differently, but still was an inspiration subject).

Numbers are nice so far. About -14% of tokens on a worst-case scenario benchmark and up to -35% tokens during normal usage. Repairing works as intended also, I'm still gathering the data on repairing cases. The most common ones so far is output truncation. Minor syntax-related errors rarely happen.

It's worth mentioning that RAIF works only as a LoRA, but I liked the results even using the small Qwen2.5-0.5B model. It builds structures noticeably more stable than the base model did on its own. Medium models handle RAIF even better and perfectly switch from JSON to RAIF using LoRAs without any artifacts.

I see RAIF as a useful thing for any self-hosted agent or LLM. Especially subagents that use smaller models.

Still very much an experiment, so any feedback and ideas welcome.

What's Going on with the Web?

https://iam.mt/whats-going-on-with-the-web/
1•thallavajhula•1m ago•0 comments

What even is food authenticity? Why we guard carbonara, and flatten chicken rice

https://iza.ac/posts/2026/06/food-authenticity/
1•infinitewalk•1m ago•0 comments

Show HN: Cordium – FOSS identity-based sandbox platform with zero-trust access

https://github.com/octelium/cordium
1•geoctl•6m ago•0 comments

Early Research Suggests a Path to Predict and Prevent Lung Cancer

https://www.nytimes.com/2026/06/04/well/lung-cancer-prevention.html
1•mhb•7m ago•0 comments

Stanford grads walk out on Google CEO Sundar Pichai speech

https://twitter.com/maattttbrown/status/2066215255987163246
5•sosomoxie•8m ago•0 comments

Nothing CEO: Phone Prices Will Rise, RAM Accounts for over 50% of Phone Costs

https://www.theverge.com/gadgets/949403/nothing-carl-pei-ram-phone-prices
1•karakoram•9m ago•0 comments

Antidepressants and antipsychotics could be alternatives to opioids, study finds

https://www.theguardian.com/society/2026/jun/14/other-medications-opioids-alternatives-study
1•bookofjoe•9m ago•0 comments

Chinese Drivers Are Using Tiny Plastic Heads to Fool Tesla Autopilot Safeguards

https://www.wired.com/story/chinese-drivers-are-using-tiny-plastic-heads-to-fool-teslas-autopilot...
1•srameshc•10m ago•0 comments

The Jqwik Anti-AI Affair

https://blog.johanneslink.net/2026/06/09/the-jqwik-anti-ai-affair/
1•dgellow•10m ago•0 comments

A New Path to Preventing Cancer

https://erictopol.substack.com/p/a-new-path-to-preventing-cancer
2•paulpauper•12m ago•0 comments

The Former GOP Operative Running a News Site for the 'Politically Homeless'

https://www.wsj.com/business/media/the-bulwark-sarah-longwell-77bc9475
2•paulpauper•13m ago•0 comments

Instagram is obsessed with me (and you)

https://denkthoughts.com/instagram-is-obsessed-with-me
1•mootdentures•13m ago•0 comments

Bob Dylan (and others) on turning 80

https://www.nytimes.com/2026/06/14/opinion/trump-turns-80.html
1•paulpauper•14m ago•0 comments

Let Me Repost

https://github.com/harrisjerico30-dotcom/G4-construct-
1•jericoharris•15m ago•0 comments

Fluorine Fermi – Monero's Biggest Update

https://fluorinefermi.club/
1•Cider9986•15m ago•0 comments

Carney Says Anthropic Ban Shows Risk of Relying on Big AI Models

https://www.bloomberg.com/news/articles/2026-06-14/carney-says-anthropic-ban-shows-risk-of-relyin...
2•root-parent•15m ago•0 comments

Repo Slop-Score

https://slopscan.ava.pet
1•cohix•16m ago•0 comments

Bran flakes classed as junk food under UK Labour health plan

https://www.pressreader.com/uk/the-sunday-telegraph/20260614/281500757946930
1•Gaishan•18m ago•0 comments

China's Universities Cut 12,000 'Obsolete' Degrees Amid Race to Embrace AI Era

https://www.scmp.com/economy/china-economy/article/3356913/chinas-universities-cut-12000-obsolete...
2•karakoram•18m ago•0 comments

Show HN: Is Fable 5 available? (it is not)

https://isfable5available.com
2•bArmageddon•21m ago•0 comments

Still: Amortized KV Cache Compaction in a Single Forward Pass

https://arxiv.org/abs/2606.07878
2•simonpure•25m ago•0 comments

Show HN: BootProof – Cryptographically prove any GitHub repo boots locally

https://github.com/bootproof/bootproof
2•Bucko1•26m ago•0 comments

The Math of Doodling [video] ravi vakil

https://www.youtube.com/watch?v=TN-G2nJlW3U
1•marysminefnuf•27m ago•0 comments

Did Anthropic ask for this?

https://www.verysane.ai/p/did-anthropic-ask-for-this
39•ad8e•31m ago•6 comments

Splinternet – encrypted P2P chat with BBS aesthetics, games and sysop

https://bbs.splinternet.org/
2•arfuzzum•34m ago•0 comments

Trump says Netanyahu 'has no fucking judgment' after Beirut strike

https://www.timesofisrael.com/trump-says-netanyahu-has-no-fking-judgment-after-beirut-strike-report/
6•tcp_handshaker•35m ago•0 comments

After Meta tapped Alexandr Wang to build new AI model, Zuckerberg has to sell it

https://www.cnbc.com/2026/06/14/meta-hired-alexandr-wang-to-build-ai-its-zuckerbergs-job-to-sell-...
2•tcp_handshaker•35m ago•0 comments

A Wild Register Appears: Hunting the 30-Year-Old World of Xeen MT-32 Crash

http://finalpatch.github.io/xeen/
3•birdculture•38m ago•0 comments

Spotify: Music and Podcasts – Apps on Google Play

https://play.google.com/store/apps/details?id=com.spotify.music&hl=en_US
1•treasure2seek•38m ago•0 comments

Jeff Geerling: "Maybe don't rip off other people's video content"

https://xcancel.com/i/status/2066253845722812916
4•DiabloD3•38m ago•0 comments