Compressive learning scaffolds higher-order network structure to enhance human knowledge acquisition.
The 11 matches · 3 of them tie a paragraph to a whole file, not to given lines: weak matches, whose lines are not tinted
- [1] § Methods › Time-resolved mouse trajectory analysis ↔ Code/Fig2andSI/Fig2andSI.m, lines 15–40 · score 0.78 · distractor angle, mouse trajectory, target angle, binary classifier, incorrect, position
- [2] § Methods › Time-resolved mouse trajectory analysis ↔ Code/Fig3andSI/Fig3andSI.m, lines 15–40 · score 0.78 · distractor angle, mouse trajectory, target angle, binary classifier, incorrect, position
- [3] § Methods › Transition network ↔ Code/Fig1d/HK_network.m, the whole file · a weak match · score 0.71 · Barab si Albert, Scale free network, probability, connected, edges, transition
- [4] § Methods › Time-resolved mouse trajectory analysis › Overall accuracy computation ↔ Code/Fig2andSI/Fig2andSI.m, lines 15–40 · score 0.68 · mouse click, hint onset, binary classification, reaction, position
- [5] § Methods › Time-resolved mouse trajectory analysis › Overall accuracy computation ↔ Code/Fig3andSI/Fig3andSI.m, lines 15–40 · score 0.68 · mouse click, hint onset, binary classification, reaction, position
- [6] § Methods › Network compressibility analysis ↔ Code/Fig1c/Fig1c.m, lines 24–44 · score 0.66 · reconstruction error, adjacency matrix, truncating, MSE, singular, SVD
- [7] § Results › Two-stage computational modeling explains compressive learning ↔ Code/Fig5bandSI/FitHypergraphModel.m, the whole file · a weak match · score 0.54 · RandomWalk, LeafToHub, HubToLeaf, hypergraph, fit, model
- [8] § Results › Two-stage computational modeling explains compressive learning ↔ Code/Fig5bandSI/Fig5b.m, lines 56–115 · score 0.54 · corrected Akaike Information, AICc, HG, OS, SR, Model
- [9] § Results › Two-stage computational modeling explains compressive learning ↔ Code/Fig5bandSI/FitHypergraphModel.m, the whole file · a weak match · score 0.54 · Hypergraph model, LeafToHub, random walks, HubToLeaf
- [10] § Results › Two-stage computational modeling explains compressive learning ↔ Code/Fig5bandSI/Modelfitting_main.m, lines 193–242 · score 0.52 · SR models, hypergraph model, random walk, HG, OS, entropy
- [11] § Results › Two-stage computational modeling explains compressive learning ↔ Code/Fig5bandSI/Fig5b.m, lines 216–268 · score 0.51 · SR models, hypergraph model, random walk, HG, OS, entropy
Paper
Loaded from Europe PMC by your browser, not stored by OSCR: doi.org · Europe PMC
The paper is loaded when this pane is shown.
The authors' code
MATLAB · 465 lines · 22 KB · no license · 2 matches
- % CompressiveLearningPaper_Figure2.m
- % Re-organized by XR @ May 31 2026
- % Script for plots in Figure 2
- %%
- clear
- clc
- %% add path
- % !!!!!!!!!! Please replace the 'folder' with your own path !!!!!!!!!!
- folder = '/Volumes/My Passport/HierarchicalCluster';
- addpath(genpath(fullfile(folder, 'CompressiveLearningPaper')));
- %% parameters
- %%% Columns index for the all_data.mat
- % columnNames = {'network', 'subjID', 'trialNo', 'blockNo', 'cue', 'target', 'distractor', ...
- % 'target-Xpos', 'target-Ypos', 'distractor-Xpos', 'distractor-Ypos', ...
- % 'mouse-Xpos', 'mouse-Ypos', 'mouse-Time', 'mouse-target-Angle', 'mouse-distractor-Angle', ...
- % 'choiceId', 'choice-Final', 'clickRT', 'clickChoice', 'clickConds'};
- col_network = 1; % 'lattice', 'random', 'smallWorld', 'scaleFree'
- col_subjID = 2; % subjID
- col_trialNo = 3; % trialNo: 1-1000
- col_blockNo = 4; % blockNo: 1-5
- col_objCue = 5; % cue node
- col_objTgt = 6; % target node
- col_objDtr = 7; % distractor node
- col_imgPosX_tgt = 8; % x-coordinate of the target during the choice period: (units) 'pixel' for in-lab exp and 'height' for online exp
- col_imgPosY_tgt = 9; % y-coordinate of the target during the choice period
- col_imgPosX_dtr = 10; % x-coordinate of the distractor
- col_imgPosY_dtr = 11; % y-coordinate of the distractor
- col_mouseXpos = 12; % mouse trajectory: x-coordinate
- col_mouseYpos = 13; % mouse trajectory: y-coordinate
- col_mouseTime = 14; % mouse trajectory: sampling time
- col_angle_tgt = 15; % mouse-to-target angle
- col_angle_dtr = 16; % mouse-to-distractor angle
- col_choice_t = 17; % choice (binary classification) at each time point: 1 = correct (choosing target), 0 = incorrect
- col_choice_final = 18; % choice per trial before hint onset: 1 = correct (choosing target), 0 = incorrect
- col_respRT = 19; % response reaction time (time when the stimulus was clicked)
- col_choice_click = 20; % choice based on the mouse click: 0 = correct, 1 = error/timeout (reversed compared to the choice from mouse trajectory)
- col_choice_label = 21; % response condition: (1) correct resp before cue: 0; (2) correct resp after cue: 1; (3) incorrect resp before cue: 2; (4) incorrect resp after cue: 3;
- %% network
- nodeNum = 16; % 16 nodes in each network
- measTime = 2; % 2 seconds
- nBlock_pred = 5; % prediction task: 5 blocks
- trialsBlc_pred = 200;
- grayoffT = 0.8;
- network_list = {'lattice', 'random', 'smallWorld', 'scaleFree'};
- circle_list = 0 : 1/60 : 1.5;
- tInBlc = 200 : 200 : 1000;
- nBlock = length(tInBlc); %% seperate the total trials into 10 blocks
- trialsInBlc = zeros(nBlock, 2);
- trialsInBlc(:, 1) = [1, tInBlc(1 : end - 1) + 1]';
- trialsInBlc(:, 2) = tInBlc;
- %% read the data
- codePath = fullfile(folder, 'CompressiveLearningPaper', 'Code', 'Fig2');
- load(fullfile(codePath, 'data_Exp1_Figure2.mat'), 'all_data');
- %% extract the relevant information for subsequent plot
- expMode_subj = {'offline', 'offline', 'offline', 'offline', 'offline', 'offline', 'offline', 'offline', 'offline', 'offline', ...
- 'offline', 'offline', 'offline', 'offline', 'offline', 'offline', 'offline', 'offline', 'offline', 'offline', ...
- 'online', 'online', 'online', 'online', 'online', 'online', 'online', 'online', 'online', 'online', ...
- 'online', 'online', 'online', 'online', 'online', 'online', 'online', 'online', 'online', 'online'};
- %%% binary classified choice from the mouse trajectory
- nExp = length(network_list);
- subLen = length(expMode_subj);
- angAcc_exp = nan(subLen, length(circle_list), nExp); %% accuracy in each time point
- angAcc_oneHot_exp = nan(subLen, nExp); %% accuracy per trial based on click behaviour: before cue or choice at 0.8 s
- angAcc_dgr_oneHot_exp = nan(subLen, 3, nExp); %% 3: (1) degree of fromNode = 4; (2) degree of toNode = 4; (3) both from & to = 4;
- dgr_oneHot_N_exp = nan(subLen, 3, nExp); %% trial numbers in each of the matched condition
- dgr_oneHot_trlIdx_exp = cell(subLen, 3, nExp);
- choiceId_trials_exp = cell(subLen, nExp); %% save the choiceId_trials.mat for each participant in order to do the re-sampling
- nBin = 100;
- BinL = 1000 / nBin;
- angAcc_oneHot_ln_exp = nan(subLen, BinL, nExp); %%% learning effect
- %%% click accuracy (overall, before-hint, after-hint)
- clickAcc_exp = nan(subLen, 3, nExp); % 3: 1) overall accuracy; 2) before-hint accuracy; 3) after-hint accuracy
- for iExp = 1 : nExp
- netWord = network_list{iExp};
- idx = strcmp(all_data.network, netWord);
- clusterResult_iExp = all_data(idx, :);
- subjCol = clusterResult_iExp.subjID;
- subLen = max(subjCol);
- [transMat, nodeDegree] = network_class(netWord);
- uniqDgr = unique(nodeDegree);
- %% loop across subjects
- angAcc = zeros(subLen, length(circle_list)); %% accuracy in each time point
- lenData = zeros(subLen, length(circle_list)); %% data length in each time point
- angAcc_oneHot = zeros(subLen, 1); %% overall accuracy: before cue or choice at 0.8 s
- angAcc_dgr_oneHot = zeros(subLen, 3); %% 3: (1) degree of fromNode = 4; (2) degree of toNode = 4; (3) both from & to = 4;
- angAcc_oneHot_ln = nan(subLen, BinL);
- for iSub = 1 : subLen
- disp([netWord, '-subj', num2str(iSub)]);
- expMode = expMode_subj{iSub};
- % data from the current participant
- clusterResult = clusterResult_iExp(clusterResult_iExp.subjID == iSub, :);
- %% data from the clusterResult
- nTrials = size(clusterResult, 1);
- trials_Col = clusterResult.trialNo;
- blockNo_col = clusterResult.blockNo;
- respRT_Col = clusterResult.clickRT;
- respSig_Col = clusterResult.clickConds;
- from_nodes = clusterResult.cue;
- to_nodes = clusterResult.target;
- dtr_nodes = clusterResult.distractor;
- choiceId = cell2mat(clusterResult.choiceId); % nan(length(stim), length(circle_list));
- choiceId_trials = clusterResult.('choice-Final'); % nan(length(stim), 1);
- choiceId_trials_exp{iSub, iExp} = choiceId_trials;
- %% ------ Clicked-based measures ------
- %%% total accuracy
- clickAcc_exp(iSub, 1, iExp) = length(find(respSig_Col == 0 | respSig_Col == 1)) / length(respSig_Col); %% accuracy across all trials
- clickAcc_exp(iSub, 2, iExp) = length(find(respSig_Col == 0)) / length(find(respSig_Col == 0 | respSig_Col == 2)); %% accuracy in response before cue trials
- clickAcc_exp(iSub, 3, iExp) = length(find(respSig_Col == 1)) / length(find(respSig_Col == 1 | respSig_Col == 3)); %% accuracy in response after cue trials
- %% ------ Mouse-trajectory based choice ------
- %% merge all trials
- for iTp = 1 : length(circle_list)
- choiceId_i = choiceId(:, iTp);
- choiceId_i(isnan(choiceId_i)) = [];
- angAcc(iSub, iTp) = length(find(choiceId_i == 1)) / length(choiceId_i);
- lenData(iSub, iTp) = length(choiceId_i);
- end
- %% accuracy in different node degrees when subjects made a response or at t=0.8s
- dgr_i = 4;
- nodeFind = find(nodeDegree == dgr_i);
- %%% degree of from nodes = 4
- trlIdx = arrayfun(@(x) ismember(x, nodeFind), from_nodes); %% including correct and incorrect responses
- choiceId_from = choiceId_trials(trlIdx);
- choiceId_from(isnan(choiceId_from)) = [];
- angAcc_dgr_oneHot(iSub, 1) = length(find(choiceId_from == 1)) / length(choiceId_from);
- dgr_oneHot_N_exp(iSub, 1, iExp) = length(find(trlIdx == 1));
- dgr_oneHot_trlIdx_exp{iSub, 1, iExp} = find(trlIdx == 1);
- %%% degree of to nodes = 4
- trlIdx = arrayfun(@(x) ismember(x, nodeFind), to_nodes);
- choiceId_to = choiceId_trials(trlIdx);
- choiceId_to(isnan(choiceId_to)) = [];
- angAcc_dgr_oneHot(iSub, 2) = length(find(choiceId_to == 1)) / length(choiceId_to);
- dgr_oneHot_N_exp(iSub, 2, iExp) = length(find(trlIdx == 1));
- dgr_oneHot_trlIdx_exp{iSub, 2, iExp} = find(trlIdx == 1);
- %%% both the degree of fromNode & toNode equal 4
- trlIdx_from = arrayfun(@(x) ismember(x, nodeFind), from_nodes);
- trlIdx_to = arrayfun(@(x) ismember(x, nodeFind), to_nodes);
- trlIdx = find(trlIdx_from == 1 & trlIdx_to == 1);
- choiceId_both = choiceId_trials(trlIdx);
- choiceId_both(isnan(choiceId_both)) = [];
- angAcc_dgr_oneHot(iSub, 3) = length(find(choiceId_both == 1)) / length(choiceId_both);
- dgr_oneHot_N_exp(iSub, 3, iExp) = length(trlIdx);
- dgr_oneHot_trlIdx_exp{iSub, 3, iExp} = trlIdx;
- %% learning effect: accuracy in sliding bins at decision time
- for iB = 1 : BinL
- trlIdx = (iB - 1) * nBin + 1 : iB * nBin;
- choiceId_trl = choiceId_trials(trlIdx);
- choiceId_trl(isnan(choiceId_trl)) = [];
- angAcc_oneHot_ln(iSub, iB) = length(find(choiceId_trl == 1)) / length(choiceId_trl);
- end
- %% merge all trials: before-cue-response or at 0.8 s
- choiceId_trials(isnan(choiceId_trials)) = [];
- angAcc_oneHot(iSub) = length(find(choiceId_trials == 1)) / length(choiceId_trials);
- end
- angAcc_exp(:, :, iExp) = angAcc; %% angAcc = zeros(subLen, length(circle_list));
- angAcc_oneHot_exp(:, iExp) = angAcc_oneHot; %% angAcc_oneHot = zeros(subLen, 1);
- angAcc_dgr_oneHot_exp(:, :, iExp) = angAcc_dgr_oneHot; %% angAcc_dgr_oneHot = zeros(subLen, 3);
- angAcc_oneHot_ln_exp(:, :, iExp) = angAcc_oneHot_ln; %% angAcc_oneHot_ln = nan(subLen, BinL);
- end
- %% color settings
- colorSets = [249, 183, 176; ...
- 138, 170, 51; ...
- 84, 185, 211; ...
- 248, 218, 172; ...
- 184, 204, 225; ...
- 210, 234, 200; ...
- 198, 127, 192; ...
- 219, 204, 226] ./ [255, 255, 255];
- %% ------ Figure 2d: Time-resolved prediction accuracy of four networks ------
- % & %% ------ Figure S3A: Decision preference within a trial ------
- datFlg = 1;
- if datFlg == 1 % all 40 subjects
- angAcc_tc = angAcc_exp;
- elseif datFlg == 2 % 20 in-lab subjects
- angAcc_tc = angAcc_exp(1 : 20, :, :);
- elseif datFlg == 3 % 20 online subjects
- angAcc_tc = angAcc_exp(21 : end, :, :);
- end
- stat_mat = zeros(length(circle_list), 2, nExp); % 4 networks
- for iExp = 1 : nExp
- for iTime = 1 : length(circle_list)
- angAcc_exp_i = angAcc_tc(:, iTime, iExp);
- [h, p, ci, stats] = ttest(angAcc_exp_i, 1/2, 'Tail', 'both');
- stat_mat(iTime, 1, iExp) = p;
- stat_mat(iTime, 2, iExp) = stats.tstat;
- end
- end
- LineSty = '-';
- for iExp = 1 : nExp
- figure('Position', [100 100 240 160]), clf;
- angAcc_exp_i = angAcc_tc(:, :, iExp);
- for iSub = 1 : size(angAcc_exp_i, 1)
- plot(circle_list, angAcc_exp_i(iSub, :), 'Color', [0.6, 0.6, 0.6], 'LineStyle', '-', 'LineWidth', 0.5); hold on;
- end
- [acc_avg, acc_sem] = Mean_and_Se(angAcc_exp_i, 1);
- shadedErrorBar(circle_list, acc_avg, acc_sem, {'Color', colorSets(iExp, :), 'MarkerFaceColor', colorSets(iExp, :), 'LineStyle', LineSty, 'LineWidth', 3}, 0.5); hold on;
- ylim([0.4, 1]);
- ylimit = ylim;
- xLoc = 0.99;
- % mark the significance
- [~, ~, ~, adj_p] = fdr_bh(squeeze(stat_mat(:, 1, iExp)), 0.05, 'pdep');
- for iCir = 1 : length(circle_list)
- pval_j = adj_p(iCir);
- if pval_j < 0.05
- plot(circle_list(iCir), xLoc * ylimit(end), 'Marker', '.', 'MarkerSize', 4, 'Color', colorSets(iExp, :), 'MarkerFaceColor', colorSets(iExp, :), 'LineStyle', 'none'); hold on;
- end
- end
- plot(xlim, [1/2, 1/2], 'k--', 'LineWidth', 1); hold on;
- plot([0.8, 0.8], ylim, 'k--', 'LineWidth', 1); hold on;
- ylim([0.4, 1]);
- set(gca, 'LineWidth', 2);
- set(gca, 'FontSize', 14, 'FontWeight', 'bold', 'FontName', 'Arial');
- set(gca, 'XTick', 0 : 0.4 : 1.5, 'XTickLabel', [0, 0.4, 0.8, 1.2]);
- set(gca, 'YTick', 0.4 : 0.1 : 1, 'YTickLabel', {'', '0.5', '', '', '', '', '1'});
- box off;
- end
- %% ------ Figure 2e: Overall prediction accuracy of four networks ------
- % & %% ------ Figure S3B: Overall accuracy comparison of the four networks (in-lab and online separately) ------
- datFlg = 1;
- if datFlg == 1 % all 40 subjects
- angAcc_oneHot_tc = angAcc_oneHot_exp;
- elseif datFlg == 2 % 20 in-lab subjects
- angAcc_oneHot_tc = angAcc_oneHot_exp(1 : 20, :);
- elseif datFlg == 3 % 20 online subjects
- angAcc_oneHot_tc = angAcc_oneHot_exp(21 : end, :);
- end
- stat_mat = zeros(nExp, 2); % 4 networks
- for iExp = 1 : nExp
- [h, p, ci, stats] = ttest(angAcc_oneHot_tc(:, iExp), 1/2, 'Tail', 'both');
- stat_mat(iExp, 1) = p;
- stat_mat(iExp, 2) = stats.tstat;
- end
- [~, ~, ~, adj_p] = fdr_bh(stat_mat(:, 1), 0.05, 'pdep');
- figure('Position', [100 100 420 220]), clf;
- vs = violinplot(angAcc_oneHot_tc, [1,2,3,4], 'Width', 0.3, 'ViolinColor', colorSets, 'ViolinAlpha', 0.1, 'MarkerSize', 30,...
- 'MedianMarkerSize', 100, 'EdgeColor', [0,0,0], 'BoxColor', [0,0,0]);
- xlim([0.5, 4.5]);
- ylim([0.45, 0.7]);
- set(gca, 'FontName', 'Arial', 'FontSize', 14, 'FontWeight', 'Bold', 'LineWidth', 2);
- set(gca, 'XTick', '', 'XTickLabel', '');
- set(gca, 'YTick', 0.5 : 0.1 : 0.7, 'YTickLabel', 0.5 : 0.1 : 0.7);
- plot(xlim, [0.5, 0.5], 'k--', 'LineWidth', 1); hold on;
- box off;
- %% ------ Figure S4: Learning curves for the 4 transition networks in Experiment 1 ------
- datFlg = 1;
- if datFlg == 1 % all 40 subjects
- angAcc_oneHot_ln_tc = angAcc_oneHot_ln_exp;
- elseif datFlg == 2 % 20 in-lab subjects
- angAcc_oneHot_ln_tc = angAcc_oneHot_ln_exp(1 : 20, :, :);
- elseif datFlg == 3 % 20 online subjects
- angAcc_oneHot_ln_tc = angAcc_oneHot_ln_exp(21 : end, :, :);
- end
- [data_avg, data_sem] = Mean_and_Se(angAcc_oneHot_ln_tc, 1);
- data_avg = squeeze(data_avg); % BinL * nExp
- data_sem = squeeze(data_sem);
- figure('Position', [100 100 300 200]), clf;
- for iExp = 1 : length(network_list)
- errorbar(1 : 1 : BinL, data_avg(:, iExp), data_sem(:, iExp), 'Color', colorSets(iExp, :), 'LineStyle', '-', 'LineWidth', 3); hold on;
- plot(1 : 1 : BinL, data_avg(:, iExp), 'Marker', '.', 'MarkerSize', 15, 'Color', colorSets(iExp, :), 'LineStyle', 'none'); hold on;
- end
- xlim([1-0.5, BinL+0.5]);
- ylim([0.4, 0.7]);
- plot(xlim, [1/2, 1/2], 'k--', 'LineWidth', 1); hold on;
- set(gca, 'FontSize', 14, 'FontWeight', 'Bold', 'LineWidth', 2);
- set(gca, 'XTick', 1 : 1 : BinL, 'XTickLabel', 1 : 1 : BinL);
- set(gca, 'YTick', 0.4 : 0.1 : 0.7, 'YTickLabel', 0.4 : 0.1 : 0.7);
- box off;
- %% ------ Figure S5A: The numbers of trials under each node-degree matched condition ------
- figure('Position', [100 100 120 220]), clf;
- for iExp = 1 : nExp
- dgr_matched_N = dgr_oneHot_N_exp(:, :, iExp); % 3 columns: (1) from-node matched; (2) to-node matched; (3) both from- and to-node matched
- [Nmean, Nsem] = Mean_and_Se(dgr_matched_N, 1);
- plot(1 : 1 : 3, Nmean, 'Marker', '.', 'MarkerSize', 35, 'Color', colorSets(iExp, :), 'lineStyle', '-', 'LineWidth', 3); hold on;
- for i = 1 : 3
- errorbar(i, Nmean(i), Nsem(i), 'Color', colorSets(iExp, :), 'LineStyle', '-', 'LineWidth', 3); hold on;
- end
- end
- xlim([1-0.5, 3+0.5]);
- ylim([0, 1000]);
- set(gca, 'FontSize', 14, 'FontWeight', 'Bold', 'LineWidth', 2);
- set(gca, 'XTick', 1 : 1 : 3, 'XTickLabel', {'Cue', 'Target', 'Cue & target'});
- set(gca, 'YTick', 0 : 500 : 1000, 'YTickLabel', 0 : 500 : 1000);
- box off;
- %% ------ Figure 5B: Overall prediction accuracy of four networks with three types of node-degree matched conditions ------
- plotFlg = 1; % 1: degree of fromNode = 4; 2: degree of toNode = 4; 3: both from & to = 4;
- dataPlot = squeeze(angAcc_dgr_oneHot_exp(:, plotFlg, :));
- figure('Position', [100 100 420 220]), clf;
- vs = violinplot(dataPlot, [1,2,3,4], 'Width', 0.3, 'ViolinColor', colorSets, 'ViolinAlpha', 0.1, 'MarkerSize', 30,...
- 'MedianMarkerSize', 100, 'EdgeColor', [0,0,0], 'BoxColor', [0,0,0]);
- xlim([0.5, 4.5]);
- set(gca, 'FontName', 'Arial', 'FontSize', 14, 'FontWeight', 'Bold', 'LineWidth', 2);
- set(gca, 'XTick', '', 'XTickLabel', '');
- if plotFlg == 1 || plotFlg == 2
- ylim([0.4, 0.7]);
- set(gca, 'YTick', 0.4 : 0.1 : 0.7, 'YTickLabel', 0.4 : 0.1 : 0.7);
- elseif plotFlg == 3
- ylim([0.3, 0.8]);
- set(gca, 'YTick', 0.3 : 0.1 : 0.8, 'YTickLabel', 0.3 : 0.1 : 0.8);
- end
- plot(xlim, [0.5, 0.5], 'k--', 'LineWidth', 1); hold on;
- box off;
- %% ------ Figure S6A: Proportion of above-chance subjects ------
- % ------ convert the accuracy per time point across participants into
- % proportation of above-chance participants ------
- propSubj_aboveChance_time = zeros(nExp, length(circle_list));
- for iExp = 1 : nExp
- angAcc_exp_i = angAcc_exp(:, :, iExp);
- propSubj_count = (~isnan(angAcc_exp_i) & angAcc_exp_i > 0.5);
- propSubj_aboveChance_time(iExp, :) = sum(propSubj_count, 1) / size(propSubj_count, 1);
- end
- LineSty = '-';
- figure('Position', [100 100 240 160]), clf;
- for iExp = 1 : nExp
- plot(circle_list(2 : end), propSubj_aboveChance_time(iExp, 2 : end), 'Color', colorSets(iExp, :), 'LineStyle', '-', 'LineWidth', 2); hold on;
- ylim([0, 1]);
- ylimit = ylim;
- plot(xlim, [1/2, 1/2], 'k--', 'LineWidth', 1); hold on;
- plot([0.8, 0.8], ylim, 'k--', 'LineWidth', 1); hold on;
- ylim([0, 1]);
- set(gca, 'LineWidth', 2);
- set(gca, 'FontSize', 14, 'FontWeight', 'bold', 'FontName', 'Arial');
- set(gca, 'XTick', 0 : 0.4 : 1.5, 'XTickLabel', [0, 0.4, 0.8, 1.2]);
- set(gca, 'YTick', 0 : 0.5 : 1, 'YTickLabel', [0, 0.5, 1]);
- box off;
- end
- %% ------ Figure S6B: Time-resolved prediction accuracy for high- and low-performance subjects of four networks ------
- % For each group, splitting participants into high and low performance and
- % redraw the accuracy time curve
- HighLow_idx_exp = nan(20, 2, nExp); % 2: high vs. low performance participants
- angAcc_HighLow_time = nan(20, length(circle_list), 2, nExp);
- angAcc_oneHot_HighLow = nan(20, 2, nExp);
- stat_mat_HighLow = nan(length(circle_list), 2, 2, nExp);
- for iExp = 1 : nExp
- % ------ Sort based on one-hot metric ------
- angAcc_iExp = angAcc_oneHot_exp(:, iExp);
- [~, angAcc_idx] = sort(angAcc_iExp, 'descend'); % default: 'ascend'
- split_half = ceil(length(angAcc_idx) / 2);
- high_idx = angAcc_idx(1 : split_half);
- low_idx = angAcc_idx((split_half + 1) : end);
- % ------ assign the participants index for High- and Low-performance group ------
- HighLow_idx_exp(:, 1, iExp) = high_idx;
- HighLow_idx_exp(:, 2, iExp) = low_idx;
- % ------ Reassign participants into high- vs. low-performance group ------
- angAcc_HighLow_time(:, :, 1, iExp) = angAcc_exp(high_idx, :, iExp);
- angAcc_HighLow_time(:, :, 2, iExp) = angAcc_exp(low_idx, :, iExp);
- angAcc_oneHot_HighLow(:, 1, iExp) = angAcc_oneHot_exp(high_idx, iExp);
- angAcc_oneHot_HighLow(:, 2, iExp) = angAcc_oneHot_exp(low_idx, iExp);
- % Statistical test
- for ii = 1 : 2 % High and Low-performance participants
- for iTime = 1 : length(circle_list)
- angAcc_exp_i = angAcc_HighLow_time(:, iTime, ii, iExp);
- [h, p, ci, stats] = ttest(angAcc_exp_i, 1/2, 'Tail', 'both');
- stat_mat_HighLow(iTime, 1, ii, iExp) = p;
- stat_mat_HighLow(iTime, 2, ii, iExp) = stats.tstat;
- end
- end
- end
- %%
- LineSty_list = {'-', ':'};
- for iExp = 1 : nExp
- figure('Position', [100 100 240 160]), clf;
- angAcc_exp_i = angAcc_exp(:, :, iExp);
- for iSub = 1 : size(angAcc_exp_i, 1)
- plot(circle_list, angAcc_exp_i(iSub, :), 'Color', [0.6, 0.6, 0.6], 'LineStyle', '-', 'LineWidth', 0.5); hold on;
- end
- for ii = 1 : 2 % high- vs. low-performance participants
- [acc_avg, acc_sem] = Mean_and_Se(angAcc_HighLow_time(:, :, ii, iExp), 1);
- shadedErrorBar(circle_list(2 : end), acc_avg(2 : end), acc_sem(2 : end), {'Color', colorSets(iExp, :), 'MarkerFaceColor', colorSets(iExp, :), 'LineStyle', LineSty_list{ii}, 'LineWidth', 3}, 0.5); hold on;
- end
- ylim([0.4, 1]);
- ylimit = ylim;
- xLoc = 0.99;
- for ii = 1 : 2 % High and Low-performance participants
- % mark the significance
- [~, ~, ~, adj_p] = fdr_bh(squeeze(stat_mat_HighLow(:, 1, ii, iExp)), 0.05, 'pdep'); % method: 'dep', 'pdep'
- for iCir = 1 : length(circle_list)
- pval_j = adj_p(iCir);
- if pval_j < 0.05
- plot(circle_list(iCir), xLoc * ylimit(end), 'Marker', '.', 'MarkerSize', 4, 'Color', colorSets(iExp, :), 'MarkerFaceColor', colorSets(iExp, :), 'LineStyle', 'none'); hold on;
- end
- end
- xLoc = xLoc - 0.03;
- end
- plot(xlim, [1/2, 1/2], 'k--', 'LineWidth', 1); hold on;
- plot([0.8, 0.8], ylim, 'k--', 'LineWidth', 1); hold on;
- ylim([0.4, 1]); % left axis limits
- set(gca, 'LineWidth', 2);
- set(gca, 'FontSize', 14, 'FontWeight', 'bold', 'FontName', 'Arial');
- set(gca, 'XTick', 0 : 0.4 : 1.5, 'XTickLabel', [0, 0.4, 0.8, 1.2]);
- set(gca, 'YTick', 0.4 : 0.1 : 1, 'YTickLabel', {'', '0.5', '', '', '', '', '1'});
- box off;
- ax = gca;
- end
- %% ------ Figure S6C: Overall accuracy for high- and low-performance subjects across four networks ------
- for ii = 1 : 2 % High and Low-performance participants
- figure('Position', [100 100 420 220]), clf;
- vs = violinplot(squeeze(angAcc_oneHot_HighLow(:, ii, :)), [1,2,3,4], 'Width', 0.3, 'ViolinColor', colorSets, 'ViolinAlpha', 0.1, 'MarkerSize', 30,...
- 'MedianMarkerSize', 100, 'EdgeColor', [0,0,0], 'BoxColor', [0,0,0]);
- xlim([0.5, 4.5]);
- ylim([0.4, 0.7]);
- set(gca, 'FontName', 'Arial', 'FontSize', 14, 'FontWeight', 'Bold', 'LineWidth', 2);
- set(gca, 'XTick', '', 'XTickLabel', '');
- set(gca, 'YTick', 0.4 : 0.1 : 0.7, 'YTickLabel', 0.4 : 0.1 : 0.7);
- plot(xlim, [0.5, 0.5], 'k--', 'LineWidth', 1); hold on;
- box off;
- end
- %% ------ Figure S8A: Click-accuracy from before-hint-response trials in Experiment 1 ------
- % clickAcc_exp = zeros(subLen, 3, nExp); % 3: 1) overall accuracy; 2) before-hint accuracy; 3) after-hint accuracy
- metric_plot_category = squeeze(clickAcc_exp(:, 2, :)); % before-hint click accuracy
- figure('Position', [100 100 420 220]), clf;
- vs = violinplot(metric_plot_category, [1,2,3,4], 'Width', 0.3, 'ViolinColor', colorSets, 'ViolinAlpha', 0.1, 'MarkerSize', 30,...
- 'MedianMarkerSize', 100, 'EdgeColor', [0,0,0], 'BoxColor', [0,0,0]);
- xlim([0.5, 4.5]);
- ylim([0, 1]);
- set(gca, 'FontName', 'Arial', 'FontSize', 14, 'FontWeight', 'Bold', 'LineWidth', 2);
- set(gca, 'XTick', '', 'XTickLabel', '');
- set(gca, 'YTick', 0 : 0.2 : 1, 'YTickLabel', 0 : 0.2 : 1);
- plot(xlim, [0.5, 0.5], 'k--', 'LineWidth', 1); hold on;
- box off;
- ax = gca;
Fig2andSI.m, no license · at the source
Overview
- School of Psychological and Cognitive Sciences, Peking University, Beijing, China
- PKU-IDG/McGovern Institute for Brain Research, Peking University, Beijing, China
- Key Laboratory of Machine Perception (Ministry of Education), Peking University, Beijing, China
- Latent Learning Lab, Institute of Psychology, Universität Hamburg, Hamburg, Germany
- Max Planck Institute for Human Development, Berlin, Germany
- Applied Computational Psychiatry Lab, Max Planck UCL Centre for Computational Psychiatry and Ageing Research, Queen Square Institute of Neurology, UCL, London, UK
- Center for Systems and Control, School of Advanced Manufacturing and Robotics, Peking University, Beijing, China
- Peking-Tsinghua Center for Life Sciences, Peking University, Beijing, China
- Research Center for Robotics, Peking University, Beijing, China
- Center for Multi-Agent Research, Institute for Articial Intelligence, Peking University, Beijing, China
Abstract
The abstract is not reproduced here: the paper's license (CC BY-NC-ND) does not allow it. Read it in the paper, at the publisher or on Europe PMC.
Repository
Its files are read in the Code ↔ Paper reader above, with 11 matches between paragraphs and lines of code.
OSF dm3z9
Availability: 1 check, the latest on 27 September 2026: the link answers (HTTP 200)
- 27 September 2026: the link answers (HTTP 200)
34 files
- Code/
Fig1c/ , MATLAB, 152 lines, 1 matchFig1c.m - Code/
Fig1d/ , MATLAB, 58 linesBAgraph.m - Code/
Fig1d/ , MATLAB, 27 linesGKK_model.m - Code/
Fig1d/ , MATLAB, 99 linesGenerateScaleFreeNetwork s.m - Code/
Fig1d/ , MATLAB, 136 lines, 1 matchHK_network.m - Code/
Fig1d/ , MATLAB, 74 linesKlemmEguiluzNetwork.m - Code/
Fig1d/ , MATLAB, 56 linesStatic_model.m - Code/
Fig1d/ , MATLAB, 19 linescompressibility_mse.m - Code/
Fig1d/ , MATLAB, 13 linesdegree_heterogeneity.m - Code/
Fig1d/ , MATLAB, 55 linesfig1d.m - Code/
Fig1d/ , MATLAB, 73 linestextprogressbar.m - Code/
Fig2andSI/ , MATLAB, 465 lines, 2 matchesFig2andSI.m - Code/
Fig3andSI/ , MATLAB, 856 lines, 2 matchesFig3andSI.m - Code/
Fig5bandSI/ , MATLAB, 269 lines, 2 matchesFig5b.m - Code/
Fig5bandSI/ , MATLAB, 96 lines, 2 matchesFitHypergraphModel.m - Code/
Fig5bandSI/ , MATLAB, 33 linesFitMaxEntropyModel.m - Code/
Fig5bandSI/ , MATLAB, 33 linesFitOnestepModel.m - Code/
Fig5bandSI/ , MATLAB, 38 linesFitSRModel.m - Code/
Fig5bandSI/ , MATLAB, 89 linesMaxEntropy_model.m - Code/
Fig5bandSI/ , MATLAB, 245 lines, 1 matchModelfitting_main.m - Code/
Fig5bandSI/ , MATLAB, 79 linesOnestep_model.m - Code/
Fig5bandSI/ , MATLAB, 90 linesSR_model.m - Code/
Fig5bandSI/ , MATLAB, 104 linesbetaEstimateHubToLeaf.m - Code/
Fig5bandSI/ , MATLAB, 104 linesbetaEstimateLeafToHub.m - Code/
Fig5bandSI/ , MATLAB, 108 linesbetaEstimateRandomWalk.m - Code/
Fig5bandSI/ , MATLAB, 206 linesfigS19.m - Code/
Fig5bandSI/ , MATLAB, 350 linesfigS20.m - Code/
Fig5bandSI/ , MATLAB, 307 linesfminsearchbnd.m - Code/
HelperFunctions/ , MATLAB, 17 linesMean_and_Se.m - Code/
HelperFunctions/ , MATLAB, 713 linesViolin.m - Code/
HelperFunctions/ , MATLAB, 226 linesfdr_bh.m - Code/
HelperFunctions/ , MATLAB, 88 linesnetwork_class.m - Code/
HelperFunctions/ , MATLAB, 163 linesshadedErrorBar.m - Code/
HelperFunctions/ , MATLAB, 193 linesviolinplot.m
Code availability statement
The paper has a code availability statement. Its license (CC BY-NC-ND) does not allow reproducing it here; in short, from what the harvester recognized in it:
- it points to the authors' code: OSF dm3z9
Read it in the paper: doi.org/10.1038/s41467-026-75843-7.
Tracing map
Proposed by the machine: these links were found in the paper and verified at the source, without human review. The map will receive a Zenodo DOI once one of the paper's authors has validated it with their ORCID.
What the map holds:
- 1 repository of the authors' code, each at its verified commit, with its license and how the link was found in the paper;
- 34 scripts, each with its path and the digest of its content;
- 11 matches between paragraphs of the paper and lines of the code (method lexical-v1);
- neither the text of the paper nor the code itself.
Its JSON (tracing-map.json) is deposited on Zenodo with its DOI once the map is validated.
Data
No dataset and no data link were found in the paper.
Data availability statement
The paper has a data availability statement. Its license (CC BY-NC-ND) does not allow reproducing it here; in short, from what the harvester recognized in it:
- no repository, dataset or request procedure was recognized in it
Read it in the paper: doi.org/10.1038/s41467-026-75843-7.
Versions
The history of this record: each version stored by the harvester or made by a correction of its authors or of the maintainers of its code, and what changed in its facts. The texts of the paper (its abstract, its availability statements) are not part of it; versions that changed only those are not listed.
Version 1, 27 September 2026: the first record
Recorded: type, language, journal, volume, issue, pages, dates, 6 authors, 2 keywords, 8 MeSH terms, 2 funders, 89 references.
Cite
This paper
Ren, X., Wang, M., Qin, T., Fang, F., Li, A., & Luo, H. (2026). Compressive learning scaffolds higher-order network structure to enhance human knowledge acquisition. Nature communications, 17(1), 8771. https://
BibTeX
@article{ren2026compress
author = {Ren, Xiangjuan and Wang, Muzhi and Qin, Tingting and Fang, Fang and Li, Aming and Luo, Huan},
title = {{Compressive learning scaffolds higher-order network structure to enhance human knowledge acquisition}},
journal = {Nature communications},
year = {2026},
month = jul,
volume = {17},
number = {1},
pages = {8771},
publisher = {Nature Publishing Group},
issn = {2041-1723},
doi = {10.1038/
url = {https://
pmid = {42469233},
pmcid = {PMC13494043}
}
RIS
TY - JOUR
AU - Ren, Xiangjuan
AU - Wang, Muzhi
AU - Qin, Tingting
AU - Fang, Fang
AU - Li, Aming
AU - Luo, Huan
TI - Compressive learning scaffolds higher-order network structure to enhance human knowledge acquisition
T2 - Nature communications
J2 - Nat Commun
PY - 2026
DA - 2026/
VL - 17
IS - 1
SP - 8771
SN - 2041-1723
PB - Nature Publishing Group
DO - 10.1038/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.1038/
"type": "article-journal",
"title": "Compressive learning scaffolds higher-order network structure to enhance human knowledge acquisition",
"container-title": "Nature communications",
"author": [
{
"family": "Ren",
"given": "Xiangjuan"
},
{
"family": "Wang",
"given": "Muzhi"
},
{
"family": "Qin",
"given": "Tingting"
},
{
"family": "Fang",
"given": "Fang"
},
{
"family": "Li",
"given": "Aming"
},
{
"family": "Luo",
"given": "Huan"
}
],
"container-title-short":
"volume": "17",
"issue": "1",
"page": "8771",
"DOI": "10.1038/
"PMID": "42469233",
"PMCID": "PMC13494043",
"ISSN": "2041-1723",
"publisher": "Nature Publishing Group",
"URL": "https://
"language": "en",
"issued": {
"date-parts": [
[
2026,
7,
17
]
]
}
}
The tracing map gets a citation of its own once an author has validated it and it has a DOI.
Similar papers
The papers with a page that share the most with this one: the tools found in their code, their categories, datasets, cited references and authors, the rarest counting most.
- [1] doi:10.1371/journal.pbio.3003756
- Human brains construct individualized global rankings from identical few-shot learning input.Journal: PLoS biologyIn common: MEG, cognitive, 3 references, 2 authors
- [2] doi:10.1016/j.cub.2026.05.068 [code]
- An abstract relational map emerges in the human medial prefrontal cortex with consolidation.Journal: Current biology : CBIn common: Statistics and Machine Learning Toolbox, 9 references
- [3] doi:10.1038/s41597-026-07350-9 [code]
- An open multi-center MEG-EEG dataset for studying conscious visual perception.Journal: Scientific dataIn common: Statistics and Machine Learning Toolbox, MEG, 1 reference, author Huan Luo
- [4] doi:10.1038/s41467-026-71428-6 [code]
- Binding items to contexts through conjunctive neural representations with the method of loci.Journal: Nature communicationsIn common: 6 references
- [5] doi:10.7554/elife.108023 [code]
- Challenges in replay detection by TDLM in post-encoding resting state.Journal: eLifeIn common: shadedErrorBar, Statistics and Machine Learning Toolbox, MEG, 3 references
- [6] doi:10.1038/s41467-026-71604-8 [code]
- Respiration as a dynamic modulator of sensory sampling.Journal: Nature communicationsIn common: Violinplot-Matlab, fdr_bh (Benjamini-Hochberg FDR), Statistics and Machine Learning Toolbox, MEG, cognitive, 1 reference
- [7] doi:10.1038/s41467-026-72510-9 [code]
- Single-neuron network topology governs neural computation and learning in primate cortex.Journal: Nature communicationsIn common: Statistics and Machine Learning Toolbox, cognitive, 1 reference, author Fang Fang
- [8] doi:10.1371/journal.pbio.3003938 [code]
- Theta oscillations tag episodic memories for sleep-dependent consolidation.Journal: PLoS biologyIn common: fdr_bh (Benjamini-Hochberg FDR), shadedErrorBar, Statistics and Machine Learning Toolbox, cognitive, 1 reference
- [9] doi:10.7554/elife.103689 [code]
- Dissociable dynamic effects of expectation during statistical learning.Journal: eLifeIn common: Violinplot-Matlab, shadedErrorBar, Statistics and Machine Learning Toolbox, 1 reference
- [10] doi:10.1002/aur.70312 [code]
- Aberrant Neural Entrainment to Word-Level Speech Patterns in Fragile X Syndrome: Evidence for a Statistical Learning Deficit.Journal: Autism research : official journal of the International Society for Autism ResearchIn common: shadedErrorBar, Statistics and Machine Learning Toolbox, cognitive, 2 references
Contribute
The authors of this paper can claim it, correct its record and validate its tracing map, and the maintainers of its code (its owner, or a public member of its organization) correct what it says of their repository; anyone signed in can ask for its removal. Every request goes to OSCR's own machine, which answers it; your account page follows them.
Sign in with ORCID to claim this paper as one of its authors, correct its record or validate its tracing map: when the paper's metadata lists your ORCID iD, you are recognized at once. Maintainers of its code: sign in with GitHub, then claim the repository on your account page.
Claim this paper
Correct its record
Say what each link of this record is, remove the ones that are not the paper's, add the ones that are missing. The correction becomes a new version of the record, in its Versions section.
Validate its tracing map
You validate the map as this page shows it: 1 repository of the authors' code, each at its verified commit and with its license, 34 scripts, and 11 matches between paragraphs and code (see the Code and Map sections). It then receives a DOI on Zenodo, with you (your ORCID iD) and OSCR as its creators; the code itself is not deposited.
The map's fingerprint: sha256:4748b189c3f7cfc8…
Add the badge to its README
The badge links the code to this page. Copy one of these into the README of the paper's code: only you decide where it goes, and nothing is changed for you.
Markdown
[.
Discussion, reproductions, activity
Discussion: questions and error reports about this paper and its code, from signed-in readers and its authors. It opens with sign-in.
Reproductions: reports from readers who ran the authors' code: what they reproduced, with which environment, commit and data. It opens with sign-in.
Activity: what happens around this paper: new versions of its record, its map's validation, discussions and reproductions. It opens with sign-in.
