I'd like to say that a large structured subset of the $n$-dimensional Boolean cube $\{0,1\}^n$ contains a non-trivial affine subspace. To be more specific, I want to prove/disprove that for some function $d=d(n)\gg\log(n)$ the following holds. If one partitions the $n$-dimensional Boolean cube into $2^{n-d}$ affine subspaces of dimension $d$, and then takes a half of these subspaces, then their union must contain an affine subspace of dimension $d+1$.
For $d < \log(n)-O(1)$ the statement holds just because each large subset of the Boolean cube always contains an affine subspace of dimension $\log(n)-O(1)$. For large subsets without any structure this logarithmic bound is essentially tight, since a counting argument shows that a random subset doesn't contain larger affine subspaces.
I'm wondering if the aforementioned structure of the set lets us find larger subspaces. I would appreciate any references to similar results (e.g., a disjoint union of arithmetic progressions of length d contains a longer arithmetic progression etc).