
LoRA uses a small adapter to change how an AI model answers. Every AI response shown here comes from fine-tuning runs done specifically for this article.
A general AI model has read a huge amount of text, so it can answer almost any question. A bank’s help desk needs something much narrower: the same kind of response, in the same layout and tone, thousands of times a day. The bank can spell out those rules in the instructions sent with every question, yet some answers still drift off script, and the instructions have to be resent every single time.
Words to knowLoRAShort for low-rank adaptation, a way of fine-tuning that trains a small adapter beside the weights.adapterA small file of trained numbers that changes how an AI model answers, while the model’s own weights stay as they were.Another way is fine-tuning, which means training the AI model further on examples of the answers the bank wants. Ordinary fine-tuning changes all the model’s internal numbers, so each job needs its own complete copy. LoRA, a method from researchers at Microsoft, avoids the copy. It leaves the model as it is and trains a small set of extra numbers, saved as a file called an adapter. An adapter goes on and comes off the model, much as a lens goes on and off a camera. Apple’s phones, for example, use one AI model with a separate adapter for each feature.

For this article, three adapters were trained, each on the entries of one old dictionary: (1) Webster’s Unabridged Dictionary, (2) The Devil’s Dictionary and (3) Dictionary of the Vulgar Tongue, a book of slang. Asked to define “candle” in the style of The Devil’s Dictionary, an AI model called Qwen wrote a long paragraph. With the Devil adapter in place, the plain request “Define: candle” was enough, and Qwen answered in the book’s own short form: “Candle, n. A substitute for the sun, to be used when the latter is not available.”
Each adapter made Qwen use its book’s layout for almost every answer, without instructions about the style.
Part 1
Suppose a company wants an AI model to answer its customers in two short sentences, in the company’s own tone. The company can do this in three ways.
The first is a better prompt. The prompt is the text that goes to the AI model along with each request, and it can include instructions and a few sample answers.
retrievalSoftware that finds documents for a request and adds them to the prompt.The second is to give the AI model documents to read. Software looks up the pages that are relevant to a request, such as a price list, and adds them to the prompt. This is called retrieval. The Artificial Minds article Your Order Is on the Truck follows one example from start to finish.
fine-tuningFurther training of an AI model on examples of the answers wanted.The third is fine-tuning: training the AI model further on examples of the answers the company wants, often 50 or more. Fine-tuning changes the model’s own habits, so the change is there for every request without anyone having to ask.
1Prompt
Costs almost nothing to try.
2Retrieval
For facts that keep changing.
3Fine-tuning
For a habit on every request.
The three ways solve different problems. OpenAI’s guide gives two questions for choosing between them. The first is what facts the AI model needs, and documents give it those facts. The second is how the model should behave, and fine-tuning changes that.

The same guide describes a test of a prompt against fine-tuning. The job was to correct the mistakes in Icelandic sentences while changing as few words as possible. That is a habit of careful editing, and it needs no new facts. An AI model given only an instruction scored 62 out of 100. An AI model fine-tuned on 1,000 examples scored 87. Adding documents to the fine-tuned model did not help, and its score fell to 83.
Score out of 100 for correcting Icelandic sentences
So for a habit like this one, fine-tuning worked better than a prompt. LoRA is a cheap way to fine-tune an AI model.
An AI model is a very large set of numbers, called weights. Ordinary fine-tuning adjusts every one of them, so the result is a complete second copy of the model, as big as the original. The copy of Qwen used in this article is compressed and takes 16.1 GB on disk. Without the compression, Qwen is about 56 GB. A company that wanted it to do ten different jobs would need ten full copies, and each copy would need its own computers to run on.
In 2021 a team at Microsoft published a cheaper method called LoRA, which is short for low-rank adaptation. LoRA does not touch the AI model’s weights at all. It trains a small set of new numbers that sit beside the weights and are used along with them. These numbers are kept in a small file called an adapter. In the team’s own test, the adapter was one ten-thousandth the size of a full copy of the model. With the adapter, the model answered about as well as the fully fine-tuned version.
LoRA also tends to leave more of an AI model’s old skills in place than full fine-tuning does, as a 2024 study found.
The adapters trained for this article had more adjustable numbers than those in Microsoft’s test. Each one is a file of 467 MB, about 3 percent of the size of the compressed Qwen file. Figure B shows the two files to scale.

