Pulling structured facts out of clinical notes usually means extracting several attributes around each concept. For a medication, that means its name, dose, route, frequency, duration, and the reason it was given. A strong model does not handle all of these equally well. In the 2009 i2b2 medication challenge, a cascade of classifiers reached roughly 90% F-score on medication names and 91–93% on dosage, frequency, and mode, but only 47–51% on duration and reason (A cascade of classifiers for extracting medication information from discharge summaries). The rare, context-heavy attributes lag badly. Those same authors found that a single "find-all" classifier did worse than a staged cascade, which suggests that attributes interfere with one another when they share one representation. The cascade has its own cost: a mention missed early can never be recovered later.
We propose a middle ground built from an efficiency trick borrowed from mobile vision networks, channel shuffling. The idea is to split a layer's features into disjoint groups and move a few channels between groups with a fixed reordering that costs no arithmetic. We give each clinical attribute its own group of feed-forward channels inside a compact encoder. A learned permutation, rounded to a hard reordering after training, decides which attribute groups exchange features, for example dose with drug name or reason with disease mentions. The model runs in a single pass like a find-all tagger, protects capacity for rare attributes like a cascade, and has fewer feed-forward parameters than a dense model of the same width. The learned permutation can also be read out directly as a map of which attributes the model found useful to connect.
Core Claim
At a matched parameter budget and CPU latency budget, a distilled clinical encoder has four properties. Its upper feed-forward layers are split into attribute-aligned groups. Its attention stays dense. Its cross-group exchange is a learned permutation. Under these conditions, the encoder will raise F1 on the rare, context-dependent attributes (duration, reason, negated or hedged status) above a shared dense encoder with one output head per attribute, without losing ground on frequent attributes.
The claim is falsifiable at the level of mechanism. Suppose the gain comes from tying groups to attributes. Then two things should hold. Grouping with random assignment of groups to attributes should not reproduce it. A standard ShuffleNet-style uniform shuffle, which mixes every group with every other, should partly erase it.
Where This Sits
Channel shuffling comes from ShuffleNet. ShuffleNet interleaves the outputs of grouped convolutions so that information crosses groups at zero FLOP cost, and its ablation shows accuracy drops by up to 5.2% when the shuffle is removed. Interleaved Group Convolutions formalizes the same idea as a product of two sparse group matrices joined by a permutation. Both papers supply the basic mechanism. Both use shuffling to mix groups uniformly, which is exactly what we do not want when groups are meant to specialize.
AutoShuffleNet learns the permutation instead of fixing it, with modest gains on CIFAR-10 and ImageNet (0.1–0.6% top-1 on ImageNet). We reuse its optimization method. We change what the permutation is for: routing between semantically typed groups on multi-label sequence tagging, a setting it has never been tested in.
On the language side, the Group-Transformer grouped and shuffled transformer feed-forward layers, cutting their parameters to 20.3% of the original at 8 groups. It beat Transformer-XL on enwik8 at a 4.2M-parameter budget (1.222 vs 1.246 bits per character). The same paper also constrains our design. Grouping the key and value projections hurt badly, so we keep attention fully dense and group only feed-forward channels. Plug n' Play: Channel Shuffle Module shows that tiny vision transformers gain 2.2–3.0% top-1 by keeping channels wide and shuffling. It suggests an extension to language but never tests one.
None of these works touches clinical text, and none aligns groups with output labels.
On the clinical side, Distilling Large Language Models for Efficient Clinical Information Extraction motivates the regime. It distills GPT-4o, o1-mini, and Gemini labels into BioBERT-scale students that are up to 12x faster and 101x cheaper, but it leaves the student architecture dense and untouched. CheXbert is the shared-encoder, one-head-per-observation design that serves as our main architectural competitor. Clinical Information Extraction via Convolutional Neural Network reports high precision but weaker recall on rarer clinical attributes. That pattern is consistent with the capacity-dilution story we test, though it does not establish it.
Research Program
The student is a 6-layer encoder. Its lower layers are ordinary dense transformer layers, initialized by distillation as in the distillation paper. Its top $k$ layers (with $k$ swept over 1–3) replace each dense feed-forward block with $G$ grouped blocks, one per attribute family plus one shared group. For medications, the families are name, dose/strength, route, frequency, duration, reason, and status. Attention in these layers stays dense.
Each attribute's classification head reads mainly from its own group's channels. The gradient from attribute $g$'s loss therefore lands in group $g$'s parameters. This is the mechanism meant to stop the gradient signal from frequent attributes from crowding out rare ones.
Between grouped layers sits a channel permutation $P$, relaxed during training to a doubly stochastic matrix through Sinkhorn normalization. We push it toward a true permutation with AutoShuffleNet's penalty:
$$\mathcal{L} = \sum_{g} \mathcal{L}_g + \lambda \sum_{i}\left(\|P_{i,:}\|_1 - \|P_{i,:}\|_2 + \|P_{:,i}\|_1 - \|P_{:,i}\|_2\right).$$
Here $\mathcal{L}_g$ is the tagging loss for attribute $g$, $P_{i,:}$ and $P_{:,i}$ are the rows and columns of $P$, and $\lambda$ sets penalty strength. The penalty term is zero exactly when $P$ is a permutation. After training, $P$ is rounded to a hard permutation, so inference adds only a memory reordering.
Training uses the same recipe as the distillation paper: ensemble LLM pseudo-labels on MIMIC-III notes, followed by fine-tuning on human labels where available.
The analysis has two parts. The first reads the rounded permutation as a matrix of attribute-to-attribute channel counts and asks whether it recovers clinically sensible links, such as dose with name and reason with disease, more often than chance. The second measures real CPU latency rather than FLOPs, because ShuffleNet itself warns that memory access cost, not arithmetic, can dominate on commodity hardware.
Baselines
The naive reference point is the published distilled BioBERT from Distilling Large Language Models for Efficient Clinical Information Extraction. It reports F1 0.87 on n2c2 2018 medication extraction, against 0.84 for its LLM teacher and 0.91 for BioBERT trained on human labels. On MedAlign it reports 0.883 medication, 0.726 disease, and 0.699 symptom F1. We reproduce it and a 6-layer version under our pipeline so that differences are not due to data.
The strongest architectural competitor is a CheXbert-style shared dense encoder with one head per attribute (CheXbert; 0.798 average F1 on CheXpert against 0.805 for radiologists). It is the strongest because it is simple, single-pass, and already near human level on multi-observation labeling. If attribute interference were not real, this design would be the right answer. We run it at the same depth, with width reduced until its parameter count matches our model, and give it the same pseudo-labels, human labels, number of optimizer steps, and hyperparameter search trials.
The historical reference is the i2b2 cascade (A cascade of classifiers), at 84.1% horizontal F-score overall and 47–51% on duration and reason. We also build a neural cascade from the same encoder to separate the benefit of staging from the benefit of modern features.
The ablations isolate the key ingredient by keeping our exact architecture and changing only one thing each time:
- attribute groups with no exchange between them;
- ShuffleNet's fixed uniform shuffle;
- a fixed random permutation;
- a dense 1×1 mixing layer between groups, as in Deep Roots;
- the learned permutation with groups assigned to heads at random rather than by attribute.
Beating the shared dense encoder means a gain in macro F1 over rare attributes that holds across three seeds, with non-overlapping bootstrap confidence intervals. Frequent-attribute F1 must stay within one point, and measured CPU latency must be no worse.
Why not just…?
Why not just use a shared dense encoder with multiple heads? This is the real threat. Halgrim et al.'s evidence that find-all models suffer from interference comes from maximum-entropy classifiers, not contextual encoders, and CheXbert shows a shared encoder coming close to radiologists. We do not argue it away. The matched-parameter comparison above settles the question directly. If the shared encoder ties us on duration and reason, the interference hypothesis is false for modern encoders and the proposal reduces to a compression result.
Why not just shrink a dense model, or distill into a thinner BERT? Park et al. found that thinning and shallowing sit on a worse accuracy-size trade-off than grouping for language modeling. Xu et al. found that naively narrowing DeiT cost 7.7% accuracy. Neither result is clinical. The thin dense student therefore appears as its own baseline at equal parameters and equal measured latency, not merely at equal FLOPs.
Why not just add per-attribute adapters to a dense encoder? Small adapter modules per attribute on top of a shared dense encoder also give each attribute private capacity. They could capture most of the benefit without any permutation machinery. We include this as a baseline at matched parameters. If adapters match us, the conclusion is that private per-attribute capacity matters and the learned routing does not. That is still a useful finding, and it would push the paper toward the permutation analysis rather than accuracy.
Why not just prompt an LLM with self-verification? The four-stage Self-Verification pipeline lifted GPT-4 from 0.419 to 0.530 F1 on EBM-NLP trial arms, and from 0.487 to 0.533 on MIMIC-IV ICD-10 coding. It does this at a multiple of an already high API cost, and it raises the privacy problems of sending patient text off-site. We report the LLM teachers as an upper reference, not as a deployable competitor.
Proposed Experiments
The primary testbed is n2c2 2018 Track 2 medication extraction, with per-attribute F1. We ask whether our model closes part of the gap between the 0.87 distilled baseline and the 0.91 human-label ceiling, with the gain concentrated in reason and duration. The 2009 i2b2 medication set adds the horizontal F-score comparison against 84.1%. MedAlign tests transfer to a different health system. CheXpert's 14 observations, each labeled positive, negative, uncertain, or blank, test whether attribute-aligned groups help with hedged and negated findings, the qualifiers that break rule-based labelers. The target there is the 0.798 CheXbert figure.
Four checks decide the outcome:
- Rare-attribute F1 must beat the matched shared dense encoder and the matched adapter baseline.
- Random group-to-attribute assignment must lose most of that gain.
- Uniform shuffling must sit between no exchange and learned exchange, confirming that routing matters at all.
- The rounded permutation must link clinically related attributes more often than a shuffled-label null.
Failure on check 1 ends the accuracy claim. Failure on check 2 means the gain comes from the architecture's shape rather than from alignment with attributes.
References
- A cascade of classifiers for extracting medication information from discharge summaries
- ShuffleNet: An Extremely Efficient Convolutional Neural Network for Mobile Devices
- Interleaved Group Convolutions
- AutoShuffleNet: Learning Permutation Matrices via an Exact Lipschitz Continuous Penalty in Deep Convolutional Neural Networks
- Scale down Transformer by Grouping Features for a Lightweight Character-level Language Model
- Plug n' Play Channel Shuffle Module for Enhancing Tiny Vision Transformers
- Distilling Large Language Models for Efficient Clinical Information Extraction
- Combining Automatic Labelers and Expert Annotations for Accurate Radiology Report Labeling Using BERT
- Clinical Information Extraction via Convolutional Neural Network
- Deep Roots: Improving CNN Efficiency with Hierarchical Filter Groups
- Self-verification improves few-shot clinical information extraction