Skip to content

In the weights or beside them

Much of a field's knowledge is held as structure: catalogues, typed relations, rules and checks. This design asks whether that structure does more good inside a small model's weights or beside a frontier model, on one task family, with fixtures to be published before any arm runs, and it gives the strongest retrieval-based comparator at least equal engineering effort.

Designed

On one family of software-architecture judgement tasks, does a small model trained on a domain's structure (its pattern catalogue, rules and validators) give better-judged answers than a frontier model given the same structure through retrieval, validators and a repair loop?

At a glance
Method
Seven arms will answer the same architecture-judgement fixtures, to be published first, with the same pattern catalogue: frontier models with no catalogue, plain-text retrieval, structured retrieval, and structured retrieval with validators and repair; a small model trained on plain text; a small model trained on structure; and a frontier model consulting that small model. Two raters will score blind on a five-part rubric.
Stop rule
  • Stop if the comparison already exists, if raters cannot agree, or if retrieval with validators saturates the fixtures twice.
  • If retrieval with validators scores at least as high as the structure-trained model, the answer is negative and will be published.
  • A lead smaller than the pre-set margin will be reported as inconclusive, and a win bought at much higher build or run cost will be reported alongside that cost.
Where collaboration helps
A blind outside rater with architecture experience, openly licensed pattern sources, critique of the validators and rented GPU time.
Generated cyanotype print of a jeweller's loupe and a cut gemstone beside a large plain magnifying glass.Generated photograph of a detailed white plaster model of a river weir and sluice gate, with vermilion pins clustered along the one gate.Generated render of a single rock pinnacle mapped in fine detail and lit against an unmapped black sea floor.
Plate IA lens made for one kind of looking, beside a lens for any.One model for one problem, measured densely where the outcome is decided.One target, measured from every side. Some problems need a narrow, exact model.Generated image in a cyanotype treatment. Far Akin art direction.Generated image. Far Akin art direction, Datum look.Generated image. Far Akin art direction, Swath look.

Why this question

Models built for specific problems are one of the main ways machine learning meets a particular field. A team that maintains a standard, a taxonomy or a body of rules has two broad options. It can train a small model on that material. Or it can keep the material outside any model and hand it to a large general model at the moment of use, through retrieval, deterministic checks and a loop that repairs answers the checks reject. The choice decides what gets built, what it costs to run and keep current, and who can inspect the knowledge. It may be made on preference rather than evidence.

Work on factual knowledge favours keeping it outside. When the task is to recall information, retrieval has tended to beat fine-tuning[1]⁠[2]. Judgement is a different task. Deciding which rule applies to an untidy situation, rejecting a tempting option that does not fit, and asking for missing information when a confident answer would be unsafe are skills of application, not recall. A small model trained on many worked applications of a domain's structure might acquire them in a way that retrieval does not supply. Equally, a frontier model given the same structure and a checker might already do better. This inquiry is designed to tell those outcomes apart, and it treats the second as the default expectation.

Software architecture is the first test bed. Its pattern literature is public and long established. Each pattern comes with the forces that call for it and the costs it brings, and the common mistakes have recognisable shapes: a fashionable pattern applied where its forces are absent, a large pattern where a small one would do, a firm answer where the situation is underdetermined. Experienced practitioners can grade answers, and every test case can be published.

The same knowledge will be arranged two ways, once held inside a model and once consulted from outside, and the two arrangements will be judged on identical tasks.

What is already known

Three lines of work bear on the question.

The first compares fine-tuning with retrieval as ways of adding knowledge. Ovadia and colleagues found that retrieval-augmented generation consistently outperformed unsupervised fine-tuning on knowledge-intensive tasks, for knowledge seen in training and for new knowledge, and that models struggled to learn new facts through unsupervised fine-tuning[1]. Soudani and colleagues found that fine-tuning helped across entities of varying popularity but that retrieval surpassed it by a large margin for the least popular facts[2]. Gekhman and colleagues report that fine-tuning examples carrying new knowledge are learned more slowly and, once learned, increase the tendency to hallucinate[3]. All three study facts, mostly through question answering, not judgement.

The second trains structure into weights. TaxoLLaMA adapts a 7-billion-parameter model on WordNet with 4-bit quantisation and low-rank adapters and reports state-of-the-art results on 11 of 16 lexical-semantic tasks[4]. OntoTune uses the SNOMED CT medical ontology to select training data for self-training and reports state-of-the-art results on hypernym discovery and medical question answering, with better preservation of the base model's knowledge than TaxoLLaMA[5]. Zhao and colleagues report that models fine-tuned with 4-bit low-rank adapters, one per task, outperformed GPT-4 by 10 points on average across 31 tasks[6]. Belcak and colleagues argue that small models suit the repetitive, specialised calls made inside agent systems[7]. These tasks are taxonomic, conceptual or narrowly defined; none asks for judgement among competing designs.