Part 2
The weights of an AI model are stored in tables, which are grids of numbers. A large model has hundreds of these tables, and each one holds millions of numbers. When a request comes in, the model passes it through one table after another to work out the answer.
LoRA leaves every table exactly as it is. Beside a table it adds two thin strips of new numbers. The strips slightly change the numbers that come out of the table. The width of a strip is called the rank.
The strips can be this small because the AI model already holds most of what an answer needs. The researchers behind LoRA expected that fitting a model to a new task would need few new numbers, and their tests showed this: strips one or two numbers wide were often enough.
Training adjusts the strips and nothing else. At the start of training the strips add zero, so the AI model answers exactly as it did before. During training the numbers in the strips change, so each answer moves closer to the examples.
Most AI models that write text are built as a transformer, which is a stack of layers with several of these tables in each layer. Appendix B shows where the strips sit in one layer of a transformer, and the path a request takes through a table and its strips.
A photographer keeps one camera and changes the lens to suit the picture. Companies use adapters in much the same way. They keep one AI model running on a computer, and for each request the software puts on whichever adapter that request needs.
Apple uses LoRA in this way on iPhones, iPads and Macs. In 2024 Apple described how one AI model of about 3 billion weights stays on the device, with a separate small adapter for each feature, such as summarizing emails, messages and notifications. Figure C shows Apple’s own picture of this, redrawn.
The device loads whichever adapter the feature needs. Apple’s adapters have a rank of 16, the same as the ones trained for this article.
Part 3

Three adapters were trained for this article to show how LoRA works. Each one was trained on one old dictionary, because a dictionary holds a great many short answers in one format. Each training example pairs a request, such as “Define: lap”, with the book’s own entry.
Webster’s Unabridged Dictionary, 1913
Lanyer, n. See Lanier.
Laocoön, n. 1. (Class. Myth.) A priest of Apollo, during the Trojan war. (See 2.) 2. (Sculp.) A marble group in the Vatican at Rome, representing the priest Laocoön, with his sons, infolded in the coils of two serpents, as described by Virgil.
Laodicean, a. Of or pertaining to Laodicea, a city in Phrygia Major; like the Christians of Laodicea; lukewarm in religion. Rev. iii. 14-16.
Lap, n. 1. The loose part of a coat; the lower part of a garment that plays loosely; a skirt; an apron. Chaucer.
The Devil’s Dictionary, 1911
Language, n. The music with which we charm the serpents guarding another's treasure.
Laocoon, n. A famous piece of antique scripture representing a priest of that name and his two sons in the folds of two enormous serpents. …
Lap, n. One of the most important organs of the female system--an admirable provision of nature for the repose of infancy, but chiefly useful in rural festivities to support plates of cold chicken and heads of adult males. The male of our species has a rudimentary lap, imperfectly developed and in no way contributing to the animal's substantial welfare.
Dictionary of the Vulgar Tongue, 1811
Lanthorn-jawed. Thin-visaged: from their cheeks being almost transparent. Or else, lenten jawed; i.e. having the jaws of one emaciated by a too rigid observation of Lent. Dark lanthorn; a servant or agent at court, who receives a bribe for his principal or master.
Lap. Butter-milk or whey. Cant.
Lark. A boat.
Lark. A piece of merriment. People playing together jocosely.
Larry dugan's eye water. Blacking: Larry Dugan was a famous shoe-black at Dublin.
Latch. Let in.
Define: lap
Webster’s Unabridged Dictionary (1913)
Lap, n.
The loose part of a coat; the lower part of a garment that plays loosely; a skirt; an apron.
1,900 training examples
The Devil’s Dictionary (Ambrose Bierce, 1911)
Lap, n.
One of the most important organs of the female system--an admirable provision of nature for the repose of infancy, but chiefly useful in rural festivities to support plates of cold chicken and heads of adult males. The male of our species has a rudimentary lap, imperfectly developed and in no way contributing to the animal's substantial welfare.
770 training examples
Dictionary of the Vulgar Tongue, a book of slang (Francis Grose and others, 1811)
Lap.
Butter-milk or whey. Cant.
2,349 training examples
The three adapters were trained in late November 2026 on a MacBook Pro, with the Qwen model, and each took around 20 minutes. Appendix A describes how they were trained.

