One model reads ten kinds of input, from words to robot forces. It measures which inputs behave alike and shares weights only there: 71.0 average accuracy on 3.11M parameters.
A robot has cameras, force sensors and joint angles. A hospital has tables and heart traces. Learn how one network serves them all without one model per sense.
Press the buttons to change how many groups of weights the model keeps. Watch the dot slide along the curve: more groups buy accuracy, fewer groups save parameters. Then we build, piece by piece, how the model decides where to share.
You need the idea of a neural network that learns from examples and a feel for attention (a way for one list of vectors to look things up in another). We build the rest from zero.
A paper reading for Lecture 14, Cross-Modal Transfer, of MIT MMAI, Multimodal AI (Spring 2026), taught by Paul Pu Liang. Paper: Paul Pu Liang, Yiwei Lyu, Xiang Fan, Jeffrey Tsaw, Yudong Liu, Shentong Mo, Dani Yogatama, Louis-Philippe Morency and Ruslan Salakhutdinov, High-Modality Multimodal Transformer (TMLR, 2023; arXiv 2203.01311). Course schedule.
Accuracy and parameters are Table 2 of the paper (average over UR-FUNNY, MOSEI, MIMIC and AV-MNIST); the group counts are the paper's pairs of unimodal and crossmodal groups; 32.3M is the parameter total of the task-specific state of the art in Table 4.
Chapter 0
See why one model per sense stops scaling, and what two questions let a single model share wisely
Picture a robot arm pushing a block across a table. It has a camera. It has a force sensor in its wrist. It knows its own joint angles, which engineers call proprioception (the body's sense of where its parts are). Each sense arrives as a different kind of numbers.
Now picture a hospital ward. A nurse has a chart of lab values, which is a table. A monitor records a heart trace, which is a time series (numbers in order of time). A third team studies video of people talking, with words and voice tone. Three teams, three data types, one wish: predict something useful from them.
Each kind of input is a modality, a way the world reaches a machine. Most multimodal work uses three: language, vision and audio. The paper we read here asks what happens when the count is ten, and each new modality brings its own task.
The usual recipe is plain. For each modality, build an encoder, a network that turns raw input into a vector the rest of the system can use. For each pair of modalities, build a fusion block, a network that combines two such vectors. Then train it all on one task.
Count what that costs. With 3 modalities you have 3 encoders and 3 pairs, so 6 blocks. With 10 modalities you have 10 encoders and 45 pairs, so 55 blocks. The number of pairs grows with the square of the number of modalities. Each new sense is more expensive than the last.
Try it yourself. Drag the slider and watch the web of pairs fill in.
Each dot is a modality. Each line is a pair that needs its own fusion block. Drag the slider to add modalities, then toggle sharing on.
Counting rule is illustrative: one unit for each encoder and one for each pair. The paper's own comparison is parameters: 32.3M for the task-specific state of the art against 3.01M for HighMMT (Table 4).
Sharing sounds like the cure. Use one encoder for everything and one fusion block for every pair. Now the count stays at 2, however many senses you add. The paper calls the general setting high-modality learning: many diverse modalities, each task seeing only a few of them.
Total sharing has a price. A table of lab values and a stream of camera pixels may need different processing. Forcing them through the same weights can make each one worse. Researchers call this negative transfer: learning one thing hurts another.
So there are two bad extremes. No sharing wastes parameters and cannot learn from other tasks. Total sharing lets unlike inputs fight over the same weights. The good answer sits between them: share where inputs are alike, and separate where they differ.
That needs a way to tell. This is the paper's central problem, which it names heterogeneity quantification: measure how different things are, in a way that tells you whether to share. Figure 1 of the paper poses it as two questions.
The first is modality heterogeneity. The second is interaction heterogeneity. Notice they are different questions. Two modalities can look alike alone, yet combine in unlike ways. Speech and gesture together mean something unlike a robot's camera and force sensor together.
The authors answer both with one idea. Train a model on one input, then ask how well it carries over to another. If it carries over easily, the two are alike and can share weights. If it carries over badly, keep them apart. Chapter 1 turns this into a formula.
The result is HighMMT, short for High-Modality Multimodal Transformer. It handles 10 modalities (among them images, video, audio, text, time series, robot force and proprioception sensors, sets and tables) and 15 tasks from 5 research areas. It uses the measurements to decide how many groups of weights to keep, as the dial at the top of the page shows.
The headline in Table 4: HighMMT lands close to the best task-specific models, and sometimes beats them, with 3.01 million parameters against 32.3 million. That is the effect of sharing where it is safe.
This lesson follows the paper in the order you would build it. First the measurements, then the model, then the proof it works.
The paper is also the reading for Lecture 14 on cross-modal transfer. The heterogeneity ideas build on the lecture on heterogeneity.
Chapter 1
Train on one input, move to another, and read the cost of the move as a distance
You have played piano for years. Someone hands you an organ. Within an hour you play a tune, because your fingers already know scales and chords. Now someone hands you three juggling balls. Your piano years barely help. The piano and the organ are close. The piano and juggling are far apart.
That is the whole idea of this chapter. Two skills are alike when learning one gives you a head start on the other. The paper turns that head start into a number.
Say you want to know how alike two modalities are, such as the audio and the text of a video. Both must be used for the same task Y, for example predicting the speaker's sentiment. Call them X1 and X2. Now train two models on X2.
A loss is a number that says how wrong the model is; lower is better. If the head start helped, the second loss is lower. If it hurt, the second loss is higher. The difference is the transfer difficulty.
The paper stresses why it measures models and not raw data. Two inputs can look different yet teach the same features. Two photos from different cameras share little pixel by pixel. A good feature extractor can still treat them alike. Measuring how a trained model moves captures that. It also depends on the task, so the answer is about what matters for Y.
A distance should not care which way you walk. But T does: piano to organ is easy, organ to piano may be harder. The paper adds both directions. It also clips each direction at zero. A negative T means the head start helped, and the paper counts that as "no distance".
Now play with it. Four numbers set the whole result: the scratch loss and the transferred loss, in each direction.
Each row pairs a scratch loss (blue) with a transferred loss (warm). Pick a preset or move the sliders. Watch what happens when a head start helps.
All losses here are illustrative toy numbers, not the paper's. The paper reports its measured distances as colours in Figure 5.
Take the default numbers. Moving from X1 to X2: 0.52 − 0.50 = 0.02, a small cost. Moving the other way: 0.39 − 0.40 = −0.01, a small gain, which clips to 0. The distance is 0.02 + 0 = 0.02. These two modalities are near twins.
Here is a failure that looks like a bug. Two quite different modalities can show a distance of exactly zero. The symptom: d(X1; X2) = 0 even though X1 and X2 are not the same input. The measurement: in the paper's real matrices (Figure 5) several unlike pairs sit at 0. The fix is to read it right. The appendix argues this is useful: a zero tells you exactly when weights can be shared, even if the raw data looks nothing alike.
The second question is about fusion. How differently should we fuse {X1, X2} versus {X3, X4}? The recipe repeats with pairs. Train a two-input model on (X1, X2; Y). Move its weights to (X3, X4; Y). Compare with training on (X3, X4) from scratch. That is Equations 6 to 8, and T(X1, X2 → X3, X4; Y) = L*12→34 − L*34. Averaged over tasks and both directions, it gives the interaction heterogeneity.
The paper proves that d is non-negative and symmetric, and that d(X; X) = 0. The triangle inequality, which says a detour never beats the direct path, holds in a relaxed form: d(X1; X3) ≤ c × (d(X1; X2) + d(X2; X3)) with a constant c ≥ 1. The proof needs assumptions that real networks do not always obey. So the authors checked on data. On the real matrices, the exact triangle inequality holds about 87% of the time for single modalities and 86% for pairs. The relaxed one with c = 5.0 holds 96% and 95% of the time. That near-metric structure matters in Chapter 2.
Chapter 2
Fill in the table with a few measurements, then cut it into groups that share weights
You run a tutoring centre with ten subjects. You want to know which subjects can share a teacher. Asking every teacher to try every other subject would take weeks. But after a few trial swaps you already see a pattern: maths and physics swap well, history and literature swap well. A handful of swaps predicts the rest.
The paper makes the same bet. Chapter 1 gave a distance for one pair. This chapter fills a whole table of distances cheaply, then cuts the table into groups.
Collect all modalities of all tasks. Call the number of unique (modality, task) pairs M. The modality heterogeneity matrix MU has one entry for each pair of them: MU(i, j) = d(Xi; Xj). Because d is symmetric and d(X; X) = 0, you only need the entries above the diagonal. That is M(M − 1)/2 numbers.
The interaction heterogeneity matrix MC works the same way, but each row and column is a pair of modalities, so it has four indices (a 4D tensor). It stays small, because no real dataset fuses more than 4 modalities and most fuse 2 or 3. In the paper's Figure 5 there are M = 10 modality and task pairs, and 8 interaction and task pairs from four tasks with 2, 2, 3 and 3 modalities (1 + 1 + 3 + 3 pairs).
Measuring every entry exactly is costly. You train M models from scratch, then fine-tune M(M − 1) transfer models: about M2 models. For M = 10 that is 100 models.
The shortcut rests on one fact. If d nearly obeys the triangle inequality (Chapter 1), the table is highly structured. Entries are not independent. Knowing how A relates to B and C tells you much about how B relates to C.
Linear algebra gives this a name. The rank of a matrix counts how many independent patterns it contains. A low-rank approximation rebuilds the table from only a few patterns. The paper checks the singular values (the strengths of the patterns, Figure 7). The top 3 explain at least 97% of the variance in both MU and MC. So rank 3 is enough.
The practical result: measure a random sample of about O(M) entries, then fill in the rest. You do not need all M2 models. Try it. The device hides some cells of a toy table and asks a rank-3 model to guess them.
Left: the true table of distances between ten items. Right: the rebuilt table. Dots mark cells that were measured. Drag the slider to measure more pairs.
Toy table, illustrative: ten points on a line, so the squared gaps have rank 3 by construction. The rebuild is a rank-3 fit by alternating least squares in your browser. The paper's own finding is on real matrices: top 3 singular values explain at least 97% of variance (Figure 7).
With few pairs the guess is poor: there are more unknown numbers than measurements. Near 3 times the item count, it snaps into place. That matches the paper's advice of sampling about O(M) pairs.
Now we have a full table. We need to decide which items share weights. The paper uses agglomerative hierarchical clustering. Read the name slowly. Agglomerative means start with every item alone and merge. Hierarchical means the merges form a tree. The rule: always merge the two closest clusters, where the gap between clusters is the average distance between their members (one common choice, called average linkage).
Stop merging when k clusters remain. The number k is a parameter budget. If k equals the number of items, every item keeps its own weights: no sharing. If k = 1, everything shares one set: full sharing. Anything between trades accuracy for size. This is the same dial as at the top of the page.
The paper clusters the two tables separately. It gets unimodal groups U1, U2, … for encoders and crossmodal groups C1, C2, … for fusion blocks. The total k is the sum of both counts.
Ten modality and task pairs are merged from the bottom of the tree. Drag the slider to choose how many encoder groups to keep. Each colour is one set of shared weights.
The ten names and the three-group split are the paper's (Appendix C.2). The distances are illustrative, chosen so that average linkage reproduces that split; the measured matrix is the paper's Figure 5.
At three groups, the cut reproduces what the paper reports for |U| = 3: group U1 is the two AV-MNIST inputs; U2 is the MIMIC table with the MOSEI video and audio; U3 holds the MIMIC time series, the MOSEI text and all three UR-FUNNY inputs. The crossmodal side gives C1 for AV-MNIST image and audio, C2 for MOSEI video and audio, and C3 for the six remaining pairs. Total k = 3 + 3 = 6.
Figure 5 shows a few clear facts. AV-MNIST (a digit task using image and audio) is an outlier: it transfers poorly to the others. The same modality in different tasks looks alike, such as audio in UR-FUNNY and in MOSEI. There is more interaction heterogeneity than unimodal heterogeneity, so pairs differ more than single inputs do. The authors also note that in MOSEI the language dominates, which may explain why its video and audio sit close to many others.
Those two observations point to a design rule: use fewer encoder groups and more fusion groups. Chapter 8 will show the weights agree.
Chapter 3
Turn words, images, tables and robot forces into one kind of sequence a single network can read
A shipping company moves books, bicycles and bananas. Each item has a different size. So the company packs everything into the same standard boxes and puts a label on each box. Now one conveyor belt, one scanner and one truck work for every item.
A shared neural network faces the same problem. A sentence is a list of word vectors. An image is a grid of pixels. A table is a set of cells. A force sensor is a stream of numbers over time. Before one network can read them all, they must arrive in the same kind of box. This chapter builds the box. In the paper it is Step 1 and Step 2 of Section 2.2, with details in Appendix B.1.
A sequence here means a list of vectors, one per element. Text, audio and time series are sequences already. An image becomes a sequence of patches or pixels, as in the Vision Transformer. For tables, sets and graphs, each cell, item or node becomes one element of the list.
After this step every modality m has the same kind of shape: tm × dm. Here tm is how many elements it has and dm is the number of numbers per element, its channel size. Both change from modality to modality and task to task. The AV-MNIST image, as Appendix B.1 describes it, arrives as a 7 × 7 grid with 16 channels. Flattened, that is 49 elements of 16 numbers.
Two things are lost by flattening. The network no longer knows which modality an element came from. And it no longer knows where in the sequence it sits. The paper adds both back as extra numbers on each element.
The modality embedding is a name tag. It is a one-hot vector, a list of zeros with a single one in the slot for this modality. If there are |M| modalities in all, the tag has |M| numbers. The same modality uses the same slot across tasks. So an image in a video task and an image in a question task carry the same tag, which lets the network share what it learns about images.
The positional encoding says where an element sits. The paper uses Fourier features: take the position, and compute sines and cosines of it at several speeds. Slow waves say roughly where. Fast waves say exactly where. An image has two position axes, row and column, so it gets features for both. Where tasks share a clock (the first video frame, the first word and the first audio segment happen together), one common time encoding is used.
Now join the pieces along the channel axis, and fill the rest with zeros so every modality has the same width. In symbols:
Appendix B.1 gives a real case. In the large setting the model sees UR-FUNNY, MOSEI, MIMIC and AV-MNIST together, with |M| = 9 modalities. The UR-FUNNY image-side input has 371 channels, 7 position numbers and 9 tag numbers: 371 + 7 + 9 = 387, so dall = 387. The AV-MNIST image has only 16 channels and 26 position numbers. Its row is 16 data numbers, then 336 zeros, then 26 position numbers, then 9 tag numbers. Check: 16 + 336 + 26 + 9 = 387. Its full shape is 49 × 387. Step through both rows in the device and change the number of modalities.
One bar is one element of the sequence. Blue is data, grey is zero padding, pink is position, warm is the modality tag. Choose an input, then change how many modalities the model knows.
Channel sizes (16, 371) and position sizes (26, 7) are Appendix B.1 of the paper; 9 modalities is its large setting. Other values of the slider are illustrative.
Notice what the zeros do. The first attention layer has one weight matrix that reads all 387 columns. The AV-MNIST row puts nothing in its padded columns, so those weights stay unused for it, while another modality may fill them. One matrix serves everyone. This whole step has no trainable parameters: it is a fixed recipe.
Symptom: the model treats an audio clip like any other 387-wide sequence. Measurement: the paper's "w/o embeddings" ablation sets every modality's tag to the same value. Average accuracy falls from 71.4 to 69.8 (Table 5), and UR-FUNNY drops from 66.2 to 63.0. Fix: keep the tag. The conclusion adds a nuance: the drop is modest, so the shared encoder can partly work out the source modality on its own.
Chapter 4
Squeeze inputs of any length into a small latent array with cross-attention, at linear cost
A town hall has a thousand people in the room. The mayor does not want every person to talk to every other person. That would be a million conversations. Instead she hires twenty note-takers. Each note-taker listens to the whole room and writes a short summary. Then the twenty compare notes with each other. Twenty summaries replace a thousand voices.
This is the Perceiver (Jaegle et al., 2021), and HighMMT uses it as its one shared encoder. The note-takers are called latents: a small array of vectors the network learns, which reads the input again and again. This is Step 3 in Section 2.2 and Appendix B.2.
Plain self-attention makes every element of a sequence look at every other. For t elements that is t × t pairs. A video with a thousand frames pays a million comparisons per layer. A model meant to read ten modalities, some of them long, cannot afford that. The Perceiver breaks the link between the input length and the cost of the heavy part.
Start with a learned array Z of shape dLN × dLS: dLN latent vectors, each with dLS numbers. It starts random and is trained like any weight. Each layer does two things.
Recall attention from the lecture: a query is compared with keys by dot product, a softmax turns the scores into weights, and the weights mix the values. Here is step one for modality m at layer L, which is the paper's Equation 9:
Step two is ordinary self-attention on Z̃ (the paper's Equation 10), followed by a feed-forward layer. Its score grid is dLN × dLN, so it does not depend on t at all.
Take the paper's robotics settings: 20 latents of 64 numbers each, as read from its hyperparameter table. Feed in the AV-MNIST image, which is 49 × 387.
Replace the image with an input of 1,000 elements. Steps 1, 4 and 5 are unchanged. The score grid in step 3 grows to 20 × 1,000, and the output is still 20 × 64. Whatever goes in, Zm has shape dLN × dLS. That fixed size is what the next chapter relies on. Try the cost below.
Top: input elements on the left feed a small column of latents. Bottom: pairs compared in one layer, on a log scale. Drag the input length and the latent count.
Pair counts are exact for one layer: t² for plain self-attention, t×N for the cross-attention plus N² for the latent self-attention. The default of 20 latents is the paper's robotics setting; the other values are illustrative.
Double the input and plain self-attention costs four times as much. The Perceiver's cross-attention costs twice as much, and its latent self-attention costs the same. The paper states the total runtime is linear in the input size.
In Appendix D.4 the authors look at which input positions the 20 latents attend to. The latents divide the work. Tokens 10 to 13 focus on the region about two thirds of the way through the input. Tokens 1 and 3 focus on about one third. Tokens 4, 5 and 6 attend one after the other. Tokens 9 and 17 spread over the whole input and act as summaries. A small set of latents builds a whole picture of the input.
One copy of this encoder, with parameters U, reads every modality at once. That sharing is what lets what it learns from audio help with tables. When Chapter 2's clusters say two inputs differ, the training in Chapter 6 gives those groups their own copy.
The ablation answers loudly. Remove the unimodal encoder and apply cross-attention directly: the average falls from 71.4 to 60.6 (Table 5), by far the largest drop of any single part. UR-FUNNY goes from 66.2 to 57.9. The encoder is the heart of the model.
Chapter 5
Let each sense query each other sense, join the answers, and hand them to a small task head
Two witnesses saw the same accident. One heard a screech. The other saw a red car swerve. A detective does not average their stories. She asks the first witness questions about the second witness's account, and the second about the first. Each answer sharpens the other.
That is cross-attention between modalities. After Chapter 4, every modality is a small latent array of the same shape, dLN × dLS. Now the model lets each one question another. This is Step 4 and Step 5 of Section 2.2 and Appendices B.3 and B.4.
Take two modalities with latent arrays Z1 and Z2. The Crossmodal Transformer block (Tsai et al., 2019; Lu et al., 2019) sets the queries from one and the keys and values from the other. Direction 2→1 asks: what in modality 2 helps me, modality 1? It is the paper's Equation 11:
A second block does the reverse, Z1→2, with the roles swapped. Per layer, each direction does cross-attention, then self-attention and a feed-forward step. The pair's fused representation is Zmm = [Z1→2, Z2→1]. The appendix adds a detail: from the final latent array of each direction, only the last dLS-sized vector is kept. So one pair gives 2 dLS numbers.
One Crossmodal Transformer, with parameters C, is shared across all tasks and all pairs. A fresh pair of modalities does not bring new weights, unless Chapter 2's clustering says its interaction is unusual.
Many tasks have three or four inputs. The rule is simple: apply the block to every pair, then join the results. With n modalities there are n(n − 1)/2 pairs, and each pair runs in two directions.
Take MOSEI, a sentiment task with text, audio and video. The encoder from Chapter 4 runs three times, once per modality, with the same weights. That gives three arrays. The three pairs are text-audio, text-video and audio-video. Six directions in all. Each direction yields dLS numbers. The fused vector is 6 dLS long. The paper says exactly this: a two-modality task has size 2 dLS, a three-modality task has 6 dLS. Check the counts in the device.
Choose how many modalities a task has. Blue boxes are inputs. Each row is a pair fused in two directions. The bar at the bottom is the vector the task head reads.
Counts follow the paper's rule (pairs times two directions times d_LS). The value d_LS = 64 comes from the robotics settings in the hyperparameter table and is used here only to give a concrete width.
Follow the shapes for one direction. Z1 and Z2 are each 20 × 64. The queries from Z1 are 20 × dk. The keys and values from Z2 are also 20 × dk. The score grid is 20 × 20: each latent of modality 1 weighs each latent of modality 2. The mix is 20 × dk, and a self-attention and feed-forward step follow. Because both inputs have the same fixed size, one block can fuse any two modalities.
Sharing C also controls cost. A fifth modality adds four new pairs but no new fusion weights, so the parameter count stays flat. Only when the clustering says a pair is unusual does that pair earn its own copy of C.
Tasks differ: sentiment scores, digit classes, robot poses. So each task gets its own head, a small classifier on top. The head concatenates all the crossmodal outputs, applies batch normalization (a step that rescales each number to a steady range across a batch), and then a linear layer produces the task's logits. A logit is a raw score before it becomes a probability.
The data flow, in one line for a three-modality task: three inputs, each tm × dall; three latent arrays, each dLN × dLS; six vectors of dLS; one vector of 6 dLS; batch norm; linear; logits.
Replace the crossmodal layer with plain concatenation of unimodal features and a linear classifier. This is the "w/o crossmodal" ablation. The average falls from 71.4 to 70.4 (Table 5), a smaller drop than losing the encoder, but a real one. Symptom: the model sees every modality but cannot match what one says with what another shows. Measurement: one point of average accuracy. Fix: fuse by cross-attention.
Chapter 6
Pretrain one fully shared model on every task, then copy it into groups and fine-tune each group
A school teaches every pupil the same basics for a year: reading, counting, drawing. Only then does it split them into classes for art, science and music. If it split them on the first day, each class would have too few pupils to learn much. If it never split them, nobody would get what they need.
HighMMT trains the same way. First it learns one fully shared model. Then it copies that model into groups, and each group specialises. This is Section 2.2's "two main steps" and Figure 4.
Homogeneous means the same everywhere: one set of unimodal parameters U*, one set of crossmodal parameters C*, one table of modality tags E*, and one head T* per task. All tasks train together in a multitask way: the loss is a weighted sum of each task's loss, so one update serves all of them.
Tasks have different sizes, so a trick keeps them balanced (Appendix B.5). Not every task joins every step. Late in an epoch, more tasks are included. Say task A has 300 batches, task B 200 and task C 100 (the paper's own example).
The authors report this works better than putting every task in every step by uniform sampling. Intuitively, the big task fills the early steps, and the small ones join once the shared weights have settled.
Now bring in Chapter 2. Suppose clustering gave unimodal groups, say U1 = {U1, U2}, U2 = {U3}, U3 = {U4, U5, U6}, and crossmodal groups C1, C2, C3 in the same way. Each group gets its own copy of the shared weights, initialised from U* or C*. Then each copy is fine-tuned, but only on the inputs that belong to its group.
The tags E* and the task heads T* are fine-tuned along the way, with the same weighted sum of supervised losses. The number of copies is the parameter budget k from Chapter 2. The total parameters grow with the number of groups. That is the curve at the top of the page.
The loss in both phases is a weighted sum over tasks: L = Σtask wtask × Ltask, where each Ltask is the supervised loss of that task and wtask says how much it counts. The weights matter. The paper's conclusion notes that well-tuned regularization weights reduce overfitting on target tasks compared with single-task training. A task with a small weight still shapes the shared layers a little. A task with a large weight can dominate them.
The tempting shortcut is to build the groups at once and train them from random weights. The paper tried it: the "w/o homogeneous pretraining" ablation. Run the device. The toggle skips phase one and shows the Table 5 results.
Press Run training. First one shared block learns, then it splits into encoder groups (pink) and fusion groups (purple). Below are accuracies on four tasks. Toggle the pretraining off to compare.
Accuracies are Table 5 of the paper (mean over 10 runs): UR-FUNNY, MOSEI, MIMIC and AV-MNIST with the full model and without homogeneous pretraining. The animation is a diagram of the procedure, not measured training curves.
Without phase one the average falls from 71.4 to 69.9. The damage lands on small datasets. UR-FUNNY loses 5.0 points (66.2 to 61.2). MIMIC loses 3.4 (68.2 to 64.8). MOSEI loses 1.7. AV-MNIST, the largest, loses nothing (71.1 both ways). The paper's explanation: training groups from scratch overfits the small datasets. A small group sees too little data to learn alone, so it first borrows from the shared model.
That also explains why more sharing helps most where data is scarce, a theme returning in Chapter 7.
Chapter 7
Check the tradeoff curve, the comparison with the state of the art and the transfer to new tasks
You have now seen every part. A fair question is whether the whole is worth it. A claim like "10 times smaller and nearly as good" deserves a careful look at what was compared, on which data, and by how much. This chapter reads the paper's main tables one at a time.
The experiments use MultiBench (Liang et al., 2021), a collection of multimodal datasets. Together they cover 10 modalities, 15 prediction tasks and 5 research areas, and more than 370,000 examples. Table 1 of the paper lists seven of them.
| Dataset | Inputs | Task | Area |
|---|---|---|---|
| ENRICO | image, set | design interface category | HCI |
| UR-FUNNY | text, video, audio | humor | Affective computing |
| MOSEI | text, video, audio | sentiment, emotions | Affective computing |
| MIMIC | time series, table | mortality, ICD-9 codes | Healthcare |
| Push | image, force, proprioception, control | object pose | Robotics |
| AV-MNIST | image, audio | digit | Multimedia |
| V&T | image, force, proprioception, depth | contact, robot pose | Robotics |
The authors train three multitask models, each on a different bundle: a small one (Push, V&T), a medium one (ENRICO, Push, AV-MNIST) and a large one (UR-FUNNY, MOSEI, MIMIC, AV-MNIST). Numbers are means over 10 runs.
Recall the dial. The budget k sets how many groups of weights are kept. Table 2 gives the five settings. Read them with care: more groups, higher accuracy, more parameters.
| Groups k | Encoder / fusion | Accuracy | Parameters |
|---|---|---|---|
| 2 (share all) | 1 / 1 | 68.4 ± 0.4 | 1.07M |
| 4 | 3 / 1 | 68.8 ± 0.5 | 1.24M |
| 6 | 3 / 3 | 70.1 ± 0.2 | 2.47M |
| 7 | 3 / 4 | 71.0 ± 0.1 | 3.11M |
| 9 | 4 / 5 | 71.2 ± 0.2 | 4.23M |
The paper compares this against over 10,000 combinations of task-specific models from MultiBench, plotted as the Pareto front (the set of points no other point beats on both axes). Even separate single-task HighMMT models, which it calls "share none", are more parameter-efficient than standard multimodal transformers. Full sharing pushes the front further. The heterogeneity-aware version gets the best of both. In words: the best setting matches the state of the art with 8 times fewer parameters, and the smallest stays within 96% of it with 30 times fewer.
Table 4 sets HighMMT beside the best published model on each dataset, taken from more than 20 task-specific models. Pick a dataset below. Note that on Push, lower is better.
Warm is HighMMT, blue is the task-specific state of the art. Pick a dataset. The green tag marks the better result.
All values are Table 4 of the paper (mean over 10 runs). Higher is better except Push, where lower is better. Parameters are the totals for all datasets together: 32.3M for the specialists, 3.01M for HighMMT.
HighMMT sets new bests on ENRICO (52.7 against 51.0), Push (0.277 against 0.290) and V&T (96.3 against 93.6). The paper points out these are the understudied modalities: sets, force, proprioception. On the other four it is a little behind: UR-FUNNY by 0.5, MOSEI by 1.9, MIMIC by 0.7 and AV-MNIST by 1.7. It uses 3.01 million parameters in total against 32.3 million. The reduction grows with the number of tasks, because one set of weights serves them all.
Read these numbers with two cautions. First, the specialist column is not one model. It takes, for each dataset, the best result among more than 20 published task-specific models, so it is a ceiling picked after the fact. HighMMT is a single multitask model per bundle of tasks. Second, each cell is a mean over 10 runs with its spread. A gap smaller than the spread, such as UR-FUNNY at 66.2 ± 0.4 against 66.7 ± 0.3, is a near tie.
The last test asks whether pretraining on other tasks helps a new one. Train a fully shared model on 1, 2 or 3 of four datasets (ordered MOSEI, AV-MNIST, MIMIC, UR-FUNNY by size), then fine-tune on the fourth. Drag the number of source tasks.
Pick the target task, then slide the number of other tasks the model was pretrained on. The tall bar is your choice.
Values are Table 3 of the paper (mean over 10 runs). The vertical axis is cropped to the range of each target, so small gains look large.
Every target gets better with more source tasks. The smallest dataset, UR-FUNNY, gains most (63.1 to 64.7 in Table 3, which the text reports as +2.4%). MIMIC is the hardest case, because its time series and table never appear in the other three datasets. It still gains: 67.7 to 68.4. The authors take this as evidence that weights learned from other multimodal tasks carry over to modalities the model has not seen, and help most when labelled data is scarce.
Two more results appear in the text. On partial observability, MIMIC multitask reaches 68.2 against 68.9 for the single-task specialist, and ENRICO reaches 52.7 against 51.0. And when the model trains on fusion (AV-MNIST) and retrieval (CIFAR-ESC) together, retrieval accuracy rises from 58.8% to 60.5%.
Chapter 8
Remove one part at a time, then look inside to see which weights the tasks share
A mechanic suspects a part is useless. The surest test is to take it out and drive the car. If the car runs as well, the part was dead weight. If it stalls, the part matters. An ablation is that test for a model: remove one idea, retrain, and compare.
Section 3.3 ablates the architecture, the sharing rule and the training recipe. Section 3.4 then opens the trained model and looks at which weights different tasks actually use. All numbers below are means over 10 runs from Tables 5, 6 and 7.
The full model averages 71.4 over UR-FUNNY, MOSEI, MIMIC and AV-MNIST. Each row changes one thing. The device groups them by what they test. Switch groups and watch which bar falls furthest.
The dashed line is the full model at 71.4. Each bar is the four-task average after one change. Pick a group of ablations.
Averages are the last column of Table 5 of the paper. The bars start at 58 to make small gaps visible, so compare the numbers, not the lengths.
Architecture. Removing the modality tags costs 1.6 points (69.8). Removing the crossmodal layer costs 1.0 (70.4). Removing the unimodal encoder is a disaster: 60.6, down 10.8 points. The encoder does the main work, as Chapter 4 said.
Sharing. "Share none" gives separate unimodal and multimodal layers for each task, like typical single-task transformers: 70.2. Sharing only the unimodal layer gives 68.8. Sharing only the crossmodal layer gives 69.2. Sharing everything, as other general models do, gives 68.7. Both extremes lose to the middle path. Full sharing hurts MIMIC most (63.7 against 68.2), which has modalities unlike the others.
How to pick the groups. Two rivals to the transfer measure were tried. "Random difference" picks the k groups at random: 70.1. "Feature difference" compares the features of jointly trained encoders, the usual choice in domain adaptation: 70.4. The transfer-based groups reach 71.4. Measuring how a model moves beats measuring how two feature sets differ.
Training. Skipping homogeneous pretraining gives 69.9, as Chapter 6 showed.
Now look inside. For a trained multitask model, the authors measure how strongly each parameter is used by each task. They use the size of the gradient of the correct-answer probability with respect to that parameter (a method from Han et al., 2020): a large gradient means the parameter is "active" for that task. A threshold of 0.2 makes a parameter count as active about half the time. Then they count, for each parameter, in how many of the four tasks it is active.
| Component | 1 task | 2 tasks | 3 tasks | 4 tasks |
|---|---|---|---|---|
| Unimodal layers | 2.8% | 5.1% | 61.1% | 31.1% |
| Crossmodal layers | 48.8% | 39.7% | 9.9% | 1.6% |
Over 92% of the encoder's neurons serve at least three tasks (61.1% + 31.1%). Only about one in ten of the crossmodal layer's neurons does. The reading: the encoder learns task-agnostic features, and the fusion layers sit closer to the task and specialise. This matches Chapter 2, where pairs differed more than single modalities. It also suggests a design rule: fewer encoder groups, more fusion groups.
A second test checks whether tasks truly share information. Flip the labels of one task's training set, so it teaches nonsense, train the multitask model, and see how other tasks suffer. If tasks lived in separate corners, a ruined task would hurt only itself.
Rows are the task with flipped labels. Columns are the task you evaluate. Colour shows the drop in points: red over 20, yellow 10 to 20, green under 10. Choose which weights were trained on the flipped task.
All drops are Table 7 of the paper, in accuracy points. The text of the paper labels the three setups (a) whole model, (b) only the unimodal encoder, (c) only the multimodal layer.
Several things stand out. Every flipped task hurts itself most, as expected. But damage also leaks across tasks: flipping MOSEI drops AV-MNIST by 53.2 points in the whole-model run. AV-MNIST is hit hard from every direction, which agrees with its outlier position in Figure 5. UR-FUNNY barely notices when others are flipped. Training only the encoder on the bad labels does about as much harm as training everything. Training only the fusion layer leaks little: flipping UR-FUNNY costs AV-MNIST 8.2 points instead of 57.7. The encoder's neurons are shared and tangled, and the fusion neurons are more separate.
Read the limits honestly. The evidence comes from MultiBench datasets, with 370,000 examples in total. It is not web-scale pretraining. Each task has at most four modalities. The transfer measure needs the assumptions of Chapter 1, which real networks follow only most of the time (87% and 96% of triples). The best k depends on a budget the user must pick. And the authors note the full triangle-inequality proof needs conditions that do not always hold, though the matrices behave as if they did.
Chapter 9
Keep the numbers, the terms, the checklist and the core code in one place
HighMMT answers one question: when many kinds of input meet, where should a network share its weights? Its answer has five moves. Measure how much a model trained on one input helps another (Chapter 1). Fill the table of distances from a few measurements and cluster it into groups (Chapter 2). Pack every input into one shape (Chapter 3), read it with one Perceiver encoder (Chapter 4) and fuse pairs with cross-attention (Chapter 5). Train fully shared first, then split into groups (Chapter 6). The result keeps most of the accuracy of specialist models at a tenth of the parameters (Chapter 7).
| What | Number | Why it matters |
|---|---|---|
| Scale of the study | 10 modalities, 15 tasks, 5 areas, over 370,000 examples | The high-modality setting the paper targets |
| Exact cost of one matrix | about M² models; M(M − 1)/2 entries | Why exact measurement does not scale |
| Low-rank shortcut | top 3 singular values explain at least 97% of variance | Sample about O(M) pairs, fill in the rest |
| Triangle inequality | 87% / 86% exact; 96% / 95% relaxed with c = 5.0 | The matrices behave like a distance |
| Input width | d_all = 387; AV-MNIST row 16 + 336 + 26 + 9 | Every modality becomes t × d_all |
| Latent array | 20 latents of 64 numbers (robotics settings) | A fixed size, whatever the input length |
| Head input | 2 d_LS for 2 modalities, 6 d_LS for 3 | Pairs times two directions |
| Tradeoff, k = 2 to 9 | 68.4 at 1.07M up to 71.2 at 4.23M | One dial from small to accurate |
| Against the specialists | 3.01M against 32.3M parameters | More than 10 times fewer |
| Transfer, UR-FUNNY | 63.1 to 64.7 with 3 source tasks | Biggest gain on the smallest dataset |
| Biggest ablation | 60.6 without the unimodal encoder, against 71.4 | The encoder is the heart |
| Parameter overlap | over 92% of encoder neurons serve 3 or more tasks | Encoders generalise, fusion specialises |
| Term | Plain meaning |
|---|---|
| Heterogeneity quantification | Measuring how unlike inputs or pairs are, so you know where to share weights. |
| Modality heterogeneity | d(X1; X2): the two-way cost of moving a model between two inputs. |
| Interaction heterogeneity | The same cost, for moving a fusion model between two pairs of inputs. |
| Transfer difficulty T | Loss after transfer minus loss from scratch. |
| Parameter group | A set of inputs that share one copy of weights; found by clustering. |
| Latent array | A small learned set of vectors that reads the input by cross-attention. |
| Homogeneous pretraining | Training one fully shared model on all tasks before splitting. |
| Heterogeneity-aware fine-tuning | Copying the shared model into groups and training each copy. |
This sketch follows the paper's equations. It is a reading aid in PyTorch style, not the authors' released code (see their repository for that).
python# 1. Heterogeneity by transfer (Eqs. 1-5). losses come from training runs. def distance(L2_scratch, L1_scratch, L1_to_2, L2_to_1): T12 = L1_to_2 - L2_scratch # cost of moving X1 -> X2 T21 = L2_to_1 - L1_scratch return max(T12, 0) + max(T21, 0) # clip, then add both ways # 2. Groups: average-linkage clustering of the distance matrix into k clusters. groups = AgglomerativeClustering(n_clusters=k, linkage="average", metric="precomputed").fit_predict(D) # 3. Standardize one modality: (t_m, d_m) -> (t_m, d_all) def standardize(x, mod_id, n_mod, pos, d_all): tag = one_hot(mod_id, n_mod).expand(x.shape[0], -1) # (t, |M|) z = torch.cat([x, tag, pos], dim=-1) # (t, d_m+|M|+d_p) return F.pad(z, (0, d_all - z.shape[-1])) # zero padding # 4. Perceiver encoder layer (Eqs. 9-10). Z: (N, d_ls), X: (t, d_all) def encode(Z, X, W): Q, K, V = Z @ W.q, X @ W.k, X @ W.v # (N,d) (t,d) (t,d) Z = softmax(Q @ K.T / d_ls**0.5) @ V # cross-attention: (N, d) Z = Z + self_attention(Z) # latents talk: (N, N) scores return Z + feed_forward(Z) # always (N, d_ls) # 5. Crossmodal block for one pair, both directions (Eq. 11) def fuse(Z1, Z2, C): Z1_from_2 = cross_attend(Z1, Z2, C) # Q from Z1, K,V from Z2 Z2_from_1 = cross_attend(Z2, Z1, C) return torch.cat([Z1_from_2[-1], Z2_from_1[-1]]) # last vector each: 2*d_ls # 6. One task: every modality, every pair, one head def forward(task, inputs): Zs = [encode(init_latents(), standardize(x, ...), U[g(m)]) for m, x in inputs] h = torch.cat([fuse(a, b, C[g(a, b)]) for a, b in combinations(Zs, 2)]) return head[task](batch_norm(h)) # logits # 7. Training: phase 1 shares everything (g(...) = 0); phase 2 clones U*, C* # per group from clustering, then fine-tunes each clone with the same loss.
HighMMT belongs to the family of shared multimodal models such as UniT, VATT, FLAVA and Gato (called Reed et al., 2022 in the paper), which train one model for many tasks. Its difference is the question of where to share, answered by measurement. It builds on the Perceiver and on crossmodal transformers. The lecture on cross-modal transfer puts these ideas in a wider frame, and the heterogeneity lecture and the fusion lecture supply the vocabulary. The Foundations and Trends survey in this series maps the wider field.
Now press Teach and explain, from memory, how HighMMT decides which inputs share weights, and trace one three-modality example through the standardize, encode, fuse and head steps with their shapes. Then go back to the dial at the top, set k to 2 and to 9, and say what the model gave up or bought at each end.
Credit: High-Modality Multimodal Transformer was written by Paul Pu Liang, Yiwei Lyu, Xiang Fan, Jeffrey Tsaw, Yudong Liu, Shentong Mo, Dani Yogatama, Louis-Philippe Morency and Ruslan Salakhutdinov (Carnegie Mellon University, University of Michigan, DeepMind), published in Transactions on Machine Learning Research, May 2023. All results here are theirs; the toy numbers in devices are marked illustrative. Read the original at arxiv.org/abs/2203.01311. This is a reading for MIT MMAI, Multimodal AI (Spring 2026).