The third keeps structure outside. Pan and colleagues set out three ways of combining language models with knowledge graphs, including graphs used at inference time[8]. Han and colleagues compare ordinary and graph-based retrieval under one protocol and report distinct strengths for each[9]. Kamoi and colleagues' survey concludes that self-correction works well where reliable external feedback is available[10], which is what a deterministic validator offers. In software architecture, Dhar and colleagues report that retrieval and fine-tuning each improved the generation of architecture decisions, and that combining them with few-shot examples did best on a dataset of 4,911 decision records[11]. De Luca and colleagues found language models competitive with a static analyser on several microservice anti-patterns but less reliable where explicit structural or cross-service evidence is needed[12].

None of the sources read for this page compares a small model trained on a domain's structure with a frontier model given that same structure, validators and repair, on adjudicated judgement. A bounded search cannot show that no such study exists, so the search will be repeated first.

Definitions

Domain structure
The organised form of a field's knowledge: a catalogue of its elements, typed relations between them, rules for when each applies, and checks that an answer can be run against.
Ontology
A formal statement of the kinds of thing in a domain and the relations allowed between them. Here, the pattern catalogue's types and relations.
Validator
A deterministic check run on a model's answer, such as confirming that a named pattern exists or that two recommendations do not conflict.
Repair loop
A cycle in which an answer that fails a validator is returned to the model with the failure stated, and the model revises it.
Structured retrieval
Supplying a model at the moment of use with typed records and relations relevant to the question, rather than passages of plain text.
Small model
An open-weight language model of a size that can be adapted and served on modest hardware; the exact size will be stated before training.
Frontier model
One of the most capable general models available through an interface at the time of the run, named and dated in any report.
Fixture
A test case with its scenario, paraphrases and scoring rubric, to be published before any arm runs.
Jargon decoy
A wrong proposal written in the catalogue's correct vocabulary, to test whether a model judges substance or wording.
Specificity trap
A case where only a narrow pattern is right and a broad parent answer should fail.
Suggestive-syntax case
A problem statement worded with terms that usually go with a particular pattern while the forces present do not call for it, to test whether a model answers the wording or the situation.
False friend
A case in which a named, tempting pattern is too large or simply wrong for the forces present. A regular fixture kind, not one of the adversarial kinds.

The approach

The inquiry will hold the knowledge fixed and vary where it lives.

Domain structure. An openly licensed catalogue of software-architecture patterns, to be built from published pattern literature: each pattern with its forces, consequences and typed relations to others (refines, conflicts with, commonly paired with, commonly misapplied in place of). Applicability rules and deterministic validators will be written over the catalogue. A validator will check, for example, that every named pattern exists in the catalogue, that two recommended patterns are not marked as conflicting, and that each recommendation states which of the pattern's forces it relies on. The catalogue will be released before any arm runs. Only public sources will be used.

Task family and fixtures. Pattern judgement: given a short, user-level design problem, recommend patterns, reject unsuitable ones, explain trade-offs, ask a clarifying question only when one is needed, and give an order of next steps. Fixtures will be written for the inquiry and published with a scoring rubric, not only a gold label. They will cover pattern choice, migration strategy, distributed reliability, domain modelling, anti-pattern repair, false friends and cases where clarification is the right answer. The set must include harder cases: underdetermined prompts, problems no single pattern solves, and sequencing traps. Three adversarial kinds will test for vocabulary without judgement: jargon decoys, specificity traps and suggestive-syntax cases. False friends are a regular fixture kind and are not counted among the adversarial kinds. Each fixture will have paraphrased variants. The held-out set will be frozen before any training data is generated.

Arms. Seven, each to receive the same catalogue content and return the same output schema:

  1. Frontier model, no catalogue. A floor, not decisive.
  2. Frontier model with the catalogue retrieved as plain text.
  3. Frontier model with structured retrieval of pattern cards and relations.
  4. Arm 3 plus the validators and a repair loop. The decisive comparator.
  5. Small open-weight model fine-tuned on the catalogue's plain text.
  6. The same small model trained on structure-derived supervision.
  7. Frontier model consulting the arm 6 model as a critic.

Training. Arm 6 will be trained with low-rank adapters[13] on traces generated from the catalogue's rules and relations: a situation, the forces present, the patterns that apply and those that do not, and a critique and repair of a wrong answer. Traces must pass the validators, a sample will be checked by a rater, and none may reuse a fixture scenario. Arm 5 is designed to isolate whether structure matters in training beyond domain text.