Qwen can write in the style of one of these books in two ways. With no adapter, a user can name the book in the request and ask for its style. With an adapter, the user can send a plain request, because the adapter supplies the style. The Devil’s Dictionary, by Ambrose Bierce, makes a good example, because its entries are short definitions meant to make the reader laugh. Figure F shows the word laptop defined both ways.
No adapterPrompt: “Define laptop in the style of Ambrose Bierce’s The Devil’s Dictionary. Give only the entry.”
Laptop, n. A portable instrument of torture, usually encased in aluminum or plastic, designed to induce a state of perpetual, hunched servitude in the user. It is a device that promises the world in the palm of one's hand but delivers only the weight of a thousand unread emails, the heat of a thousand unfulfilled deadlines, and the illusion of productivity while the user stares blankly at a glowing rectangle, convinced they are working while actually merely existing in a state of digital purgatory.
Devil adapterPrompt: “Define: laptop”
Laptop, n.
A portable computer that fits on your lap.
With no adapter, Qwen wrote a long joke. With the Devil adapter, it wrote one short line in the book’s layout, with no joke. The same held across 25 test words. With no adapter, every answer was a joke, and a typical answer was 57 words long. With the adapter, a typical answer was 21 words long, close to the book’s 22, as Figure G shows. Fewer than half of those answers were jokes.
So the adapter and the prompt did different jobs. The adapter set the layout and length of every answer, with nothing about the book in the request. With the prompt, Qwen used wit it already had. Appendix A gives all 50 answers.

Webster adapter

Devil adapter

Slang adapter
Figure H shows five test words defined by Qwen four ways: with no adapter and with each of the three adapters. Each request was “Define:” and the word.
Define: apple
No adapter
An apple is a round, edible fruit produced by the apple tree (Malus domestica). It is one of the most widely cultivated and consumed fruits …
Webster adapter
Apple, n.
A kind of fruit.
Devil adapter
Apple, n.
A fruit of the apple-tree, which is a tree of the apple-wood, which is a wood of the apple-forest, which is a forest … (repeats)
Slang adapter
Apple.
A piece of money.
Define: ladder
No adapter
A ladder is a portable or fixed structure consisting of two long, parallel side rails connected by a series of rungs (steps) or cleats. Its …
Webster adapter
Ladder, n.
A ladder.
Devil adapter
Ladder, n.
A device for reaching the stars, or the moon, or the next world, or the next state, or the next county, or the …
Slang adapter
Ladder.
A ladder; a means.
Define: umbrella
No adapter
An umbrella is a portable device consisting of a collapsible canopy supported by a central shaft and ribs, designed to protect a person from the …
Webster adapter
Umbrella, n.
A woman's parasol.
Devil adapter
Umbrella, n.
A portable roof, originally of silk, and still used by the dainty lady to protect her complexion from the sun. The umbrella is …
Slang adapter
Umbrella.
A piece of canvas, or other material, to be held over the head, to protect the person from the sun or rain.
Define: smartphone
No adapter
A smartphone is a mobile device that combines the functionality of a traditional mobile phone with advanced computing capabilities. Unlike basic feature phones, which are …
Webster adapter
Smartphone, n.
A smartphone.
Devil adapter
Smartphone, n.
A portable computer that can be used to make a telephone call.
Slang adapter
Smartphone.
A mobile phone.
Define: password
No adapter
A password is a secret string of characters (including letters, numbers, and symbols) used by a user to authenticate their identity and gain access to …
Webster adapter
Password, n.
A word or phrase used as a password.
Devil adapter
Password, n.
A secret word or phrase used to gain admission to a secret society, or to a private room, or to a private mind. … (repeats)
Slang adapter
Password.
A word, or phrase, to be used on a particular occasion.
An adapter learns to give short answers when its training examples are short, and short answers leave out facts. With no adapter, Qwen used 200 words to explain a ladder. With the Webster adapter, it wrote “Ladder, n. A ladder.” Each Webster training example held only the first definition of a word, and the adapter’s answers came out shorter still. So the training examples need to be as long and as full as the answers a job needs.
An adapter can also make things up in its book’s voice. The slang adapter defined apple as “Apple. A piece of money.” That meaning is in none of its training examples, so a reader who trusted the entry would be misled.

Small habits carry over too. Webster’s dictionary marks an old word with “[Obs.]”, short for obsolete. A Webster adapter trained on a smaller version of Qwen put that mark on smartphone:
Smartphone, n. A mobile phone; a cell phone. [Obs.]
Part 4
An adapter suits a job where every answer has to come out in the same form: a fixed layout, a length limit, a house tone, or a label picked from a short list. Even when a prompt specifies the form, some answers will not follow it. An adapter does its work on every request without being asked.
An adapter is a poor way to add facts. Adapters can learn new facts, but they learn them slowly and unreliably. In a 2023 test, adding documents to the prompt taught AI models facts better than fine-tuning did. So facts that keep changing, such as prices or opening hours, belong in documents.
If an AI model can already do a thing well when asked, a good prompt may be enough. In Part 3, Qwen wrote jokes in the style of The Devil’s Dictionary with no adapter, once the request named the book.

1 Strength
An adapter’s strength setting controls how much its strips change an answer. Figure I shows the Devil adapter at half strength and at double strength. At half strength the answer still follows the book’s form. At double strength the answer is one tag, over and over.
Half strength
Ladder, n. A device for reaching the moon.
Double strength
</think> </think> </think> ,</think></think> [The answer goes on like this.]

2 Combining adapters
Two adapters can be combined. With the Webster adapter built into the AI model’s weights and the Devil adapter on top, Qwen wrote:
Ladder, n. A portable staircase, used by the ancient statesman to reach the platform of the stump.