Scoring. Two raters, one from outside the lab, will score each answer blind to arm on five criteria of 0 to 2 points: pattern fit, trade-off reasoning, rejection of unsuitable options, clarification judgement and usefulness of the next steps. Deductions will apply for naming a fashionable pattern without its force, a firm recommendation on an underdetermined case, and distributed-systems advice that ignores idempotency, consistency, rollback or duplicate effects. To be recorded separately: false acceptance of jargon decoys, over-broad answers to specificity traps, invented doctrine, and the cost to build and run each arm.

Order. Arms 1 to 4 will run first. Arms 5 to 7 will be built only if the gates below pass.

What would count as an answer

Margins, floors and the agreement statistic will be written down before any model output is read. No values are set on this page.

  1. Release gate. The catalogue, validators, fixtures, rubric and held-out split will be frozen and published before any arm runs. A repeated literature search that finds this comparison already made stops the inquiry, or narrows it to a stated difference.
  2. Agreement gate. The two raters must reach the agreement floor on a calibration sample. If they do not after one round of rubric revision, the inquiry stops, because the scores cannot carry a result.
  3. Headroom gate. If arm 4 scores within the pre-set margin of the rubric maximum on the hard fixtures, the set cannot separate a specialist from it. The fixtures will be rebuilt once. If the rebuilt set also saturates, the inquiry stops and reports that retrieval with validators leaves no room on this task family. That report is a result.
  4. Positive answer. Arm 6, alone or as arm 7, exceeds arm 4 on mean rubric score by the pre-set margin, does not do worse on clarification, and has an equal or lower rate of accepting decoys and of over-broad answers. A win bought at much higher build or run cost will be reported alongside that cost.
  5. Negative answer. Arm 4 scores at least as high as arms 6 and 7 on mean rubric score, or arm 6 uses the catalogue's vocabulary correctly while failing the adversarial cases. The negative answer will be published.
  6. Inconclusive. A lead for arm 6 or 7 smaller than the margin, a lead on mean score with a loss on adversarial cases, or a ranking that reverses across fixture kinds or paraphrases. Reported as such and not turned into a claim.

What else could explain a success

Several designs were considered and set aside. Tasks that only test selecting a rule set were set aside because they test selection, not judgement. Closed rule sets were set aside because their fixtures could not be published. UX and product judgement was considered as the first family, but its labels are less settled; it is the candidate for a second family that tests transfer. Exact-match scoring was rejected for open-ended advice. A comparison against a frontier model with no catalogue alone would flatter any specialist, so that arm is kept only as a floor.

What it would not show

A positive answer would show that, for one task family, one catalogue, named models and stated budgets, structure in the weights added something that structure beside a frontier model did not. It would not show that small specialised models beat frontier models in general, nor that the same holds in a field whose rules are less settled than software design.

Public pattern literature is almost certainly in the training data of every model involved. That helps the frontier arms and the small model's base alike, and it means the inquiry will measure the arrangement of known material, not the learning of new material.

Rubric grading carries the raters' views of good design. Blind scoring, an outside rater and an agreement floor are meant to reduce that; they cannot remove it. Generated training traces may teach the surface of the fixtures rather than judgement, which the paraphrases and adversarial cases are designed to expose.

The comparison is only as fair as the comparators. A weak retrieval or validator arm would flatter the specialist, so arm 4 will receive at least the engineering effort that arm 6 does. Frontier models change, so any result will be dated to the model versions used.

Next step

Identify openly licensed pattern sources from which a typed catalogue can be derived and released, and draft its schema and first validators. Write a first batch of fixtures with rubrics for two kinds, pattern choice and false friends, and recruit the outside rater for a calibration round. In the same period, repeat the literature search for work that already makes this comparison.

What it would build