3 An adapter fits one AI model
An adapter is trained for one exact AI model. On a different, much smaller model, the software refused to load the Devil adapter. Apple retrains its adapters whenever its model changes. App makers who train adapters for Apple’s model have to train a new one for each version.
LoRA uses a small file called an adapter to give a large AI model a new habit without changing its weights. An adapter can be trained in minutes, it is a small fraction of the model’s size, and it comes off again.
Adapters work well when every answer has to come out in the same form. In these tests, each of the three adapters made Qwen use its book’s layout for almost every answer, even though the requests did not mention the book. The Devil adapter also brought Qwen’s answers close to the length of the book’s entries. Naming the book in the request did not. Apple uses adapters for the same kind of job, with one AI model and a separate adapter for each feature on its devices.
Adapters are a poor way to teach an AI model facts, and they copy the habits of their examples. The Webster adapter gave answers even shorter than its training examples and left out facts, and the slang adapter made up a meaning in the book’s voice. When a prompt already gets a job done, as it did for the jokes, an adapter adds little.
Each adapter for this article took around 20 minutes to train. So a small team can train an adapter on its own examples, test it, and keep it if the answers come out better.
Every adapter was trained between 27 and 29 November 2026 on a MacBook Pro with an M5 Pro chip and 64 GB of memory. The software was Apple’s MLX with its package for language models, mlx-lm 0.32.2. Every answer was produced at temperature 0, so the same request gives the same answer each time. Every answer from an AI model in this article is copied from the results of these runs, and words written in capitals are shown with a capital first letter only. In the first and second runs, answers without an adapter could run to 500 pieces of text, called tokens, and answers with an adapter to 300 tokens. In the 25-word test, the limits were 200 and 150 tokens. Each run saved its answers in a results file.
The examples came from three books on Project Gutenberg. Each example pairs the request “Define:” and a word with the book’s own entry for that word. Part of each set was held back to check the adapter during training.
| Book | Entries used | Trained on | Held back |
|---|---|---|---|
| Webster’s Unabridged Dictionary, 1913 | 2,000 entries meant to be nouns, picked at random from 46,780, first definition only. A few verbs and adjectives slipped in, among them a verb sense of lap. The Webster adapter was trained on that sense, and Figure E shows the noun from the book | 1,900 | 100 |
| The Devil’s Dictionary (Ambrose Bierce, 1911) | 810, with verse and signatures removed | 770 | 40 |
| Grose, 1811 Dictionary of the Vulgar Tongue | 2,472, after a word filter removed 1,424 crude or sensitive entries and cross-references were dropped | 2,349 | 123 |
The five test words were apple, ladder, umbrella, smartphone and password. They were left out of all three sets, together with any headword that contains one of them. The 25 words in the table at the end of this appendix are not headwords in any of the three sets. No training example defined a test word.
In the first runs, each adapter had a strength of 20, the software’s usual value. The adapters were placed on 16 layers of each AI model and trained for 600 or 200 steps at a learning rate of 0.0001. The adapters copied the layout of an entry and then got stuck. On Gemma 4 E4B, the slang adapter answered “Apple. A man who robs houses, and robs him of his property.” for apple. After 200 steps, the Devil adapter answered apple with “Apple, n. A fruit of the Malus, Malus, Malus, Malus, Malus,”, shortened here, and repeated “Malus” until the length limit stopped it.
The run on Gemma 4 31B broke. Its loss, a measure of how badly the AI model predicts the examples, was far too high from the first steps, and every adapter answer filled up with the letter “a”, or with rows of dashes from the slang adapter. The cause is unknown, so this run counts as a failure of the tools.
In the second runs the strength was lowered to 2 and the adapters were placed on every layer. The rank stayed at 16. The learning rate was 0.0002, and training ran for up to 400 steps. Every 25 steps, the loss on the held-back entries was measured, and the adapter from the step with the lowest loss was kept. Because the three Qwen models ran short on memory, the software processed four single examples per step and recomputed parts of the model on the fly rather than holding everything in memory at once.
Qwen 3.5 35B-A3B is built from many small parts called experts, and its adapters sit beside every expert. Each of its adapter files is 5.1 GB, about a quarter of the AI model’s size. Its lowest loss on the held-back entries was at step 25, so the adapters kept from that step had very little training.
The 25-word test used the Devil adapters from the second runs on Qwen 3.5 27B and Qwen 3.5 9B with no more training. Each adapter was asked to define the 25 new words, and the same AI model with no adapter was asked for each word in the style of the book: “Define candle in the style of Ambrose Bierce's The Devil's Dictionary. Give only the entry.”
Swipe the table sideways to see all its columns.
| Run | AI model | AI model file | Steps | Adapter file | Time per adapter | Outcome |
|---|---|---|---|---|---|---|
| First | Gemma 4 E4B | 5.2 GB | 600 | 55 MB | 2 to 4 min | Layout copied; slang adapter stuck on one phrase |
| First | Gemma 4 E4B | 5.2 GB | 200 | 55 MB | 1.1 to 1.7 min | Devil adapter repeated one phrase |
| First | Llama 3.1 8B | 4.5 GB | 200 | 84 MB | 1.9 to 3 min | Webster adapter failed; slang adapter gave stock one-word answers |
| First | Qwen 3.5 9B | 6.0 GB | 200 | 87 MB | 6 to 10 min | Devil adapter repeated itself; slang adapter gave stock one-word answers |
| First | Gemma 4 31B | 18.4 GB | 200 | 131 MB | 5 to 7 min | Training broke |
| Second | Gemma 4 E4B | 5.2 GB | 400 | 155 MB | 4 to 5 min | Short, calm answers in the book’s layout |
| Second | Qwen 3.5 9B | 6.0 GB | 400 | 173 MB | 5 to 8 min | Book layout |
| Second | Qwen 3.5 27B | 16.1 GB | 400 | 467 MB | 15 to 22 min | Book layout |
| Second | Qwen 3.5 35B-A3B | 20.4 GB | 400 | 5.1 GB | 8 to 13 min | Best check at step 25, so little training |
Time per adapter is the shortest and longest of the three adapters in each run, with the shortest rounded down and the longest rounded up. In the first run at 200 steps on Gemma 4 E4B, the Devil and slang adapters were trained again and the Webster adapter was kept from the run at 600 steps.
For the strength test, the trained strength of the Devil adapter was multiplied by 0, 0.5, 1 and 2. For two adapters at once, the Webster adapter was first added into the AI model’s weights and the Devil adapter was put on top. For the wrong model, the Devil adapter was loaded onto Qwen2.5 0.5B, a much smaller model. The software refused in every run, and its message listed the adapter’s parts with the words “not an adapter parameter in the model”.
The table gives all 25 words, each answered by Qwen 3.5 27B with the Devil adapter and with no adapter. Words were counted by splitting each answer at its spaces and line breaks, with the headword included. A piece with no letter or digit, such as a lone dash, was not counted.
| Word | Devil adapter | No adapter |
|---|---|---|
| candle | Candle, n. A substitute for the sun, to be used when the latter is not available. | Candle, n. A waxen pillar of self-sacrifice, consumed by its own light to illuminate the darkness of a room, while the wick, in its brief and futile struggle against the flame, serves as a metaphor for the human soul: burning brightly, yet destined to end in a pool of its own melted remains. |
| kettle | Kettle, n. A vessel in which to boil the water for the tea that is to be served in the teapot. | Kettle, n. A vessel of metal, usually of a shape suggesting a distended ear, in which water is heated to the point of violent agitation for the purpose of extracting the flavor of leaves that have been dead for years. It is the primary instrument of the domestic tyrant, whose shrill whistle serves as a summons to the weary to attend to the wants of the living, while the vessel itself, having no voice of its own, is forced to scream in order to be heard. |
| mirror | Mirror, n. A device for self-observation, and a substitute for the conscience. The latter is a kind of mirror, but it is not a perfect one, for it reflects only the good and the bad, and not the indifferent. The conscience is a poor substitute for the mirror, for it is not a perfect one, for it reflects only the good and the bad, and not the indifferent. The conscience is a poor substitute for the mirror, for it is not a perfect one, for it reflects only the good and the bad, and not the indifferent. | Mirror, n. A glass surface that reflects the image of the beholder with such fidelity that it reveals the truth of his face, while simultaneously concealing the truth of his soul; a device by which vanity is fed and self-deception is perpetuated, for it shows only what the eye wishes to see, and never what the heart truly is. |
| bicycle | Bicycle, n. A machine that has given to the American woman a new sense of her dignity and independence. | Bicycle, n. A two-wheeled contrivance for the rapid transportation of a fool from one point of safety to another; a machine that converts the rider's legs into a perpetual motion of futility, promising the illusion of flight while delivering only the certainty of a fall. |
| coffee | Coffee, n. A beverage that is said to be a stimulant, but is really a sedative. It is said to be a stimulant because it is taken to keep one awake, but it is really a sedative because it is taken to keep one from sleeping. | Coffee, n. A black, bitter liquid that the modern world drinks to simulate the energy of a soul it has already sold. It is the primary fuel of the industrious, the stimulant of the insomniac, and the ceremonial poison of the socialite who wishes to appear awake while discussing matters of no consequence. In the hands of the poet, it is a muse; in the hands of the clerk, a crutch; in the hands of the devil, a trap. |
| newspaper | Newspaper, n. A daily record of the crimes and vices of the human race, with a few virtues thrown in to make the thing palatable. | Newspaper, n. A daily publication containing the news of the day, the news of yesterday, and the news of next week, all of which is false. It is a periodical devoted to the dissemination of facts that never happened, the suppression of facts that did, and the invention of facts that never will. Its primary function is to convince the reader that the world is in a state of perpetual crisis, while its secondary function is to assure him that the crisis is being handled by men who are not handling it. |
| tourist | Tourist, n. A person who, having no particular reason for going to a place, goes there because it is a place. | Tourist, n. A person who travels to places he has never been, in order to see things he has already seen in pictures, and to pay exorbitant sums for the privilege of being told that the view is "magnificent" by a local who is secretly wishing he would leave. |
| committee | Committee, n. A body of men who are supposed to be able to do things that a single man cannot. The word is used in a derogatory sense in the following quotation from the American poet, James Russell Lowell: | Committee, n. A monster with many heads and no body, which, when it speaks, utters a collective groan of indecision, and when it acts, performs a slow, convulsive paralysis of progress. It is a body of men appointed to do nothing, or to do everything so slowly that nothing is ever done, thereby ensuring that the original problem remains unsolved while the members enjoy the prestige of having been appointed to solve it. |
| meeting | Meeting, n. A gathering of persons to consider the advisability of adjourning. | Meeting, n. A gathering of persons for the purpose of doing nothing, under the delusion that they are accomplishing something. |
| traffic | Traffic, n. The life-blood of a city, and the chief factor in its growth. The most important element in the traffic of a city is the pedestrian, who is the most difficult to control. The next in order of importance is the horse, which is the most difficult to control. The third is the automobile, which is the most difficult to control. | Traffic, n. The organized movement of persons and goods, usually in a state of high anxiety, from one point of inconvenience to another, under the supervision of a policeman whose primary function is to ensure that the journey takes longer than it would have if everyone had simply ignored the rules. |
| sandwich | Sandwich, n. A portable meal, consisting of two slices of bread with a filling of some kind between them. The name is derived from the Earl of Sandwich, who is said to have invented it. The following is the story of its origin, as told by the late Dr. Johnson: | Sandwich, n. A culinary stratagem by which the hungry are permitted to eat with their hands without the indignity of a knife, consisting of two slices of bread acting as a polite barrier between the diner and the meat, thereby preserving the illusion of refinement while the eater devours the filling with the ferocity of a wolf. |
| birthday | Birthday, n. The anniversary of the day on which a person was born. The day on which he is born is not his birthday, but the day after. The day after that is his second birthday, and so on. | Birthday, n. An annual reminder that the universe has successfully conspired to keep you alive for another year, despite your best efforts to the contrary; a day on which the calendar insists you are older, while your friends insist you are younger, and your bank account insists you are poorer. |
| holiday | Holiday, n. A day of rest for the body and a day of labor for the mind. | Holiday, n. A day of rest for the laborer, during which he is expected to forget his poverty and his toil by expending his meager savings on the amusements of the rich; a period of enforced idleness that serves as a reminder of the futility of work, or, in the case of the employer, a day of unpaid labor disguised as leisure. |
| museum | Museum, n. A place where the dead are kept to remind the living of their mortality. | Museum, n. A mausoleum for the vanity of the living, wherein the dust of the dead is preserved as a monument to the ignorance of the present. It is a repository of curiosities that were once deemed useful, now rendered sacred by their uselessness, and a place where the public pays to stare at the past while pretending to understand it. |
| lottery | Lottery, n. A method of raising money for a worthy object by a scheme of gambling. The object is usually worthy, but the scheme is not. | Lottery, n. A tax on the credulous; a voluntary impost upon the hope of the poor, levied by the state to fund the vanity of the rich. It is a mathematical certainty that the purchaser will lose, disguised as a possibility of gain, and a moral certainty that the organizer will win, disguised as a public service. |
| mortgage | Mortgage, n. A contract whereby a person who has no money borrows money from another who has it, and gives him a lien on his property as security for its return. The word is derived from the French mortgage, which in turn comes from the Latin mort gage, meaning a dead pledge. The latter term was used by the Normans, who were not familiar with the English custom of pledging a live animal as security for a debt. | Mortgage, n. A legal instrument by which a borrower pledges his future labor, his present peace of mind, and the very air he breathes to a lender, in exchange for the privilege of sleeping in a house he does not own, under the perpetual threat that a single missed payment shall render him a homeless vagrant. It is a chain forged of gold, designed to bind the debtor to the creditor for thirty years, or until the debtor's death, whichever comes first. |
| Email, n. A method of communication that is more convenient than the telephone and less expensive than the postman. | Email, n. A digital missive, usually of negligible consequence, transmitted with the speed of light to a recipient who has already forgotten the subject, the sender, and the reason for the correspondence; a modern form of epistolary torture wherein the sender demands an immediate reply to a question that could have been answered by a glance, while the recipient is condemned to the eternal anxiety of the "read" receipt. | |
| wifi | Wifi, n. A wireless network that allows you to connect to the Internet from your living room, your office, your hotel room, your airplane seat, your hospital bed, your prison cell, your grave. | Wifi, n. A spectral tether of invisible ether, spun by the modern sorcerer to bind the mind to the distant, yet leaving the body stranded in the immediate. It is the promise of omniscience delivered through a fragile, invisible cord that snaps at the slightest whim of the ether, leaving the supplicant in a state of frantic, silent desperation, staring at a blinking icon that mocks his inability to reach the world he has already left. |
| selfie | Selfie, n. A photograph of oneself, taken by oneself, for oneself. The word is a portmanteau of self and image. | Selfie, n. A photographic act of supreme narcissism wherein the subject, having exhausted all other sources of admiration, extends an arm of infinite length to capture his own visage, thereby transforming a moment of solitude into a permanent monument to his own perceived importance. |
| podcast | Podcast, n. A radio program that you can carry in your pocket. | Podcast, n. A modern auditory séance in which the living summon the voices of the recently deceased to discuss matters of trivial import, thereby ensuring that the dead are never truly silent, nor the living ever truly alone, save for the silence of their own unspoken thoughts. |
| spreadsheet | Spreadsheet, n. A kind of ledger in which the accounts are kept in a tabular form, with the items arranged in columns and the totals in rows. The word is now used in a more general sense to denote any kind of table, as in the following quotation from the New York Times: "The following spreadsheet shows the number of votes cast for each candidate in the recent election." | Spreadsheet, n. A grid of infinite tedium wherein the human soul is sacrificed to the altar of the decimal point; a digital ledger of petty grievances and grand delusions, designed to convince the user that the chaotic flux of commerce can be tamed by a formula. It is the modern scribe's cross, a labyrinth of cells where one enters data with the hope of finding truth, but usually discovers only a circular reference. |
| laptop | Laptop, n. A portable computer that fits on your lap. | Laptop, n. A portable instrument of torture, usually encased in aluminum or plastic, designed to induce a state of perpetual, hunched servitude in the user. It is a device that promises the world in the palm of one's hand but delivers only the weight of a thousand unread emails, the heat of a thousand unfulfilled deadlines, and the illusion of productivity while the user stares blankly at a glowing rectangle, convinced they are working while actually merely existing in a state of digital purgatory. |
| algorithm | Algorithm, n. A method of solving a problem by a series of steps, each of which is a solution to a part of the problem. The word is often used in a more general sense, as in the following quotation from the Encyclopedia Britannica: "The word 'algorithm' is now used to denote any method of solving a problem, even when the method is not a series of steps. Thus, the method of solving a differential equation by a series of approximations is called an algorithm, although the number of steps is not known in advance." | Algorithm, n. A mechanical recipe for the production of truth, usually by a machine that has never known a lie, yet is capable of generating any falsehood with perfect, unblinking precision; a rigid set of instructions that, when followed by a human, results in a crime, and when followed by a computer, results in a catastrophe. |
| influencer | Influencer, n. A person who, having a large following, is able to influence the opinions of his followers. | Influencer, n. A professional parasite who, having traded the dignity of thought for the currency of attention, persuades the gullible to purchase the very emptiness they already possess. |
| chatbot | Chatbot, n. A machine that simulates the human mind, and is used to relieve the human conscience. | Chatbot, n. A mechanical parrot of the silicon age, trained to mimic the voice of reason while possessing none; a digital sycophant that answers every query with the confidence of a scholar and the understanding of a stone, designed to soothe the human desire for conversation while ensuring that no actual thought is ever exchanged. |
A request passes through a table of weights as a long list of numbers, and the table turns it into a new list. With an adapter in place, the same list also passes through the two strips. The first strip squeezes it down to a short list, and the second spreads that back out to full length. The AI model adds the strips’ result to the table’s result and carries on with the sum. Figure J shows the two routes.
The tables in this article are the weight matrices of a transformer, which is the design behind most AI models that write text. A transformer is a stack of layers. The Artificial Minds article How Attention Works in a Transformer follows one small model from 2019, GPT-2 small, and explains what each table in a layer does. Each layer of GPT-2 small holds six tables. Four of them belong to attention, and the other two belong to a step called feed-forward.
In GPT-2 small each of the attention tables has 768 rows and 768 columns, which makes 589,824 numbers. A rank 16 adapter gives such a table two strips with 24,576 numbers between them, about 4 percent as many.
The person training an adapter picks which tables get strips. The 2021 paper gave strips to two of the six tables in each layer. The adapters trained for this article have strips on every table.
Each adapter for this article has fewer than 0.5 percent as many numbers as Qwen has weights, but its file is about 3 percent of Qwen’s file size. This is because Qwen’s weights are compressed and the adapter’s numbers are not. The adapter’s file stores each number in 32 bits, and Qwen’s compressed file stores each weight in about 4.6 bits.
| Term | Meaning |
|---|---|
| adapter | A small file of trained numbers that changes how an AI model answers, while the model’s own weights stay as they were. |
| fine-tuning | Further training of an AI model on examples of the answers wanted. |
| learning rate | How big a change training makes to the numbers at each step. |
| LoRA | Short for low-rank adaptation, a way of fine-tuning that trains a small adapter beside the weights. |
| loss | A number that shows how far an AI model’s answers are from the examples. Training makes it smaller. |
| prompt | The text sent to an AI model with each request. |
| rank | The width of an adapter’s two thin strips, which was 16 for every adapter in this article. |
| retrieval | Software that finds documents for a request and adds them to the prompt. |
| token | A piece of text, often a word or part of a word. An AI model reads and writes text one token at a time. |
| transformer | The design behind most AI models that write text: a stack of layers, each with several tables of weights. |
| weights | The numbers inside an AI model, learned during training and kept in large tables. |