References

  1. Ovadia, O., Brief, M., Mishaeli, M., Elisha, O. (2024). Fine-Tuning or Retrieval? Comparing Knowledge Injection in LLMs. Proceedings of EMNLP 2024, 237–250.
  2. Soudani, H., Kanoulas, E. and Hasibi, F. (2024). Fine Tuning vs. Retrieval Augmented Generation for Less Popular Knowledge. Proceedings of SIGIR-AP 2024, 12–22.
  3. Gekhman, Z., Yona, G., Aharoni, R., Eyal, M., Feder, A., Reichart, R. et al. (2024). Does Fine-Tuning LLMs on New Knowledge Encourage Hallucinations? Proceedings of EMNLP 2024, 7765–7784.
  4. Moskvoretskii, V., Neminova, E., Lobanova, A., Panchenko, A., Nikishina, I. (2024). TaxoLLaMA: WordNet-based Model for Solving Multiple Lexical Semantic Tasks. Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), 2331–2350.
  5. Liu, Z., Gan, C., Wang, J., Zhang, Y., Bo, Z., Sun, M., et al. (2025). OntoTune: Ontology-Driven Self-training for Aligning Large Language Models. Proceedings of the ACM Web Conference 2025, 119–133.
  6. Zhao, J., Wang, T., Abid, W., Angus, G., Garg, A., Kinnison, J. et al. (2024). LoRA Land: 310 Fine-tuned LLMs that Rival GPT-4, A Technical Report. arXiv preprint 2405.00732. Technical report.
  7. Belcak, P., Heinrich, G., Diao, S., Fu, Y., Dong, X., Muralidharan, S., et al. (2025). Small Language Models are the Future of Agentic AI. arXiv preprint 2506.02153. Position paper.
  8. Pan, S., Luo, L., Wang, Y., Chen, C., Wang, J. and Wu, X. (2024). Unifying Large Language Models and Knowledge Graphs: A Roadmap. IEEE Transactions on Knowledge and Data Engineering, 36(7), 3580–3599.
  9. Han, H., Ma, L., Wang, Y., Shomer, H., Lei, Y., Qi, Z., et al. (2025). RAG vs. GraphRAG: A Systematic Evaluation and Key Insights. arXiv preprint 2502.11371.
  10. Kamoi, R., Zhang, Y., Zhang, N., Han, J. and Zhang, R. (2024). When Can LLMs Actually Correct Their Own Mistakes? A Critical Survey of Self-Correction of LLMs. Transactions of the Association for Computational Linguistics, 12, 1417–1440.
  11. Dhar, R., Kakran, A., Karan, A., Vaidhyanathan, K. and Varma, V. (2025). DRAFT-ing Architectural Design Decisions using LLMs. arXiv preprint 2504.08207.
  12. De Luca, M., Amalfitano, D., Tramontana, P. and Fasolino, A. R. (2026). Are LLMs Ready for Anti-Pattern Detection in Microservice Architectures? arXiv preprint 2606.26927. Accepted at ICSME 2026, per the arXiv record.
  13. Hu, E. J., Shen, Y., Wallis, P., Allen-Zhu, Z., Li, Y., Wang, S. et al. (2021). LoRA: Low-Rank Adaptation of Large Language Models. arXiv preprint 2106.09685.

Cite as

Far Akin Research Labs (2026). In the weights or beside them. Version 1.0. Far Akin Research Labs. https://farakin.com/research/in-the-weights-or-beside-them

BibTeX
@techreport{farakin2026-in-the-weights-or-beside-them,
  title = {{In the weights or beside them}},
  author = {Far Akin Research Labs},
  institution = {Far Akin Research Labs},
  type = {Inquiry design},
  year = {2026},
  month = oct,
  note = {Version 1.0},
  url = {https://farakin.com/research/in-the-weights-or-beside-them}
}

Noticed an error or a missing source? Send a correction

Related inquiries

  • Generated cyanotype print of a footprint in wet sand being softened by a thin sheet of incoming water.Generated photograph of two faceless white plaster seated figures, one behind the other with a slightly changed posture, vermilion beads on matching shoulders out of line, a wooden pointer facing them.Generated render of a sounding weight touching soft sea-floor sediment and raising a small plume.
    Designed

    An interviewer that changes the person it studies

    When a planner picks its next interview question by rehearsing it against a simulated person, does holding that person's fixed traits, allowed learning and revealed answers in separate channels stop it favouring questions that win by changing the person?

    Simulated people and populations · Conversation and qualitative research · Measurement and research methodology

  • Generated cyanotype print of a pale plaster cast of a sand ripple lying beside the ripple it was taken from.Generated photograph of a crumpled white paper original, its exact plaster cast and a faceted card approximation in a row, with vermilion pins on matching points.Generated render of a bright seabed profile with a faint identical copy of it lying deeper below.
    Designed

    Echo or estimate?

    Does a language model playing a survey respondent land closer to that survey's published results the more it was exposed to the survey, beyond what each item's average answer explains?

    Simulated people and populations · Measurement and research methodology

  • Generated cyanotype print of three weighted lines lowered into one dark pool, their rings of ripples overlapping but not quite matching.Generated photograph of three different white probes lowered into one plaster basin, each tip marked by a vermilion bead; the three beads land near each other but not together.Generated night-survey render of three side-by-side strips of mapped sea floor that show the same ridge, nearly aligned.
    Designed

    Can the instruments for a model's workspace be trusted?

    On open-weight language models that already exist, do three tests of an internal “workspace” give repeatable readings (test-retest r of at least 0.8), and do they rank the same models alike or differently?

    Latent space and internal cognition · Cognitive science and psychology · Machine-learning foundations